- fixed a bug with the incoming heal bar being disabled and causing an oversized green bar to appear

This commit is contained in:
Parnic
2010-03-25 06:30:25 +00:00
parent 9878d7d69d
commit a726d5c03f

View File

@ -255,9 +255,9 @@ function PlayerHealth.prototype:GetOptions()
end,
set = function(v)
if not v then
self.healFrame:Hide()
self.healFrame.bar:Hide()
else
self.healFrame:Show()
self.healFrame.bar:Show()
end
self.moduleSettings.showIncomingHeals = v
@ -761,13 +761,20 @@ function PlayerHealth.prototype:CreateHealBar()
self.healFrame.bar:SetVertexColor(self:GetColor("PlayerHealthHealAmount", self.alpha * self.moduleSettings.healAlpha))
self:UpdateBar(1, "undef")
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")
if not self.moduleSettings.showIncomingHeals then
self.healFrame:Hide()
self.healFrame.bar:Hide()
end
end