From 63face9f4c0030fea8a6238663c62dbaad904b4b Mon Sep 17 00:00:00 2001 From: iceroth Date: Sat, 23 Dec 2006 17:15:46 +0000 Subject: [PATCH] Bug fixes.. (lag indicator and resting status) --- IceHUD.toc | 2 +- modules/CastBar.lua | 10 +++++----- modules/PlayerHealth.lua | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/IceHUD.toc b/IceHUD.toc index 2d85376..f2dbc69 100644 --- a/IceHUD.toc +++ b/IceHUD.toc @@ -3,7 +3,7 @@ ## Name: IceHUD ## Title: IceHUD |cff7fff7f -Ace2-|r ## Notes: Another HUD addon -## Version: 0.8.5 ($Revision$) +## Version: 0.8.6 ($Revision$) ## SavedVariables: IceCoreDB ## OptionalDeps: Ace2, DewdropLib, DruidBar, MobHealth ## X-Embeds: Ace2, DewdropLib diff --git a/modules/CastBar.lua b/modules/CastBar.lua index 41c9c89..d8d2893 100644 --- a/modules/CastBar.lua +++ b/modules/CastBar.lua @@ -153,9 +153,9 @@ function CastBar.prototype:CreateLagBar() if (self.moduleSettings.side == IceCore.Side.Left) then - self.lagBar.bar:SetTexCoord(1, 0, 1, 1) + self.lagBar.bar:SetTexCoord(1, 0, 0, 0) else - self.lagBar.bar:SetTexCoord(0, 1, 1, 1) + self.lagBar.bar:SetTexCoord(0, 1, 0, 0) end self.lagBar:ClearAllPoints() @@ -183,9 +183,9 @@ function CastBar.prototype:SpellCastStart(unit) local y = self.settings.barHeight - (pos * self.settings.barHeight) if (self.moduleSettings.side == IceCore.Side.Left) then - self.lagBar.bar:SetTexCoord(1, 0, 1, 1-pos) + self.lagBar.bar:SetTexCoord(1, 0, 0, pos) else - self.lagBar.bar:SetTexCoord(0, 1, 1, 1-pos) + self.lagBar.bar:SetTexCoord(0, 1, 0, pos) end self.lagBar:SetPoint("BOTTOM", self.frame, "BOTTOM", 0, y) @@ -196,4 +196,4 @@ end ------------------------------------------------------------------------------- -- Load us up -CastBar:new() +PRKL = CastBar:new() diff --git a/modules/PlayerHealth.lua b/modules/PlayerHealth.lua index 3e6e38e..1a73063 100644 --- a/modules/PlayerHealth.lua +++ b/modules/PlayerHealth.lua @@ -26,7 +26,9 @@ function PlayerHealth.prototype:Enable(core) self:RegisterEvent("UNIT_HEALTH", "Update") self:RegisterEvent("UNIT_MAXHEALTH", "Update") + self:RegisterEvent("PLAYER_UPDATE_RESTING", "Resting") + self:RegisterEvent("PLAYER_ENTERING_WORLD", "Resting") if (self.moduleSettings.hideBlizz) then self:HideBlizz()