mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed up the clickable frame for player and target to be hidden/unclickable when the bar alpha is at 0
This commit is contained in:
@ -1171,10 +1171,18 @@ UIParent:RegisterEvent("RAID_ROSTER_UPDATE")
|
|||||||
|
|
||||||
function PlayerHealth.prototype:UpdateBar(scale, color, alpha)
|
function PlayerHealth.prototype:UpdateBar(scale, color, alpha)
|
||||||
PlayerHealth.super.prototype.UpdateBar(self, scale, color, alpha)
|
PlayerHealth.super.prototype.UpdateBar(self, scale, color, alpha)
|
||||||
|
|
||||||
if self.healFrame and self.healFrame.bar then
|
if self.healFrame and self.healFrame.bar then
|
||||||
self.healFrame.bar:SetVertexColor(self:GetColor("PlayerHealthHealAmount", self.alpha * self.moduleSettings.healAlpha))
|
self.healFrame.bar:SetVertexColor(self:GetColor("PlayerHealthHealAmount", self.alpha * self.moduleSettings.healAlpha))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if self.frame.button then
|
||||||
|
if self.alpha == 0 then
|
||||||
|
self.frame.button:Hide()
|
||||||
|
else
|
||||||
|
self.frame.button:Show()
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Load us up
|
-- Load us up
|
||||||
|
@ -893,6 +893,18 @@ function IceTargetHealth.prototype:HideBlizz()
|
|||||||
ComboFrame:UnregisterAllEvents()
|
ComboFrame:UnregisterAllEvents()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function IceTargetHealth.prototype:UpdateBar(scale, color, alpha)
|
||||||
|
IceTargetHealth.super.prototype.UpdateBar(self, scale, color, alpha)
|
||||||
|
|
||||||
|
if self.frame.button then
|
||||||
|
if self.alpha == 0 then
|
||||||
|
self.frame.button:Hide()
|
||||||
|
else
|
||||||
|
self.frame.button:Show()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Load us up
|
-- Load us up
|
||||||
|
Reference in New Issue
Block a user