mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
- fixed TargetTargetHealth module from not hiding when the player was the ToT and the self-display mode was set to "hide"
This commit is contained in:
@ -70,7 +70,7 @@ function TargetTargetHealth.prototype:GetOptions()
|
|||||||
IceHUD.IceCore:SetColor("SelfColor", r, g, b)
|
IceHUD.IceCore:SetColor("SelfColor", r, g, b)
|
||||||
end,
|
end,
|
||||||
disabled = function()
|
disabled = function()
|
||||||
return not self.moduleSettings.enabled or self.moduleSettings.selfDisplayMode ~= "Color as SelfColor"
|
return not self.moduleSettings.enabled
|
||||||
end,
|
end,
|
||||||
hasAlpha = false,
|
hasAlpha = false,
|
||||||
order = 45,
|
order = 45,
|
||||||
@ -130,11 +130,19 @@ function TargetTargetHealth.prototype:Update(unit)
|
|||||||
if self.moduleSettings.selfDisplayMode == "Color as SelfColor" then
|
if self.moduleSettings.selfDisplayMode == "Color as SelfColor" then
|
||||||
self.color = "SelfColor"
|
self.color = "SelfColor"
|
||||||
elseif self.moduleSettings.selfDisplayMode == "Hide" then
|
elseif self.moduleSettings.selfDisplayMode == "Hide" then
|
||||||
|
if self:IsVisible() then
|
||||||
|
UnregisterUnitWatch(self.frame)
|
||||||
|
end
|
||||||
|
|
||||||
self:Show(false)
|
self:Show(false)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not self:IsVisible() then
|
||||||
|
RegisterUnitWatch(self.frame)
|
||||||
|
end
|
||||||
|
|
||||||
self:Show(true)
|
self:Show(true)
|
||||||
|
|
||||||
self.determineColor = false
|
self.determineColor = false
|
||||||
|
Reference in New Issue
Block a user