mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -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["runeMode"] = "Graphical"
|
||||||
defaults["usesDogTagStrings"] = false
|
defaults["usesDogTagStrings"] = false
|
||||||
defaults["hideBlizz"] = true
|
defaults["hideBlizz"] = true
|
||||||
|
defaults["alwaysFullAlpha"] = true
|
||||||
|
|
||||||
return defaults
|
return defaults
|
||||||
end
|
end
|
||||||
@ -310,6 +311,13 @@ function Runes.prototype:HideBlizz()
|
|||||||
RuneFrame:UnregisterAllEvents()
|
RuneFrame:UnregisterAllEvents()
|
||||||
end
|
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
|
-- Load us up
|
||||||
local _, unitClass = UnitClass("player")
|
local _, unitClass = UnitClass("player")
|
||||||
if (unitClass == "DEATHKNIGHT") then
|
if (unitClass == "DEATHKNIGHT") then
|
||||||
|
Reference in New Issue
Block a user