diff --git a/api/config.lua b/api/config.lua index 52c7c47b..277c8189 100644 --- a/api/config.lua +++ b/api/config.lua @@ -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") diff --git a/modules/gui.lua b/modules/gui.lua index 25cccdfc..997ab4f1 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -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) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index ce73d47e..ddd65309 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -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()