mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed bars disappearing when they were set to reverse and they filled up
- also fixed an issue where deleting a custom cooldown bar while it was set to "always" display would cause it to get stuck on the screen until the next UI reload
This commit is contained in:
@ -508,15 +508,19 @@ function IceCustomCDBar.prototype:IsReady()
|
||||
end
|
||||
|
||||
function IceCustomCDBar.prototype:Show(bShouldShow)
|
||||
if (self.moduleSettings.displayMode == "Always") then
|
||||
if not self.bIsVisible then
|
||||
IceCustomCDBar.super.prototype.Show(self, true)
|
||||
end
|
||||
elseif (self.moduleSettings.displayMode == "When ready") then
|
||||
if not self.coolingDown and self:IsReady() then
|
||||
IceCustomCDBar.super.prototype.Show(self, true)
|
||||
if self.moduleSettings.enabled then
|
||||
if (self.moduleSettings.displayMode == "Always") then
|
||||
if not self.bIsVisible then
|
||||
IceCustomCDBar.super.prototype.Show(self, true)
|
||||
end
|
||||
elseif (self.moduleSettings.displayMode == "When ready") then
|
||||
if not self.coolingDown and self:IsReady() then
|
||||
IceCustomCDBar.super.prototype.Show(self, true)
|
||||
else
|
||||
IceCustomCDBar.super.prototype.Show(self, false)
|
||||
end
|
||||
else
|
||||
IceCustomCDBar.super.prototype.Show(self, false)
|
||||
IceCustomCDBar.super.prototype.Show(self, bShouldShow)
|
||||
end
|
||||
else
|
||||
IceCustomCDBar.super.prototype.Show(self, bShouldShow)
|
||||
|
Reference in New Issue
Block a user