mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
nameplates: add option to hightlight target
This commit is contained in:
@@ -686,6 +686,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("nameplates", nil, "heighthealth", "8")
|
||||
pfUI:UpdateConfig("nameplates", nil, "heightcast", "8")
|
||||
pfUI:UpdateConfig("nameplates", nil, "cpdisplay", "0")
|
||||
pfUI:UpdateConfig("nameplates", nil, "targethighlight", "0")
|
||||
pfUI:UpdateConfig("thirdparty", nil, "chatbg", "1")
|
||||
pfUI:UpdateConfig("thirdparty", nil, "showmeter", "0")
|
||||
pfUI:UpdateConfig("thirdparty", "dpsmate", "skin", "1")
|
||||
|
||||
@@ -1208,6 +1208,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
CreateConfig(nil, this, T["Healthbar Height"], C.nameplates, "heighthealth")
|
||||
CreateConfig(nil, this, T["Castbar Height"], C.nameplates, "heightcast")
|
||||
CreateConfig(nil, this, T["Enable Combo Point Display"], C.nameplates, "cpdisplay", "checkbox")
|
||||
CreateConfig(nil, this, T["Highlight Target Nameplate"], C.nameplates, "targethighlight", "checkbox")
|
||||
this.setup = true
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -161,7 +161,7 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
|
||||
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:SetTexture(1,1,1,.8)
|
||||
this.healthbar.bgtarget:ClearAllPoints()
|
||||
this.healthbar.bgtarget:SetPoint("CENTER", this.healthbar, "CENTER", 0, 0)
|
||||
this.healthbar.bgtarget:SetWidth(this.healthbar:GetWidth() + 5)
|
||||
@@ -475,7 +475,7 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
end
|
||||
|
||||
-- target indicator
|
||||
if UnitExists("target") and healthbar:GetAlpha() == 1 then
|
||||
if UnitExists("target") and healthbar:GetAlpha() == 1 and C.nameplates.targethighlight == "1" then
|
||||
healthbar.bgtarget:Show()
|
||||
else
|
||||
healthbar.bgtarget:Hide()
|
||||
|
||||
Reference in New Issue
Block a user