nameplates: add option to use custom glow color

This commit is contained in:
shagu
2019-05-01 16:42:08 +02:00
parent 77d4397187
commit 669e613926
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -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")
+1
View File
@@ -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)
+2 -1
View File
@@ -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