mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed up several "hide blizzard frame" options to re-display when the module is disabled and to call blizzard's OnLoad for the frame instead of manually entering every event to re-register
- fixed "show incoming heals" option to be properly toggleable on 4.0 (bad conditional on the 'disabled' option) - hid "cooldown mode" option on the totems module since there was never more than one choice
This commit is contained in:
@ -184,7 +184,7 @@ end
|
||||
-- OVERRIDE
|
||||
function Runes.prototype:Redraw()
|
||||
Runes.super.prototype.Redraw(self)
|
||||
|
||||
|
||||
self:CreateFrame()
|
||||
end
|
||||
|
||||
@ -202,6 +202,14 @@ function Runes.prototype:Enable(core)
|
||||
end
|
||||
end
|
||||
|
||||
function Runes.prototype:Disable(core)
|
||||
Runes.super.prototype.Disable(self, core)
|
||||
|
||||
if self.moduleSettings.hideBlizz then
|
||||
self:ShowBlizz()
|
||||
end
|
||||
end
|
||||
|
||||
function Runes.prototype:ResetRuneAvailability()
|
||||
for i=1, self.numRunes do
|
||||
self:UpdateRunePower(nil, i, true)
|
||||
@ -381,10 +389,13 @@ end
|
||||
function Runes.prototype:ShowBlizz()
|
||||
RuneFrame:Show()
|
||||
|
||||
RuneFrame:RegisterEvent("RUNE_POWER_UPDATE");
|
||||
RuneFrame:RegisterEvent("RUNE_TYPE_UPDATE");
|
||||
RuneFrame:RegisterEvent("RUNE_REGEN_UPDATE");
|
||||
RuneFrame:RegisterEvent("PLAYER_ENTERING_WORLD");
|
||||
RuneFrame:GetScript("OnLoad")(RuneFrame)
|
||||
for i=1, self.numRunes do
|
||||
local frame = _G["RuneButtonIndividual"..i]
|
||||
if frame then
|
||||
frame:GetScript("OnLoad")(frame)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user