mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed a bug with the low health flashing frame if alphas are set to 0
This commit is contained in:
@ -153,6 +153,12 @@ function IceUnitBar.prototype:CreateFlashFrame()
|
||||
|
||||
self.flashFrame:ClearAllPoints()
|
||||
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
|
||||
|
||||
|
||||
@ -245,7 +251,7 @@ function IceUnitBar.prototype:OnFlashUpdate()
|
||||
decimals = 1 - decimals
|
||||
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)
|
||||
end
|
||||
|
Reference in New Issue
Block a user