mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
TargetHealth bugfixes
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
## Name: IceHUD
|
||||
## Title: IceHUD |cff7fff7f -Ace2-|r
|
||||
## Notes: Another HUD mod
|
||||
## Version: 0.6 ($Revision$)
|
||||
## Version: 0.6.1 ($Revision$)
|
||||
## SavedVariables: IceCoreDB
|
||||
## OptionalDeps: Ace2, DewdropLib, FuBar_ToFu, DruidBar, SoleManax, MobHealth
|
||||
## X-Category: UnitFrame
|
||||
|
@ -96,6 +96,10 @@ function TargetHealth.prototype:Enable(core)
|
||||
self:RegisterEvent("UNIT_MAXHEALTH", "Update")
|
||||
self:RegisterEvent("UNIT_FLAGS", "Update")
|
||||
|
||||
if (self.moduleSettings.hideBlizz) then
|
||||
self:HideBlizz()
|
||||
end
|
||||
|
||||
self:Update(self.unit)
|
||||
end
|
||||
|
||||
@ -181,7 +185,6 @@ end
|
||||
|
||||
function TargetHealth.prototype:ShowBlizz()
|
||||
TargetFrame:Show()
|
||||
|
||||
TargetFrame:RegisterEvent("PLAYER_TARGET_CHANGED")
|
||||
TargetFrame:RegisterEvent("UNIT_HEALTH")
|
||||
TargetFrame:RegisterEvent("UNIT_LEVEL")
|
||||
@ -191,13 +194,19 @@ function TargetHealth.prototype:ShowBlizz()
|
||||
TargetFrame:RegisterEvent("PLAYER_FLAGS_CHANGED")
|
||||
TargetFrame:RegisterEvent("PARTY_MEMBERS_CHANGED")
|
||||
TargetFrame:RegisterEvent("RAID_TARGET_UPDATE")
|
||||
|
||||
ComboFrame:Show()
|
||||
ComboFrame:RegisterEvent("PLAYER_TARGET_CHANGED");
|
||||
ComboFrame:RegisterEvent("PLAYER_COMBO_POINTS");
|
||||
end
|
||||
|
||||
|
||||
function TargetHealth.prototype:HideBlizz()
|
||||
TargetFrame:Hide()
|
||||
|
||||
TargetFrame:UnregisterAllEvents()
|
||||
|
||||
ComboFrame:Hide()
|
||||
ComboFrame:UnregisterAllEvents()
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user