xpbar: add option to select texture

This commit is contained in:
Mr_Rosh
2025-02-04 18:24:40 +01:00
committed by GitHub
parent b19e357f32
commit 02f07ec98d
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -595,6 +595,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("panel", "xp", "xp_position", "RIGHT")
pfUI:UpdateConfig("panel", "xp", "xp_color", ".25,.25,1,1")
pfUI:UpdateConfig("panel", "xp", "rest_color", "1,.25,1,.5")
pfUI:UpdateConfig("panel", "xp", "texture", "Interface\\AddOns\\pfUI\\img\\bar")
pfUI:UpdateConfig("panel", "xp", "rep_always", "0")
pfUI:UpdateConfig("panel", "xp", "rep_display", "REP")
+1
View File
@@ -2099,6 +2099,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, T["Colors"], nil, nil, "header")
CreateConfig(U["xpbar"], T["Experience Color"], C.panel.xp, "xp_color", "color")
CreateConfig(U["xpbar"], T["Rested Color"], C.panel.xp, "rest_color", "color")
CreateConfig(U["xpbar"], T["Bar Texture"], C.panel.xp, "texture", "dropdown", pfUI.gui.dropdowns.uf_bartexture)
end)
CreateGUIEntry(T["XP Bar"], T["Reputation Bar"], function()
+2 -2
View File
@@ -242,7 +242,7 @@ end
CreateBackdropShadow(b)
b.bar = b.bar or CreateFrame("StatusBar", nil, b)
b.bar:SetStatusBarTexture(pfUI.media["img:bar"])
b.bar:SetStatusBarTexture(pfUI.media[C.panel.xp.texture])
b.bar:ClearAllPoints()
b.bar:SetAllPoints(b)
b.bar:SetFrameLevel(barLevel)
@@ -252,7 +252,7 @@ end
b.bar:SetOrientation(b.mode)
b.restedbar = b.restedbar or CreateFrame("StatusBar", nil, b)
b.restedbar:SetStatusBarTexture(pfUI.media["img:bar"])
b.restedbar:SetStatusBarTexture(pfUI.media[C.panel.xp.texture])
b.restedbar:ClearAllPoints()
b.restedbar:SetAllPoints(b)
b.restedbar:SetFrameLevel(restedLevel)