From a726d5c03f95302e937a181a41ccd69212518c16 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 25 Mar 2010 06:30:25 +0000 Subject: [PATCH] - fixed a bug with the incoming heal bar being disabled and causing an oversized green bar to appear --- modules/PlayerHealth.lua | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/modules/PlayerHealth.lua b/modules/PlayerHealth.lua index 3a3eaa2..c685732 100644 --- a/modules/PlayerHealth.lua +++ b/modules/PlayerHealth.lua @@ -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 @@ -760,14 +760,21 @@ function PlayerHealth.prototype:CreateHealBar() self.healFrame.bar:SetPoint("BOTTOMRIGHT",self.frame,"BOTTOMRIGHT") 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.healFrame:ClearAllPoints() - self.healFrame:SetPoint("BOTTOM", self.frame, "BOTTOM", 0, 0) - if not self.moduleSettings.showIncomingHeals then - self.healFrame:Hide() + self.healFrame.bar:Hide() end end