unitframes: add custom frame configurations

This commit is contained in:
shagu
2017-04-19 19:52:23 +02:00
parent dc2da15551
commit 3c95c2339e
3 changed files with 40 additions and 19 deletions
+1 -19
View File
@@ -1,23 +1,5 @@
pfUI.uf = CreateFrame("Frame",nil,UIParent)
local uf_defaults = {
visible = "1",
portrait = "bar",
width = "200",
height = "50",
pheight = "10",
pspace = "-3",
buffs = "top",
buffsize = "20",
debuffs = "top",
debuffsize = "20",
invert_healthbar = "0",
buff_indicator = "0",
debuff_indicator = "0",
clickcast = "0",
faderange = "0",
}
local pfValidUnits = {}
pfValidUnits["player"] = true
pfValidUnits["target"] = true
@@ -68,7 +50,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
f.label = unit
f.id = id
f.config = config or uf_defaults
f.config = config or pfUI_config.unitframes.fallback
f.tick = tick
if f.config.visible ~= "1" then