- fixed a bug with the low health flashing frame if alphas are set to 0

This commit is contained in:
Parnic
2008-04-18 14:35:47 +00:00
parent 17ae99571e
commit 36bde7ef00

View File

@ -153,6 +153,12 @@ function IceUnitBar.prototype:CreateFlashFrame()
self.flashFrame:ClearAllPoints() self.flashFrame:ClearAllPoints()
self.flashFrame:SetPoint("BOTTOM", self.frame, "BOTTOM", 0, 0) self.flashFrame:SetPoint("BOTTOM", self.frame, "BOTTOM", 0, 0)
if (self.moduleSettings.side == IceCore.Side.Left) then
self.flashFrame.flash:SetTexCoord(1, 0, 0, 1)
else
self.flashFrame.flash:SetTexCoord(0, 1, 0, 1)
end
end end
@ -245,7 +251,7 @@ function IceUnitBar.prototype:OnFlashUpdate()
decimals = 1 - decimals decimals = 1 - decimals
end end
decimals = decimals*1.1 -- add more dynanic to the color change decimals = decimals*1.1 -- add more dynamic to the color change
self.flashFrame:SetAlpha(decimals) self.flashFrame:SetAlpha(decimals)
end end