comparison Modules/WorldState.lua @ 125:3f4794dca91b

template load order and Script handlers linkage
author Nenue
date Sun, 15 Oct 2017 16:47:22 -0400
parents ddfe19d70a34
children
comparison
equal deleted inserted replaced
124:07fe8fae8ca8 125:3f4794dca91b
1 -- Veneer 1 -- Veneer
2 -- WorldState.lua 2 -- WorldState.lua
3 -- Created: 10/7/2016 10:55 PM 3 -- Created: 10/7/2016 10:55 PM
4 -- %file-revision% 4 -- %file-revision%
5 -- An extensible panel group for HUD values 5 -- An extensible panel group for HUD values
6 6 local _, vn = ...
7 local L = vn.L
7 local print = DEVIAN_WORKSPACE and function(...) print('VnWorldState', ...) end or nop 8 local print = DEVIAN_WORKSPACE and function(...) print('VnWorldState', ...) end or nop
8 9
9 VeneerOrderHallMixin = { 10 VeneerOrderHallMixin = {
10 anchorPoint = 'TOP', 11 anchorPoint = 'TOP',
11 anchorFrom = 'TOP', 12 anchorFrom = 'TOP',
82 self:Update() 83 self:Update()
83 end 84 end
84 end 85 end
85 86
86 function VeneerOrderHallMixin:Update() 87 function VeneerOrderHallMixin:Update()
87 self:SetShown(C_Garrison.IsPlayerInGarrison(LE_GARRISON_TYPE_7_0)) 88 self:SetShown(C_Garrison.IsPlayerInGarrison(LE_GARRISON_TYPE_7_0) or (GetSubZoneText() == L["The Vindicaar"]))
88 local lastFrame 89 local lastFrame
89 local categoriesWidth = 0 90 local categoriesWidth = 0
90 local troops = OrderHallCommandBar.TroopSummary 91 local troops = OrderHallCommandBar.TroopSummary
91 if troops then 92 if troops then
92 for _, category in ipairs(troops) do 93 for _, category in ipairs(troops) do