mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added a global toggle for DogTags so they can be enabled or disabled for the mod
- added an optional rare/elite/rare-elite indicator to the target health bar (off by default) - made configuration mode show target raid icons (and the new elite indicator as well)
This commit is contained in:
@ -726,7 +726,7 @@ function PlayerHealth.prototype:Update(unit)
|
||||
|
||||
self:UpdateBar(self.health/self.maxHealth, color)
|
||||
|
||||
if not AceLibrary:HasInstance("LibDogTag-3.0") then
|
||||
if not IceHUD.IceCore:ShouldUseDogTags() then
|
||||
self:SetBottomText1(math.floor(self.healthPercentage * 100))
|
||||
self:SetBottomText2(self:GetFormattedText(self.health, self.maxHealth), textColor)
|
||||
end
|
||||
@ -755,7 +755,9 @@ end
|
||||
|
||||
|
||||
function PlayerHealth.prototype:CreateTexCoord(texframe, icon, width, height, scale, left, right, top, bottom)
|
||||
texframe = self.frame:CreateTexture(nil, "BACKGROUND")
|
||||
if not texframe then
|
||||
texframe = self.frame:CreateTexture(nil, "BACKGROUND")
|
||||
end
|
||||
texframe:SetTexture(icon)
|
||||
texframe:SetTexCoord(left, right, top, bottom)
|
||||
self:SetTexScale(texframe, width, height, scale)
|
||||
@ -777,6 +779,10 @@ end
|
||||
|
||||
|
||||
function PlayerHealth.prototype:DestroyTexFrame(texframe)
|
||||
if not texframe then
|
||||
return nil
|
||||
end
|
||||
|
||||
texframe:SetTexture(nil)
|
||||
texframe:Hide()
|
||||
texframe:ClearAllPoints()
|
||||
|
Reference in New Issue
Block a user