- fixed Blizzard's default runes to be properly hidden when the default player health frame is left enabled

This commit is contained in:
Parnic
2010-10-13 06:55:53 +00:00
parent 40284d6c03
commit 6f2878be32

View File

@ -195,10 +195,6 @@ function Runes.prototype:Enable(core)
self:RegisterEvent("RUNE_POWER_UPDATE", "UpdateRunePower");
self:RegisterEvent("RUNE_TYPE_UPDATE", "UpdateRuneType");
self:RegisterEvent("PLAYER_ENTERING_WORLD", "ResetRuneAvailability");
if (self.moduleSettings.hideBlizz) then
self:HideBlizz()
end
end
function Runes.prototype:Disable(core)
@ -213,6 +209,10 @@ function Runes.prototype:ResetRuneAvailability()
for i=1, self.numRunes do
self:UpdateRunePower(nil, i, true)
end
if (self.moduleSettings.hideBlizz) then
self:HideBlizz()
end
end
-- simply shows/hides the foreground rune when it becomes usable/unusable. this allows the background transparent rune to show only