mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- minor cleanup of unused stuff in IceCore
- fixed the GCD to update its bar color as the user changes it instead of requiring re-enabling the module or reloading the ui - clarified some tooltip text on the TargetInfo module's text blocks - added DogTag support to the ToT module by request
This commit is contained in:
@ -19,17 +19,9 @@ end
|
|||||||
IceCore = IceCore_CreateClass()
|
IceCore = IceCore_CreateClass()
|
||||||
|
|
||||||
IceCore.Side = { Left = "LEFT", Right = "RIGHT" }
|
IceCore.Side = { Left = "LEFT", Right = "RIGHT" }
|
||||||
|
|
||||||
IceCore.BuffLimit = 40
|
IceCore.BuffLimit = 40
|
||||||
|
|
||||||
IceCore.prototype.defaults = {}
|
IceCore.prototype.defaults = {}
|
||||||
|
|
||||||
-- Events modules should register/trigger during load
|
|
||||||
IceCore.Loaded = "IceCore_Loaded"
|
|
||||||
IceCore.RegisterModule = "IceCore_RegisterModule"
|
|
||||||
|
|
||||||
|
|
||||||
-- Private variables --
|
|
||||||
IceCore.prototype.settings = nil
|
IceCore.prototype.settings = nil
|
||||||
IceCore.prototype.IceHUDFrame = nil
|
IceCore.prototype.IceHUDFrame = nil
|
||||||
IceCore.prototype.updatees = {}
|
IceCore.prototype.updatees = {}
|
||||||
@ -38,7 +30,6 @@ IceCore.prototype.update_elapsed = 0
|
|||||||
IceCore.prototype.elements = {}
|
IceCore.prototype.elements = {}
|
||||||
IceCore.prototype.enabled = nil
|
IceCore.prototype.enabled = nil
|
||||||
IceCore.prototype.presets = {}
|
IceCore.prototype.presets = {}
|
||||||
IceCore.prototype.settingsHash = nil
|
|
||||||
IceCore.prototype.bConfigMode = false
|
IceCore.prototype.bConfigMode = false
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
|
@ -22,7 +22,6 @@ function GlobalCoolDown.prototype:Enable(core)
|
|||||||
self:Show(false)
|
self:Show(false)
|
||||||
|
|
||||||
self.frame:SetFrameStrata("TOOLTIP")
|
self.frame:SetFrameStrata("TOOLTIP")
|
||||||
self.barFrame.bar:SetVertexColor(self:GetColor("GlobalCoolDown", 0.8))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function GlobalCoolDown.prototype:GetSpellId()
|
function GlobalCoolDown.prototype:GetSpellId()
|
||||||
@ -85,6 +84,7 @@ function GlobalCoolDown.prototype:CooldownStateChanged()
|
|||||||
self.CurrLerpTime = 0
|
self.CurrLerpTime = 0
|
||||||
self.moduleSettings.desiredLerpTime = dur or 1
|
self.moduleSettings.desiredLerpTime = dur or 1
|
||||||
end
|
end
|
||||||
|
self.barFrame.bar:SetVertexColor(self:GetColor("GlobalCoolDown", 0.8))
|
||||||
self:Show(true)
|
self:Show(true)
|
||||||
else
|
else
|
||||||
self.duration = nil
|
self.duration = nil
|
||||||
|
@ -561,7 +561,7 @@ function IceTargetInfo.prototype:GetOptions()
|
|||||||
opts["line1Tag"] = {
|
opts["line1Tag"] = {
|
||||||
type = 'input',
|
type = 'input',
|
||||||
name = 'Line 1 tag',
|
name = 'Line 1 tag',
|
||||||
desc = 'DogTag-formatted string to use for the top text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press ENTER after filling out this box or it will not save.',
|
desc = 'DogTag-formatted string to use for the top text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.',
|
||||||
get = function()
|
get = function()
|
||||||
return self.moduleSettings.line1Tag
|
return self.moduleSettings.line1Tag
|
||||||
end,
|
end,
|
||||||
@ -574,7 +574,6 @@ function IceTargetInfo.prototype:GetOptions()
|
|||||||
disabled = function()
|
disabled = function()
|
||||||
return not self.moduleSettings.enabled or DogTag == nil
|
return not self.moduleSettings.enabled or DogTag == nil
|
||||||
end,
|
end,
|
||||||
usage = '',
|
|
||||||
multiline = true,
|
multiline = true,
|
||||||
order = 39.1
|
order = 39.1
|
||||||
}
|
}
|
||||||
@ -582,7 +581,7 @@ function IceTargetInfo.prototype:GetOptions()
|
|||||||
opts["line2Tag"] = {
|
opts["line2Tag"] = {
|
||||||
type = 'input',
|
type = 'input',
|
||||||
name = 'Line 2 tag',
|
name = 'Line 2 tag',
|
||||||
desc = 'DogTag-formatted string to use for the second text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press ENTER after filling out this box or it will not save.',
|
desc = 'DogTag-formatted string to use for the second text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.',
|
||||||
get = function()
|
get = function()
|
||||||
return self.moduleSettings.line2Tag
|
return self.moduleSettings.line2Tag
|
||||||
end,
|
end,
|
||||||
@ -595,7 +594,6 @@ function IceTargetInfo.prototype:GetOptions()
|
|||||||
disabled = function()
|
disabled = function()
|
||||||
return not self.moduleSettings.enabled or DogTag == nil
|
return not self.moduleSettings.enabled or DogTag == nil
|
||||||
end,
|
end,
|
||||||
usage = '',
|
|
||||||
multiline = true,
|
multiline = true,
|
||||||
order = 39.2
|
order = 39.2
|
||||||
}
|
}
|
||||||
@ -603,7 +601,7 @@ function IceTargetInfo.prototype:GetOptions()
|
|||||||
opts["line3Tag"] = {
|
opts["line3Tag"] = {
|
||||||
type = 'input',
|
type = 'input',
|
||||||
name = 'Line 3 tag',
|
name = 'Line 3 tag',
|
||||||
desc = 'DogTag-formatted string to use for the third text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press ENTER after filling out this box or it will not save.',
|
desc = 'DogTag-formatted string to use for the third text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.',
|
||||||
get = function()
|
get = function()
|
||||||
return self.moduleSettings.line3Tag
|
return self.moduleSettings.line3Tag
|
||||||
end,
|
end,
|
||||||
@ -616,7 +614,6 @@ function IceTargetInfo.prototype:GetOptions()
|
|||||||
disabled = function()
|
disabled = function()
|
||||||
return not self.moduleSettings.enabled or DogTag == nil
|
return not self.moduleSettings.enabled or DogTag == nil
|
||||||
end,
|
end,
|
||||||
usage = '',
|
|
||||||
multiline = true,
|
multiline = true,
|
||||||
order = 39.3
|
order = 39.3
|
||||||
}
|
}
|
||||||
@ -624,7 +621,7 @@ function IceTargetInfo.prototype:GetOptions()
|
|||||||
opts["line4Tag"] = {
|
opts["line4Tag"] = {
|
||||||
type = 'input',
|
type = 'input',
|
||||||
name = 'Line 4 tag',
|
name = 'Line 4 tag',
|
||||||
desc = 'DogTag-formatted string to use for the bottom text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press ENTER after filling out this box or it will not save.',
|
desc = 'DogTag-formatted string to use for the bottom text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.',
|
||||||
get = function()
|
get = function()
|
||||||
return self.moduleSettings.line4Tag
|
return self.moduleSettings.line4Tag
|
||||||
end,
|
end,
|
||||||
@ -637,7 +634,6 @@ function IceTargetInfo.prototype:GetOptions()
|
|||||||
disabled = function()
|
disabled = function()
|
||||||
return not self.moduleSettings.enabled or DogTag == nil
|
return not self.moduleSettings.enabled or DogTag == nil
|
||||||
end,
|
end,
|
||||||
usage = '',
|
|
||||||
multiline = true,
|
multiline = true,
|
||||||
order = 39.4
|
order = 39.4
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
local SML = LibStub("LibSharedMedia-3.0")
|
local SML = LibStub("LibSharedMedia-3.0")
|
||||||
|
local DogTag = nil
|
||||||
|
|
||||||
local TargetOfTarget = IceCore_CreateClass(IceElement)
|
local TargetOfTarget = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
@ -178,6 +179,51 @@ function TargetOfTarget.prototype:GetOptions()
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
opts.textSettings = {
|
||||||
|
type = 'group',
|
||||||
|
name = "|c"..self.configColor.."Text Settings|r",
|
||||||
|
args = {
|
||||||
|
leftTag = {
|
||||||
|
type = 'input',
|
||||||
|
name = 'Left Tag',
|
||||||
|
desc = 'DogTag-formatted string to use for the left side of the bar.\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.',
|
||||||
|
get = function()
|
||||||
|
return self.moduleSettings.leftTag
|
||||||
|
end,
|
||||||
|
set = function(info, v)
|
||||||
|
v = DogTag:CleanCode(v)
|
||||||
|
self.moduleSettings.leftTag = v
|
||||||
|
self:RegisterFontStrings()
|
||||||
|
self:Redraw()
|
||||||
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled or DogTag == nil
|
||||||
|
end,
|
||||||
|
multiline = true,
|
||||||
|
order = 10,
|
||||||
|
},
|
||||||
|
rightTag = {
|
||||||
|
type = 'input',
|
||||||
|
name = 'Right Tag',
|
||||||
|
desc = 'DogTag-formatted string to use for the right side of the bar.\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.',
|
||||||
|
get = function()
|
||||||
|
return self.moduleSettings.rightTag
|
||||||
|
end,
|
||||||
|
set = function(info, v)
|
||||||
|
v = DogTag:CleanCode(v)
|
||||||
|
self.moduleSettings.rightTag = v
|
||||||
|
self:RegisterFontStrings()
|
||||||
|
self:Redraw()
|
||||||
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled or DogTag == nil
|
||||||
|
end,
|
||||||
|
multiline = true,
|
||||||
|
order = 10,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
return opts
|
return opts
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -193,6 +239,8 @@ function TargetOfTarget.prototype:GetDefaultSettings()
|
|||||||
defaults["texture"] = "Blizzard"
|
defaults["texture"] = "Blizzard"
|
||||||
defaults["sizeToGap"] = true
|
defaults["sizeToGap"] = true
|
||||||
defaults["totWidth"] = 200
|
defaults["totWidth"] = 200
|
||||||
|
defaults["leftTag"] = "[Name]"
|
||||||
|
defaults["rightTag"] = "[PercentHP]%"
|
||||||
return defaults
|
return defaults
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -210,8 +258,16 @@ end
|
|||||||
function TargetOfTarget.prototype:Enable(core)
|
function TargetOfTarget.prototype:Enable(core)
|
||||||
TargetOfTarget.super.prototype.Enable(self, core)
|
TargetOfTarget.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
|
if IceHUD.IceCore:ShouldUseDogTags() then
|
||||||
|
DogTag = LibStub("LibDogTag-3.0", true)
|
||||||
|
if DogTag then
|
||||||
|
LibStub("LibDogTag-Unit-3.0")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
self.scheduledEvent = self:ScheduleRepeatingTimer("Update", 0.2)
|
self.scheduledEvent = self:ScheduleRepeatingTimer("Update", 0.2)
|
||||||
RegisterUnitWatch(self.frame)
|
RegisterUnitWatch(self.frame)
|
||||||
|
self:RegisterFontStrings()
|
||||||
|
|
||||||
self:Update()
|
self:Update()
|
||||||
end
|
end
|
||||||
@ -223,6 +279,7 @@ function TargetOfTarget.prototype:Disable(core)
|
|||||||
self:CancelTimer(self.scheduledEvent, true)
|
self:CancelTimer(self.scheduledEvent, true)
|
||||||
|
|
||||||
UnregisterUnitWatch(self.frame)
|
UnregisterUnitWatch(self.frame)
|
||||||
|
self:UnregisterFontStrings()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -230,7 +287,7 @@ end
|
|||||||
|
|
||||||
-- OVERRIDE
|
-- OVERRIDE
|
||||||
function TargetOfTarget.prototype:CreateFrame()
|
function TargetOfTarget.prototype:CreateFrame()
|
||||||
if not (self.frame) then
|
if not self.frame then
|
||||||
self.frame = CreateFrame("Button", "IceHUD_"..self.elementName, self.parent, "SecureUnitButtonTemplate")
|
self.frame = CreateFrame("Button", "IceHUD_"..self.elementName, self.parent, "SecureUnitButtonTemplate")
|
||||||
self.frame:SetAttribute("unit", self.unit)
|
self.frame:SetAttribute("unit", self.unit)
|
||||||
end
|
end
|
||||||
@ -261,11 +318,9 @@ function TargetOfTarget.prototype:CreateFrame()
|
|||||||
self.frame:SetScript("OnLeave", nil)
|
self.frame:SetScript("OnLeave", nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
self.frame:SetAttribute("type1", "target")
|
self.frame:SetAttribute("type1", "target")
|
||||||
self.frame:SetAttribute("unit", self.unit)
|
self.frame:SetAttribute("unit", self.unit)
|
||||||
|
|
||||||
|
|
||||||
self:CreateBarFrame()
|
self:CreateBarFrame()
|
||||||
self:CreateToTFrame()
|
self:CreateToTFrame()
|
||||||
self:CreateToTHPFrame()
|
self:CreateToTHPFrame()
|
||||||
@ -281,7 +336,7 @@ function TargetOfTarget.prototype:CreateBarFrame()
|
|||||||
if not self.frame.bg then
|
if not self.frame.bg then
|
||||||
self.frame.bg = self.frame:CreateTexture(nil, "BACKGROUND")
|
self.frame.bg = self.frame:CreateTexture(nil, "BACKGROUND")
|
||||||
end
|
end
|
||||||
if (not self.frame.bar) then
|
if not self.frame.bar then
|
||||||
self.frame.bar = CreateFrame("StatusBar", nil, self.frame)
|
self.frame.bar = CreateFrame("StatusBar", nil, self.frame)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -302,7 +357,7 @@ function TargetOfTarget.prototype:CreateBarFrame()
|
|||||||
self.frame.bg:SetPoint("LEFT", self.frame.bar, "LEFT", -1, 0)
|
self.frame.bg:SetPoint("LEFT", self.frame.bar, "LEFT", -1, 0)
|
||||||
self.frame.bar:SetPoint("LEFT", self.frame, "LEFT", 0, 0)
|
self.frame.bar:SetPoint("LEFT", self.frame, "LEFT", 0, 0)
|
||||||
|
|
||||||
if (not self.frame.bar.texture) then
|
if not self.frame.bar.texture then
|
||||||
self.frame.bar.texture = self.frame.bar:CreateTexture()
|
self.frame.bar.texture = self.frame.bar:CreateTexture()
|
||||||
end
|
end
|
||||||
self.frame.bar.texture:SetTexture(SML:Fetch(SML.MediaType.STATUSBAR, self.moduleSettings.texture))
|
self.frame.bar.texture:SetTexture(SML:Fetch(SML.MediaType.STATUSBAR, self.moduleSettings.texture))
|
||||||
@ -310,7 +365,7 @@ function TargetOfTarget.prototype:CreateBarFrame()
|
|||||||
self.frame.bar:SetStatusBarTexture(self.frame.bar.texture)
|
self.frame.bar:SetStatusBarTexture(self.frame.bar.texture)
|
||||||
|
|
||||||
|
|
||||||
if (not self.frame.bar.highLight) then
|
if not self.frame.bar.highLight then
|
||||||
self.frame.bar.highLight = self.frame.bar:CreateTexture(nil, "OVERLAY")
|
self.frame.bar.highLight = self.frame.bar:CreateTexture(nil, "OVERLAY")
|
||||||
end
|
end
|
||||||
self.frame.bar.highLight:SetTexture("Interface\\QuestFrame\\UI-QuestTitleHighlight")
|
self.frame.bar.highLight:SetTexture("Interface\\QuestFrame\\UI-QuestTitleHighlight")
|
||||||
@ -325,13 +380,10 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function TargetOfTarget.prototype:CreateToTFrame()
|
function TargetOfTarget.prototype:CreateToTFrame()
|
||||||
|
if not self.frame.totName then
|
||||||
self.frame.totName = self:FontFactory(self.moduleSettings.fontSize, self.frame.bar, self.frame.totName)
|
self.frame.totName = self:FontFactory(self.moduleSettings.fontSize, self.frame.bar, self.frame.totName)
|
||||||
|
|
||||||
if self.moduleSettings.sizeToGap then
|
|
||||||
self.frame.totName:SetWidth(self.settings.gap-40)
|
|
||||||
else
|
|
||||||
self.frame.totName:SetWidth(self.moduleSettings.totWidth-40)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
self.frame.totName:SetHeight(self.height)
|
self.frame.totName:SetHeight(self.height)
|
||||||
self.frame.totName:SetJustifyH("LEFT")
|
self.frame.totName:SetJustifyH("LEFT")
|
||||||
self.frame.totName:SetJustifyV("CENTER")
|
self.frame.totName:SetJustifyV("CENTER")
|
||||||
@ -342,9 +394,10 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function TargetOfTarget.prototype:CreateToTHPFrame()
|
function TargetOfTarget.prototype:CreateToTHPFrame()
|
||||||
|
if not self.frame.totHealth then
|
||||||
self.frame.totHealth = self:FontFactory(self.moduleSettings.fontSize, self.frame.bar, self.frame.totHealth)
|
self.frame.totHealth = self:FontFactory(self.moduleSettings.fontSize, self.frame.bar, self.frame.totHealth)
|
||||||
|
end
|
||||||
|
|
||||||
self.frame.totHealth:SetWidth(40)
|
|
||||||
self.frame.totHealth:SetHeight(self.height)
|
self.frame.totHealth:SetHeight(self.height)
|
||||||
self.frame.totHealth:SetJustifyH("RIGHT")
|
self.frame.totHealth:SetJustifyH("RIGHT")
|
||||||
self.frame.totHealth:SetJustifyV("CENTER")
|
self.frame.totHealth:SetJustifyV("CENTER")
|
||||||
@ -443,8 +496,8 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function TargetOfTarget.prototype:Update()
|
function TargetOfTarget.prototype:Update()
|
||||||
if not (UnitExists(self.unit)) then
|
if not UnitExists(self.unit) then
|
||||||
if not (self.hadTarget) then
|
if not self.hadTarget then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
self.hadTarget = false
|
self.hadTarget = false
|
||||||
@ -459,32 +512,23 @@ function TargetOfTarget.prototype:Update()
|
|||||||
|
|
||||||
self:UpdateBuffs()
|
self:UpdateBuffs()
|
||||||
|
|
||||||
local _, unitClass = UnitClass(self.unit)
|
|
||||||
local name = UnitName(self.unit)
|
|
||||||
local reaction = UnitReaction(self.unit, "player")
|
|
||||||
|
|
||||||
local health = UnitHealth(self.unit)
|
local health = UnitHealth(self.unit)
|
||||||
local maxHealth = UnitHealthMax(self.unit)
|
local maxHealth = UnitHealthMax(self.unit)
|
||||||
|
|
||||||
|
if not IceHUD.IceCore:ShouldUseDogTags() then
|
||||||
|
local name = UnitName(self.unit)
|
||||||
local healthPercentage = math.floor( (health/maxHealth)*100 )
|
local healthPercentage = math.floor( (health/maxHealth)*100 )
|
||||||
|
|
||||||
if IceHUD.WowVer >= 30000 then
|
self.frame.totName:SetTextColor(1,1,1, 0.9)
|
||||||
-- self.frame.totName:SetTextColor(UnitSelectionColor(self.unit))
|
self.frame.totHealth:SetTextColor(1,1,1, 0.9)
|
||||||
self.frame.totName:SetTextColor(1,1,1)
|
|
||||||
self.frame.totName:SetAlpha(0.9)
|
|
||||||
|
|
||||||
-- self.frame.totHealth:SetTextColor(UnitSelectionColor(self.unit))
|
|
||||||
self.frame.totHealth:SetTextColor(1,1,1)
|
|
||||||
self.frame.totHealth:SetAlpha(0.9)
|
|
||||||
else
|
|
||||||
local rColor = UnitReactionColor[reaction or 5]
|
|
||||||
self.frame.totName:SetTextColor(rColor.r, rColor.g, rColor.b, 0.9)
|
|
||||||
self.frame.totHealth:SetTextColor(rColor.r, rColor.g, rColor.b, 0.9)
|
|
||||||
end
|
|
||||||
|
|
||||||
self.frame.totName:SetText(name)
|
self.frame.totName:SetText(name)
|
||||||
self.frame.totHealth:SetText(healthPercentage .. "%")
|
self.frame.totHealth:SetText(healthPercentage .. "%")
|
||||||
|
elseif DogTag then
|
||||||
|
DogTag:UpdateFontString(self.frame.totName)
|
||||||
|
DogTag:UpdateFontString(self.frame.totHealth)
|
||||||
|
end
|
||||||
|
|
||||||
-- self.frame.bar.texture:SetVertexColor(self:GetColor(unitClass, 0.7))
|
|
||||||
self.frame.bar.texture:SetVertexColor(0,1,0)
|
self.frame.bar.texture:SetVertexColor(0,1,0)
|
||||||
self.frame.bar:SetMinMaxValues(0, maxHealth)
|
self.frame.bar:SetMinMaxValues(0, maxHealth)
|
||||||
self.frame.bar:SetValue(health)
|
self.frame.bar:SetValue(health)
|
||||||
@ -493,6 +537,34 @@ function TargetOfTarget.prototype:Update()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function TargetOfTarget.prototype:RegisterFontStrings()
|
||||||
|
if DogTag ~= nil then
|
||||||
|
if self.frame.totName then
|
||||||
|
if self.moduleSettings.leftTag ~= '' then
|
||||||
|
DogTag:AddFontString(self.frame.totName, self.frame, self.moduleSettings.leftTag, "Unit", { unit = self.unit })
|
||||||
|
else
|
||||||
|
DogTag:RemoveFontString(self.frame.totName)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if self.frame.totHealth then
|
||||||
|
if self.moduleSettings.rightTag ~= '' then
|
||||||
|
DogTag:AddFontString(self.frame.totHealth, self.frame, self.moduleSettings.rightTag, "Unit", { unit = self.unit })
|
||||||
|
else
|
||||||
|
DogTag:RemoveFontString(self.frame.totHealth)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function TargetOfTarget.prototype:UnregisterFontStrings()
|
||||||
|
if DogTag ~= nil then
|
||||||
|
DogTag:RemoveFontString(self.frame.totName)
|
||||||
|
DogTag:RemoveFontString(self.frame.totHealth)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function TargetOfTarget.prototype:OnEnter(frame)
|
function TargetOfTarget.prototype:OnEnter(frame)
|
||||||
UnitFrame_OnEnter(frame)
|
UnitFrame_OnEnter(frame)
|
||||||
self.frame.bar.highLight:Show()
|
self.frame.bar.highLight:Show()
|
||||||
|
Reference in New Issue
Block a user