mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 05:00:02 +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
|
||||
|
||||
Reference in New Issue
Block a user