Mercurial > wow > buffalo2
diff 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 |
line wrap: on
line diff
--- a/Modules/WorldState.lua Tue Mar 28 07:02:26 2017 -0400 +++ b/Modules/WorldState.lua Wed Apr 26 20:06:38 2017 -0400 @@ -28,8 +28,11 @@ function() requiresUpdate = true end) - hooksecurefunc(ocb, 'SetShown', function(isShown) - self:SetShown(isShown) + hooksecurefunc(ocb, 'SetShown', function(_, isShown) + if self:IsShown() ~= isShown then + self:SetShown(isShown) + Veneer:DynamicReanchor() + end end) hooksecurefunc(ocb, 'RefreshAll', function() self:Update() @@ -57,7 +60,7 @@ self:SetSize(700, 23) - self:SetShown(ocb:IsShown()) + self:SetShown(C_Garrison.IsPlayerInGarrison(LE_GARRISON_TYPE_7_0)) end function VeneerOrderHallMixin:OnUpdate() @@ -81,7 +84,7 @@ end function VeneerOrderHallMixin:Update() - self:SetShown(ocb:IsShown()) + self:SetShown(C_Garrison.IsPlayerInGarrison(LE_GARRISON_TYPE_7_0)) local lastFrame local categoriesWidth = 0 local troops = OrderHallCommandBar.TroopSummary