From 4923e3c2ca7c3480a42e57e562863d850ff6677a Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 4 Nov 2008 03:37:26 +0000 Subject: [PATCH] - more fixes to the Runes module's visibility when entering/exiting combat, etc. --- modules/Runes.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/Runes.lua b/modules/Runes.lua index 38f13ef..94315fe 100644 --- a/modules/Runes.lua +++ b/modules/Runes.lua @@ -228,7 +228,7 @@ function Runes.prototype:CreateFrame() self.frame:ClearAllPoints() self.frame:SetPoint("TOP", self.parent, "BOTTOM", self.moduleSettings.hpos, self.moduleSettings.vpos) - self:Show(true) +-- self:Show(true) self:CreateRuneFrame() end @@ -331,6 +331,21 @@ function Runes.prototype:TargetChanged() self:Redraw() end +function Runes.prototype:InCombat() + Runes.super.prototype.InCombat(self) + self:Redraw() +end + +function Runes.prototype:OutCombat() + Runes.super.prototype.OutCombat(self) + self:Redraw() +end + +function Runes.prototype:CheckCombat() + Runes.super.prototype.CheckCombat(self) + self:Redraw() +end + -- Load us up local _, unitClass = UnitClass("player") if (unitClass == "DEATHKNIGHT") then