mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-15 22:30:13 -05:00
- better fix for cast bars getting stuck sometimes
- reinstated the code that was shutting off updates when a bar reached its desired scale
This commit is contained in:
@ -1186,9 +1186,7 @@ function IceBarElement.prototype:SetScale(inScale, force)
|
||||
self:ConditionalSetupUpdate()
|
||||
else
|
||||
if self.CurrScale == self.DesiredScale then
|
||||
-- Parnic: this optimization may be reaching a bit too far and causing things to get stuck
|
||||
-- without this, several modules continues to update that don't need to but the stuck issues seem to be decreased
|
||||
--IceHUD.IceCore:RequestUpdates(self, nil)
|
||||
IceHUD.IceCore:RequestUpdates(self, nil)
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -1558,13 +1556,3 @@ function IceBarElement.prototype:LoadMarkers()
|
||||
self:CreateMarker(i)
|
||||
end
|
||||
end
|
||||
|
||||
function IceBarElement.prototype:Show(bShouldShow)
|
||||
if IceBarElement.super.prototype.Show(self, bShouldShow) then
|
||||
if self.bIsVisible then
|
||||
self:ConditionalSetupUpdate()
|
||||
else
|
||||
IceHUD.IceCore:RequestUpdates(self, nil)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user