- fixed the Eclipse bar not showing up since 1.7.2

This commit is contained in:
Parnic
2010-10-26 00:07:36 +00:00
parent e16fbe8321
commit bc4deff6fd
2 changed files with 1 additions and 11 deletions

View File

@ -889,17 +889,11 @@ function IceBarElement.prototype:ConditionalSetupUpdate()
end end
if not string.find(self.elementName, "MirrorBar") if not string.find(self.elementName, "MirrorBar")
and ((IceHUD.WowVer < 30000 or not GetCVarBool("predictedPower")) or (not string.find(self.elementName, "PlayerMana"))) and ((IceHUD.WowVer < 30000 or not GetCVarBool("predictedPower")) or (not string.find(self.elementName, "PlayerMana"))) then
and self:ShouldRegisterOnUpdate() then
IceHUD.IceCore:RequestUpdates(self, self.MyOnUpdateFunc) IceHUD.IceCore:RequestUpdates(self, self.MyOnUpdateFunc)
end end
end end
function IceBarElement.prototype:ShouldRegisterOnUpdate()
return true
end
-- Creates background for the bar -- Creates background for the bar
function IceBarElement.prototype:CreateBackground() function IceBarElement.prototype:CreateBackground()
if not (self.frame) then if not (self.frame) then

View File

@ -101,10 +101,6 @@ function EclipseBar.prototype:CreateFrame()
self:UpdateAlpha() self:UpdateAlpha()
end end
function EclipseBar.prototype:ShouldRegisterOnUpdate()
return false
end
function EclipseBar.prototype:CreateSolarBar() function EclipseBar.prototype:CreateSolarBar()
if not (self.solarBar) then if not (self.solarBar) then
self.solarBar = CreateFrame("Frame", nil, self.frame) self.solarBar = CreateFrame("Frame", nil, self.frame)