mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- patched up the TargetHealth (+ToTHealth +CustomHealth) modules to create the raid icon during CreateFrame() instead of Enable() to ensure that nothing's called in an unexpected order
This commit is contained in:
@ -646,8 +646,6 @@ function IceTargetHealth.prototype:Enable(core)
|
||||
self:HideBlizz()
|
||||
end
|
||||
|
||||
self:CreateRaidIconFrame()
|
||||
|
||||
self:Update(self.unit)
|
||||
|
||||
RegisterUnitWatch(self.frame)
|
||||
@ -746,6 +744,11 @@ function IceTargetHealth.prototype:EnableClickTargeting(bEnable)
|
||||
end
|
||||
end
|
||||
|
||||
function IceTargetHealth.prototype:OnShow()
|
||||
IceTargetHealth.super.prototype.OnShow(self)
|
||||
|
||||
self:Update(self.unit)
|
||||
end
|
||||
|
||||
function IceTargetHealth.prototype:UpdateEvent(event, unit)
|
||||
self:Update(unit)
|
||||
@ -909,6 +912,8 @@ end
|
||||
function IceTargetHealth.prototype:CreateFrame()
|
||||
IceTargetHealth.super.prototype.CreateFrame(self)
|
||||
|
||||
self:CreateRaidIconFrame()
|
||||
|
||||
-- for showing/hiding the frame based on unit visibility
|
||||
self.frame:SetAttribute("unit", self.unit)
|
||||
end
|
||||
|
Reference in New Issue
Block a user