mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
@ -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()
|
||||
|
Reference in New Issue
Block a user