mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40: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)
|
||||
PlayerHealth.super.prototype.UpdateBar(self, scale, color, alpha)
|
||||
|
||||
|
||||
if self.healFrame and self.healFrame.bar then
|
||||
self.healFrame.bar:SetVertexColor(self:GetColor("PlayerHealthHealAmount", self.alpha * self.moduleSettings.healAlpha))
|
||||
end
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user