mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Possible fix to reported issue
I can't reproduce the problem, but this should cover it if it happens. https://www.wowace.com/projects/ice-hud/issues/344
This commit is contained in:
@ -386,19 +386,24 @@ function IceCastBar.prototype:MyOnUpdate()
|
|||||||
self.action == IceCastBar.Actions.Success or
|
self.action == IceCastBar.Actions.Success or
|
||||||
self.action == IceCastBar.Actions.Failure)
|
self.action == IceCastBar.Actions.Failure)
|
||||||
then
|
then
|
||||||
local scale = GetTime() - self.actionStartTime
|
local scale
|
||||||
|
if self.actionStartTime then
|
||||||
|
scale = GetTime() - self.actionStartTime
|
||||||
|
end
|
||||||
|
|
||||||
if (scale > 1) then
|
if scale and (scale > 1) then
|
||||||
self:StopBar()
|
self:StopBar()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
self:UpdateBar(1, self:GetCurrentCastingColor())
|
self:UpdateBar(1, self:GetCurrentCastingColor())
|
||||||
|
|
||||||
if (self.action == IceCastBar.Actions.Failure) then
|
if scale then
|
||||||
self:FlashBar("CastFail", 1-scale, self.actionMessage, "CastFail")
|
if (self.action == IceCastBar.Actions.Failure) then
|
||||||
else
|
self:FlashBar("CastFail", 1-scale, self.actionMessage, "CastFail")
|
||||||
self:FlashBar("CastSuccess", 1-scale, self.actionMessage)
|
else
|
||||||
|
self:FlashBar("CastSuccess", 1-scale, self.actionMessage)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@ -465,7 +470,9 @@ function IceCastBar.prototype:GetCurrentCastingColor()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function IceCastBar.prototype:FlashBar(color, alpha, text, textColor)
|
function IceCastBar.prototype:FlashBar(color, alpha, text, textColor)
|
||||||
self.frame:SetAlpha(alpha)
|
if alpha then
|
||||||
|
self.frame:SetAlpha(alpha)
|
||||||
|
end
|
||||||
|
|
||||||
local r, g, b = self.settings.backgroundColor.r, self.settings.backgroundColor.g, self.settings.backgroundColor.b
|
local r, g, b = self.settings.backgroundColor.r, self.settings.backgroundColor.g, self.settings.backgroundColor.b
|
||||||
if (self.settings.backgroundToggle) then
|
if (self.settings.backgroundToggle) then
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
v1.14.22:
|
||||||
|
|
||||||
|
- Fixed reported issue with a Lua error on Wrath Classic clients. https://www.wowace.com/projects/ice-hud/issues/344
|
||||||
|
|
||||||
v1.14.21:
|
v1.14.21:
|
||||||
|
|
||||||
- Increased maximum scale/zoom to 400%, by request.
|
- Increased maximum scale/zoom to 400%, by request.
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
v1.14.22:
|
||||||
|
|
||||||
|
- Fixed reported issue with a Lua error on Wrath Classic clients. https://www.wowace.com/projects/ice-hud/issues/344
|
||||||
|
|
||||||
v1.14.21:
|
v1.14.21:
|
||||||
|
|
||||||
- Increased maximum scale/zoom to 400%, by request.
|
- Increased maximum scale/zoom to 400%, by request.
|
||||||
|
Reference in New Issue
Block a user