mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40: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:
@ -313,6 +313,10 @@ end
|
||||
|
||||
function FocusHealth.prototype:Disable(core)
|
||||
FocusHealth.super.prototype.Disable(self, core)
|
||||
|
||||
if self.moduleSettings.hideBlizz then
|
||||
self:ShowBlizz()
|
||||
end
|
||||
end
|
||||
|
||||
function FocusHealth.prototype:UpdateEvent(event, unit)
|
||||
@ -445,16 +449,7 @@ end
|
||||
function FocusHealth.prototype:ShowBlizz()
|
||||
FocusFrame:Show()
|
||||
|
||||
FocusFrame:RegisterEvent("PLAYER_ENTERING_WORLD");
|
||||
FocusFrame:RegisterEvent("PLAYER_FOCUS_CHANGED");
|
||||
FocusFrame:RegisterEvent("UNIT_HEALTH");
|
||||
FocusFrame:RegisterEvent("UNIT_LEVEL");
|
||||
FocusFrame:RegisterEvent("UNIT_FACTION");
|
||||
FocusFrame:RegisterEvent("UNIT_CLASSIFICATION_CHANGED");
|
||||
FocusFrame:RegisterEvent("UNIT_AURA");
|
||||
FocusFrame:RegisterEvent("PLAYER_FLAGS_CHANGED");
|
||||
FocusFrame:RegisterEvent("PARTY_MEMBERS_CHANGED");
|
||||
FocusFrame:RegisterEvent("RAID_TARGET_UPDATE");
|
||||
FocusFrame:GetScript("OnLoad")(FocusFrame)
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user