mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed a bug with the incoming heal bar being disabled and causing an oversized green bar to appear
This commit is contained in:
@ -255,9 +255,9 @@ function PlayerHealth.prototype:GetOptions()
|
|||||||
end,
|
end,
|
||||||
set = function(v)
|
set = function(v)
|
||||||
if not v then
|
if not v then
|
||||||
self.healFrame:Hide()
|
self.healFrame.bar:Hide()
|
||||||
else
|
else
|
||||||
self.healFrame:Show()
|
self.healFrame.bar:Show()
|
||||||
end
|
end
|
||||||
|
|
||||||
self.moduleSettings.showIncomingHeals = v
|
self.moduleSettings.showIncomingHeals = v
|
||||||
@ -760,14 +760,21 @@ function PlayerHealth.prototype:CreateHealBar()
|
|||||||
self.healFrame.bar:SetPoint("BOTTOMRIGHT",self.frame,"BOTTOMRIGHT")
|
self.healFrame.bar:SetPoint("BOTTOMRIGHT",self.frame,"BOTTOMRIGHT")
|
||||||
|
|
||||||
self.healFrame.bar:SetVertexColor(self:GetColor("PlayerHealthHealAmount", self.alpha * self.moduleSettings.healAlpha))
|
self.healFrame.bar:SetVertexColor(self:GetColor("PlayerHealthHealAmount", self.alpha * self.moduleSettings.healAlpha))
|
||||||
|
|
||||||
|
self.healFrame:ClearAllPoints()
|
||||||
|
self.healFrame:SetPoint("BOTTOM", self.frame, "BOTTOM", 0, 0)
|
||||||
|
|
||||||
|
if (self.moduleSettings.side == IceCore.Side.Left) then
|
||||||
|
self.healFrame.bar:SetTexCoord(1, 0, 0, 1)
|
||||||
|
else
|
||||||
|
self.healFrame.bar:SetTexCoord(0, 1, 0, 1)
|
||||||
|
end
|
||||||
|
self.healFrame.bar:SetHeight(0)
|
||||||
|
|
||||||
self:UpdateBar(1, "undef")
|
self:UpdateBar(1, "undef")
|
||||||
|
|
||||||
self.healFrame:ClearAllPoints()
|
|
||||||
self.healFrame:SetPoint("BOTTOM", self.frame, "BOTTOM", 0, 0)
|
|
||||||
|
|
||||||
if not self.moduleSettings.showIncomingHeals then
|
if not self.moduleSettings.showIncomingHeals then
|
||||||
self.healFrame:Hide()
|
self.healFrame.bar:Hide()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user