mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed text on bars using RegisterUnitWatch to be hidden properly (more fallout from the change in r644 - this was specific to people that had dogtag support disabled)
This commit is contained in:
@ -646,6 +646,10 @@ 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
|
||||
|
||||
|
||||
@ -813,7 +817,7 @@ function IceTargetHealth.prototype:Update(unit)
|
||||
|
||||
self:UpdateBar(self.healthPercentage, self.color)
|
||||
|
||||
if not IceHUD.IceCore:ShouldUseDogTags() then
|
||||
if not IceHUD.IceCore:ShouldUseDogTags() and self.frame:IsVisible() then
|
||||
self:SetBottomText1(math.floor(self.healthPercentage * 100))
|
||||
|
||||
if self.moduleSettings.abbreviateHealth then
|
||||
|
Reference in New Issue
Block a user