- fixed the incoming heal bar being invisible sometimes (such as the bar alpha being 0 when OOC, >0 when not full, and the player being OOC with a non-full bar)

This commit is contained in:
Parnic
2010-04-11 23:48:51 +00:00
parent 97db5aeb5e
commit 5b991c24d3

View File

@ -760,7 +760,7 @@ function PlayerHealth.prototype:CreateHealBar()
self.healFrame:SetHeight(self.settings.barHeight)
if not self.healFrame.bar then
self.healFrame.bar = self.frame:CreateTexture(nil, "BACKGROUND")
self.healFrame.bar = self.healFrame:CreateTexture(nil, "BACKGROUND")
end
self.healFrame.bar:SetTexture(IceElement.TexturePath .. self:GetMyBarTexture())
@ -1169,5 +1169,13 @@ UIParent:RegisterEvent("RAID_ROSTER_UPDATE")
-- ShowPartyFrame(); -- Just call Blizzard default method
--end
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
end
-- Load us up
IceHUD.PlayerHealth = PlayerHealth:new()