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:
@ -549,6 +549,10 @@ function IceTargetHealth.prototype:Disable(core)
|
||||
IceTargetHealth.super.prototype.Disable(self, core)
|
||||
|
||||
UnregisterUnitWatch(self.frame)
|
||||
|
||||
if self.moduleSettings.hideBlizz then
|
||||
self:ShowBlizz()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -878,19 +882,10 @@ end
|
||||
|
||||
function IceTargetHealth.prototype:ShowBlizz()
|
||||
TargetFrame:Show()
|
||||
TargetFrame:RegisterEvent("PLAYER_TARGET_CHANGED")
|
||||
TargetFrame:RegisterEvent("UNIT_HEALTH")
|
||||
TargetFrame:RegisterEvent("UNIT_LEVEL")
|
||||
TargetFrame:RegisterEvent("UNIT_FACTION")
|
||||
TargetFrame:RegisterEvent("UNIT_CLASSIFICATION_CHANGED")
|
||||
TargetFrame:RegisterEvent("UNIT_AURA")
|
||||
TargetFrame:RegisterEvent("PLAYER_FLAGS_CHANGED")
|
||||
TargetFrame:RegisterEvent("PARTY_MEMBERS_CHANGED")
|
||||
TargetFrame:RegisterEvent("RAID_TARGET_UPDATE")
|
||||
TargetFrame:GetScript("OnLoad")(TargetFrame)
|
||||
|
||||
ComboFrame:Show()
|
||||
ComboFrame:RegisterEvent("PLAYER_TARGET_CHANGED");
|
||||
ComboFrame:RegisterEvent("PLAYER_COMBO_POINTS");
|
||||
ComboFrame:GetScript("OnLoad")(ComboFrame)
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user