mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed a bug in the TargetInfo module that cropped up in 3.0 when LibDogTag is not present causing the module to not display
This commit is contained in:
@ -1009,13 +1009,14 @@ function TargetInfo.prototype:Update(unit)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if DogTag == nil or self.moduleSettings.line1Tag == '' then
|
if DogTag == nil or self.moduleSettings.line1Tag == '' then
|
||||||
local reactionColor = self:ConvertToHex(UnitReactionColor[self.reaction])
|
-- local reactionColor = UnitSelectionColor("target")
|
||||||
if (self.tapped) then
|
-- if (self.tapped) then
|
||||||
reactionColor = self:GetHexColor("Tapped")
|
-- reactionColor = self:GetHexColor("Tapped")
|
||||||
end
|
-- end
|
||||||
|
|
||||||
local line1 = string.format("|c%s%s|r", reactionColor, self.name or '')
|
-- local line1 = string.format("%s", self.name or '')
|
||||||
self.frame.targetName:SetText(line1)
|
self.frame.targetName:SetText(self.name or '')
|
||||||
|
self.frame.targetName:SetVertexColor(UnitSelectionColor("target"))
|
||||||
end
|
end
|
||||||
|
|
||||||
if DogTag == nil or self.moduleSettings.line2Tag == '' then
|
if DogTag == nil or self.moduleSettings.line2Tag == '' then
|
||||||
|
Reference in New Issue
Block a user