mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
unitframes: add option for power bar textures
This commit is contained in:
@@ -384,6 +384,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", unit, "raidiconsize", "24")
|
||||
pfUI:UpdateConfig("unitframes", unit, "portrait", "bar")
|
||||
pfUI:UpdateConfig("unitframes", unit, "bartexture", "Interface\\AddOns\\pfUI\\img\\bar")
|
||||
pfUI:UpdateConfig("unitframes", unit, "pbartexture", "Interface\\AddOns\\pfUI\\img\\bar")
|
||||
pfUI:UpdateConfig("unitframes", unit, "width", "200")
|
||||
pfUI:UpdateConfig("unitframes", unit, "height", "46")
|
||||
pfUI:UpdateConfig("unitframes", unit, "pheight", "10")
|
||||
|
||||
+1
-1
@@ -429,7 +429,7 @@ function pfUI.uf:UpdateConfig()
|
||||
if tonumber(f.config.pheight) < 0 then f.power:Hide() end
|
||||
|
||||
pfUI.api.CreateBackdrop(f.power, default_border)
|
||||
f.power.bar:SetStatusBarTexture(pfUI.media[f.config.bartexture])
|
||||
f.power.bar:SetStatusBarTexture(pfUI.media[f.config.pbartexture])
|
||||
f.power.bar:SetAllPoints(f.power)
|
||||
|
||||
local custompbg = f.config.defcolor == "0" and f.config.custompbg or C.unitframes.custompbg
|
||||
|
||||
+2
-1
@@ -1698,7 +1698,8 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
|
||||
CreateConfig(U[c], T["Portrait Position"], C.unitframes[c], "portrait", "dropdown", pfUI.gui.dropdowns.uf_portrait_position)
|
||||
CreateConfig(U[c], T["Portrait Width"], C.unitframes[c], "portraitwidth")
|
||||
CreateConfig(U[c], T["Portrait Height"], C.unitframes[c], "portraitheight")
|
||||
CreateConfig(U[c], T["Status Bar Texture"], C.unitframes[c], "bartexture", "dropdown", pfUI.gui.dropdowns.uf_bartexture)
|
||||
CreateConfig(U[c], T["Health Bar Texture"], C.unitframes[c], "bartexture", "dropdown", pfUI.gui.dropdowns.uf_bartexture)
|
||||
CreateConfig(U[c], T["Power Bar Texture"], C.unitframes[c], "pbartexture", "dropdown", pfUI.gui.dropdowns.uf_bartexture)
|
||||
CreateConfig(U[c], T["UnitFrame Spacing"], C.unitframes[c], "pspace")
|
||||
CreateConfig(U[c], T["Show PvP-Flag"], C.unitframes[c], "showPVP", "checkbox")
|
||||
CreateConfig(U[c], T["Show Loot Icon"], C.unitframes[c], "looticon", "checkbox")
|
||||
|
||||
Reference in New Issue
Block a user