mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed the Eclipse bar not showing up since 1.7.2
This commit is contained in:
@ -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
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user