- 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:
Parnic
2010-07-24 18:40:35 +00:00
parent 54476799a4
commit 12093a32fa
2 changed files with 15 additions and 11 deletions

View File

@ -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)