unitframes: add option for power bar textures

This commit is contained in:
Mr_Rosh
2022-08-05 18:02:43 +02:00
committed by GitHub
parent c7f31fe9b0
commit b87a07bf3c
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -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
View File
@@ -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