mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Worked around a bug Blizzard created in 6.0 with cooldown wipes not updating alpha with their parent frame. See http://www.wowinterface.com/forums/showthread.php?t=49950 for discussion.
This commit is contained in:
@ -1669,6 +1669,19 @@ function IceTargetInfo.prototype:Update(unit)
|
|||||||
self:UpdateAlpha()
|
self:UpdateAlpha()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function IceTargetInfo.prototype:UpdateAlpha()
|
||||||
|
IceTargetInfo.super.prototype.UpdateAlpha(self)
|
||||||
|
|
||||||
|
-- Temp until Blizzard fixes their cooldown wipes. http://www.wowinterface.com/forums/showthread.php?t=49950
|
||||||
|
for i = 1, #self.frame["buffFrame"].iconFrames do
|
||||||
|
self.frame["buffFrame"].iconFrames[i].cd:SetSwipeColor(0, 0, 0, self.alpha)
|
||||||
|
self.frame["buffFrame"].iconFrames[i].cd:SetDrawEdge(false)
|
||||||
|
end
|
||||||
|
for i = 1, #self.frame["debuffFrame"].iconFrames do
|
||||||
|
self.frame["debuffFrame"].iconFrames[i].cd:SetSwipeColor(0, 0, 0, self.alpha)
|
||||||
|
self.frame["debuffFrame"].iconFrames[i].cd:SetDrawEdge(false)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function IceTargetInfo.prototype:OnEnter(frame)
|
function IceTargetInfo.prototype:OnEnter(frame)
|
||||||
if self.moduleSettings.mouseTooltip then
|
if self.moduleSettings.mouseTooltip then
|
||||||
@ -1685,13 +1698,24 @@ function IceTargetInfo.prototype:OnLeave(frame)
|
|||||||
self.frame.highLight:Hide()
|
self.frame.highLight:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function IceTargetInfo.prototype:AllowMouseBuffInteraction(id)
|
||||||
function IceTargetInfo.prototype:BuffOnEnter(this)
|
|
||||||
if (not self:IsVisible()) then
|
if (not self:IsVisible()) then
|
||||||
return
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
if not self.unit or not this.id then
|
if not self.unit or not id then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
if self.alpha == 0 then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
function IceTargetInfo.prototype:BuffOnEnter(this)
|
||||||
|
if not self:AllowMouseBuffInteraction(this.id) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user