- more fixes to the Runes module's visibility when entering/exiting combat, etc.

This commit is contained in:
Parnic
2008-11-04 03:37:26 +00:00
parent 5b8abb6eb5
commit 4923e3c2ca

View File

@ -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