mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- better fix to make sure modules always re-register for updates if they need to when they're shown
This commit is contained in:
@ -111,6 +111,9 @@ function IceBarElement.prototype:OnHide()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function IceBarElement.prototype:OnShow()
|
function IceBarElement.prototype:OnShow()
|
||||||
|
if not self:IsFull(self.CurrScale) then
|
||||||
|
self:ConditionalSetupUpdate()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function IceBarElement.prototype:Disable(core)
|
function IceBarElement.prototype:Disable(core)
|
||||||
|
@ -400,9 +400,6 @@ function IceCastBar.prototype:GetShortRank(rank)
|
|||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
|
|
||||||
function IceCastBar.prototype:OnShow()
|
|
||||||
self:ConditionalSetupUpdate()
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
@ -152,6 +152,11 @@ function PlayerMana.prototype:SetupOnUpdate(enable)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function PlayerMana.prototype:OnShow()
|
||||||
|
if not self:IsFull(self.CurrScale) then
|
||||||
|
self:SetupOnUpdate(true)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function PlayerMana.prototype:EnteringVehicle(event, unit, arg2)
|
function PlayerMana.prototype:EnteringVehicle(event, unit, arg2)
|
||||||
if (self.unit == "player" and IceHUD:ShouldSwapToVehicle(unit, arg2)) then
|
if (self.unit == "player" and IceHUD:ShouldSwapToVehicle(unit, arg2)) then
|
||||||
|
Reference in New Issue
Block a user