nameplates: add option to choose custom texture

This commit is contained in:
shagu
2019-05-01 18:46:38 +02:00
parent fc623ed165
commit 70acbe4307
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -1012,6 +1012,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("nameplates", nil, "glowcolor", "1,1,1,1")
pfUI:UpdateConfig("nameplates", nil, "targetzoom", "0")
pfUI:UpdateConfig("nameplates", nil, "notargalpha", ".75")
pfUI:UpdateConfig("nameplates", nil, "healthtexture", "Interface\\AddOns\\pfUI\\img\\bar")
pfUI:UpdateConfig("abuttons", nil, "enable", "0")
pfUI:UpdateConfig("abuttons", nil, "position", "bottom")
+2
View File
@@ -1930,6 +1930,8 @@ pfUI:RegisterModule("gui", 20400, function ()
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")
CreateConfig(nil, T["Healthbar Texture"], C.nameplates, "healthtexture", "dropdown", pfUI.gui.dropdowns.uf_bartexture)
end)
CreateGUIEntry(T["Thirdparty"], T["Integrations"], function()
+2 -1
View File
@@ -3,6 +3,7 @@ pfUI:RegisterModule("nameplates", 20400, function ()
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)
local hptexture = C.nameplates.healthtexture
pfUI.nameplates = CreateFrame("Frame", nil, UIParent)
@@ -133,7 +134,7 @@ pfUI:RegisterModule("nameplates", 20400, function ()
this.name:SetPoint("TOP", this.nameplate, "TOP", 0, 0)
-- healthbar
this.healthbar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
this.healthbar:SetStatusBarTexture(hptexture)
this.healthbar:ClearAllPoints()
this.healthbar:SetPoint("TOP", this.name, "BOTTOM", 0, -3)
this.healthbar:SetWidth(C.nameplates.width)