mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed runes module misbehaving after loading into the world when ooc alpha was set to 0
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user