diff --git a/api/config.lua b/api/config.lua index d554c127..acb86ee4 100644 --- a/api/config.lua +++ b/api/config.lua @@ -1009,6 +1009,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("nameplates", nil, "cpdisplay", "0") pfUI:UpdateConfig("nameplates", nil, "targethighlight", "0") pfUI:UpdateConfig("nameplates", nil, "targetglow", "1") + pfUI:UpdateConfig("nameplates", nil, "glowcolor", "1,1,1,1") pfUI:UpdateConfig("nameplates", nil, "targetzoom", "0") pfUI:UpdateConfig("nameplates", nil, "notargalpha", ".75") diff --git a/modules/gui.lua b/modules/gui.lua index d4005494..7e6fb2f1 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -1927,6 +1927,7 @@ pfUI:RegisterModule("gui", 20400, function () CreateConfig(nil, T["Enable Combo Point Display"], C.nameplates, "cpdisplay", "checkbox") CreateConfig(nil, T["Highlight Target Nameplate"], C.nameplates, "targethighlight", "checkbox") CreateConfig(nil, T["Draw Glow Around Target Nameplate"], C.nameplates, "targetglow", "checkbox") + CreateConfig(nil, T["Glow Color Around Target Nameplate"], C.nameplates, "glowcolor", "color") CreateConfig(nil, T["Zoom Target Nameplate"], C.nameplates, "targetzoom", "checkbox") CreateConfig(nil, T["Inactive Nameplate Alpha"], C.nameplates, "notargalpha") end) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 80c57777..64ba9b73 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -2,6 +2,7 @@ pfUI:RegisterModule("nameplates", 20400, function () local font = C.nameplates.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default local font_size = C.nameplates.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size local inactive_alpha = tonumber(C.nameplates.notargalpha) + local glowr, glowg, glowb, glowa = GetStringColor(C.nameplates.glowcolor) pfUI.nameplates = CreateFrame("Frame", nil, UIParent) @@ -163,7 +164,7 @@ pfUI:RegisterModule("nameplates", 20400, function () this.healthbar.glowtarget:SetPoint("CENTER", this.healthbar, "CENTER", 0, 0) this.healthbar.glowtarget:SetWidth(this.healthbar:GetWidth() + 50) this.healthbar.glowtarget:SetHeight(this.healthbar:GetHeight() + 25) - this.healthbar.glowtarget:SetVertexColor(1,1,1,1) + this.healthbar.glowtarget:SetVertexColor(glowr, glowg, glowb, glowa) end this.healthbar.reaction = nil