From 5b991c24d35c1aff263be439f7b235cdf19afd55 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 11 Apr 2010 23:48:51 +0000 Subject: [PATCH] - 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) --- modules/PlayerHealth.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/PlayerHealth.lua b/modules/PlayerHealth.lua index bb516a9..d8b6f93 100644 --- a/modules/PlayerHealth.lua +++ b/modules/PlayerHealth.lua @@ -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()