- fixed runes module misbehaving after loading into the world when ooc alpha was set to 0

This commit is contained in:
Parnic
2008-10-17 16:17:28 +00:00
parent 22caa87da4
commit 31324ac33f

View File

@ -156,6 +156,7 @@ function Runes.prototype:GetDefaultSettings()
defaults["runeMode"] = "Graphical"
defaults["usesDogTagStrings"] = false
defaults["hideBlizz"] = true
defaults["alwaysFullAlpha"] = true
return defaults
end
@ -310,6 +311,13 @@ function Runes.prototype:HideBlizz()
RuneFrame:UnregisterAllEvents()
end
function Runes.prototype:TargetChanged()
Runes.super.prototype.TargetChanged(self)
-- sort of a hack fix...if "ooc" alpha is set to 0, then the runes frame is all jacked up when the user spawns in
-- need to re-run CreateFrame in order to setup the frame properly. not sure why :(
self:Redraw()
end
-- Load us up
local _, unitClass = UnitClass("player")
if (unitClass == "DEATHKNIGHT") then