- 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:
Parnic
2010-04-12 05:26:46 +00:00
parent 5b991c24d3
commit d6e3ae3cd9
2 changed files with 21 additions and 1 deletions

View File

@ -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