diff --git a/api/config.lua b/api/config.lua index acb86ee4..e11fbef5 100644 --- a/api/config.lua +++ b/api/config.lua @@ -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") diff --git a/modules/gui.lua b/modules/gui.lua index 7e6fb2f1..33a53664 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -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() diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 64ba9b73..9e57c457 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -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)