mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed bar text not properly hiding on bars that use RegisterUnitWatch to control visibility
This commit is contained in:
@ -114,10 +114,6 @@ function IceCustomHealth.prototype:Enable(core)
|
||||
self:CreateFrame()
|
||||
|
||||
self.scheduledEvent = self:ScheduleRepeatingTimer("Update", IceHUD.IceCore:UpdatePeriod())
|
||||
|
||||
if not IceHUD.IceCore:ShouldUseDogTags() then
|
||||
self.frame:SetScript("OnHide", function() self:SetBottomText1("") self:SetBottomText2("") end)
|
||||
end
|
||||
end
|
||||
|
||||
function IceCustomHealth.prototype:Disable(core)
|
||||
|
@ -258,10 +258,6 @@ function FocusHealth.prototype:Enable(core)
|
||||
-- for showing/hiding the frame based on unit visibility
|
||||
self.frame:SetAttribute("unit", self.unit)
|
||||
RegisterUnitWatch(self.frame)
|
||||
|
||||
if not IceHUD.IceCore:ShouldUseDogTags() then
|
||||
self.frame:SetScript("OnHide", function() self:SetBottomText1("") self:SetBottomText2("") end)
|
||||
end
|
||||
end
|
||||
|
||||
function FocusHealth.prototype:CreateBackground()
|
||||
|
@ -70,10 +70,6 @@ function PetHealth.prototype:Enable(core)
|
||||
self.frame:SetAttribute("unit", self.unit)
|
||||
RegisterUnitWatch(self.frame)
|
||||
|
||||
if not IceHUD.IceCore:ShouldUseDogTags() then
|
||||
self.frame:SetScript("OnHide", function() self:SetBottomText1("") self:SetBottomText2("") end)
|
||||
end
|
||||
|
||||
self:CheckPet()
|
||||
end
|
||||
|
||||
|
@ -646,10 +646,6 @@ function IceTargetHealth.prototype:Enable(core)
|
||||
self:Update(self.unit)
|
||||
|
||||
RegisterUnitWatch(self.frame)
|
||||
|
||||
if not IceHUD.IceCore:ShouldUseDogTags() then
|
||||
self.frame:SetScript("OnHide", function() self:SetBottomText1("") self:SetBottomText2("") end)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user