castbar: add option to select texture

This commit is contained in:
shagu
2019-04-18 23:55:10 +02:00
parent 020dcc5689
commit 242135d91e
3 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -7,6 +7,8 @@ pfUI:RegisterModule("castbar", 20400, function ()
default_border = C.appearance.border.unitframes
end
local cbtexture = C.appearance.castbar.texture
local function CreateCastbar(name, parent, unitstr, unitname)
local cb = CreateFrame("Frame", name, parent or UIParent)
@@ -29,7 +31,7 @@ pfUI:RegisterModule("castbar", 20400, function ()
-- statusbar
cb.bar = CreateFrame("StatusBar", nil, cb)
cb.bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
cb.bar:SetStatusBarTexture(cbtexture)
cb.bar:ClearAllPoints()
cb.bar:SetAllPoints(cb)
cb.bar:SetMinMaxValues(0, 100)