mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 21:20:00 +00:00
nameplates: add target indicator
This commit is contained in:
@@ -159,6 +159,15 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
this.healthbar.bg:SetHeight(this.healthbar:GetHeight() + 3)
|
||||
end
|
||||
|
||||
if not this.healthbar.bgtarget then
|
||||
this.healthbar.bgtarget = this.healthbar:CreateTexture(nil, "BACKGROUND")
|
||||
this.healthbar.bgtarget:SetTexture(1,1,1,0.90)
|
||||
this.healthbar.bgtarget:ClearAllPoints()
|
||||
this.healthbar.bgtarget:SetPoint("CENTER", this.healthbar, "CENTER", 0, 0)
|
||||
this.healthbar.bgtarget:SetWidth(this.healthbar:GetWidth() + 5)
|
||||
this.healthbar.bgtarget:SetHeight(this.healthbar:GetHeight() + 5)
|
||||
end
|
||||
|
||||
this.healthbar.reaction = nil
|
||||
|
||||
-- level
|
||||
@@ -465,6 +474,13 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
name:SetTextColor(1,1,1,0.85)
|
||||
end
|
||||
|
||||
-- target indicator
|
||||
if UnitExists("target") and healthbar:GetAlpha() == 1 then
|
||||
healthbar.bgtarget:Show()
|
||||
else
|
||||
healthbar.bgtarget:Hide()
|
||||
end
|
||||
|
||||
-- update combopoints
|
||||
if combopoints and C.nameplates.cpdisplay == "1" then
|
||||
for point=1, 5 do
|
||||
|
||||
Reference in New Issue
Block a user