mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 12:10:01 +00:00
xpbar: add option to select texture
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user