comparison Modules/WorldState.lua @ 116:ddfe19d70a34

ArtifactPower: - Further 7.2 accommodations, relating to tokens that grant millions of AP. Currency: - Ancient Mana zones list expanded - Legionfall War Supplies, Nethershards, and Blood of Sargeras are tracked globally PaperDoll: - Should update more effectively when delayed artifact data loads in. WorldState: - Fixed hanging panels after OrderHallCommandBar is hidden.
author Nenue
date Wed, 26 Apr 2017 20:06:38 -0400
parents 8c94bee4fdfc
children 3f4794dca91b
comparison
equal deleted inserted replaced
115:8c94bee4fdfc 116:ddfe19d70a34
26 end) 26 end)
27 hooksecurefunc(ocb, 'RefreshCurrency', 27 hooksecurefunc(ocb, 'RefreshCurrency',
28 function() 28 function()
29 requiresUpdate = true 29 requiresUpdate = true
30 end) 30 end)
31 hooksecurefunc(ocb, 'SetShown', function(isShown) 31 hooksecurefunc(ocb, 'SetShown', function(_, isShown)
32 self:SetShown(isShown) 32 if self:IsShown() ~= isShown then
33 self:SetShown(isShown)
34 Veneer:DynamicReanchor()
35 end
33 end) 36 end)
34 hooksecurefunc(ocb, 'RefreshAll', function() 37 hooksecurefunc(ocb, 'RefreshAll', function()
35 self:Update() 38 self:Update()
36 end) 39 end)
37 40
55 ocb.CurrencyHitTest:SetPoint('LEFT', ocb.CurrencyIcon, 'LEFT') 58 ocb.CurrencyHitTest:SetPoint('LEFT', ocb.CurrencyIcon, 'LEFT')
56 ocb.CurrencyHitTest:SetPoint('RIGHT', ocb.Currency, 'RIGHT') 59 ocb.CurrencyHitTest:SetPoint('RIGHT', ocb.Currency, 'RIGHT')
57 60
58 61
59 self:SetSize(700, 23) 62 self:SetSize(700, 23)
60 self:SetShown(ocb:IsShown()) 63 self:SetShown(C_Garrison.IsPlayerInGarrison(LE_GARRISON_TYPE_7_0))
61 end 64 end
62 65
63 function VeneerOrderHallMixin:OnUpdate() 66 function VeneerOrderHallMixin:OnUpdate()
64 if requiresUpdate then 67 if requiresUpdate then
65 self:Update() 68 self:Update()
79 self:Update() 82 self:Update()
80 end 83 end
81 end 84 end
82 85
83 function VeneerOrderHallMixin:Update() 86 function VeneerOrderHallMixin:Update()
84 self:SetShown(ocb:IsShown()) 87 self:SetShown(C_Garrison.IsPlayerInGarrison(LE_GARRISON_TYPE_7_0))
85 local lastFrame 88 local lastFrame
86 local categoriesWidth = 0 89 local categoriesWidth = 0
87 local troops = OrderHallCommandBar.TroopSummary 90 local troops = OrderHallCommandBar.TroopSummary
88 if troops then 91 if troops then
89 for _, category in ipairs(troops) do 92 for _, category in ipairs(troops) do