mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
api: introduce new unitframes
This commit is contained in:
+79
-9
@@ -1,3 +1,5 @@
|
||||
pfUI.gui = CreateFrame("Frame",nil,UIParent)
|
||||
|
||||
function pfUI:UpdateConfig(group, subgroup, entry, value)
|
||||
-- check for missing config groups
|
||||
if not pfUI_config[group] then
|
||||
@@ -75,8 +77,8 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", nil, "portraitalpha", "0.1")
|
||||
pfUI:UpdateConfig("unitframes", nil, "portraittexture", "1")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", nil, "buff_size", "20")
|
||||
pfUI:UpdateConfig("unitframes", nil, "debuff_size", "20")
|
||||
pfUI:UpdateConfig("unitframes", nil, "buff_size", "20") -- TODO deprecated
|
||||
pfUI:UpdateConfig("unitframes", nil, "debuff_size", "20") -- TODO deprecated
|
||||
pfUI:UpdateConfig("unitframes", nil, "layout", "default")
|
||||
pfUI:UpdateConfig("unitframes", nil, "globalclick", "0")
|
||||
|
||||
@@ -85,28 +87,76 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "player", "height", "50")
|
||||
pfUI:UpdateConfig("unitframes", "player", "pheight", "10")
|
||||
pfUI:UpdateConfig("unitframes", "player", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "player", "buffs", "top")
|
||||
pfUI:UpdateConfig("unitframes", "player", "buffsize", "20") -- TODO migrate uf.buffsize
|
||||
pfUI:UpdateConfig("unitframes", "player", "debuffs", "top")
|
||||
pfUI:UpdateConfig("unitframes", "player", "debuffsize", "20") -- TODO migrate uf.debuffsize
|
||||
pfUI:UpdateConfig("unitframes", "player", "txtleft", "power")
|
||||
pfUI:UpdateConfig("unitframes", "player", "txtcenter", "none")
|
||||
pfUI:UpdateConfig("unitframes", "player", "txtright", "healthdyn")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "player", "showPVPMinimap", "0")
|
||||
pfUI:UpdateConfig("unitframes", "player", "showPVP", "0")
|
||||
pfUI:UpdateConfig("unitframes", "player", "buffs", "top")
|
||||
pfUI:UpdateConfig("unitframes", "player", "energy", "1")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "target", "portrait", "bar")
|
||||
pfUI:UpdateConfig("unitframes", "target", "animation", "0")
|
||||
pfUI:UpdateConfig("unitframes", "target", "width", "200")
|
||||
pfUI:UpdateConfig("unitframes", "target", "height", "50")
|
||||
pfUI:UpdateConfig("unitframes", "target", "pheight", "10")
|
||||
pfUI:UpdateConfig("unitframes", "target", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "target", "buffs", "top")
|
||||
pfUI:UpdateConfig("unitframes", "target", "buffsize", "20") -- TODO migrate uf.buffsize
|
||||
pfUI:UpdateConfig("unitframes", "target", "debuffs", "top")
|
||||
pfUI:UpdateConfig("unitframes", "target", "debuffsize", "20") -- TODO migrate uf.debuffsize
|
||||
pfUI:UpdateConfig("unitframes", "target", "txtleft", "power")
|
||||
pfUI:UpdateConfig("unitframes", "target", "txtcenter", "healthmiss")
|
||||
pfUI:UpdateConfig("unitframes", "target", "txtright", "healthmiss")
|
||||
pfUI:UpdateConfig("unitframes", "target", "animation", "0")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "group", "portrait", "off")
|
||||
pfUI:UpdateConfig("unitframes", "group", "width", "164")
|
||||
pfUI:UpdateConfig("unitframes", "group", "height", "32")
|
||||
pfUI:UpdateConfig("unitframes", "group", "pheight", "4")
|
||||
pfUI:UpdateConfig("unitframes", "group", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "group", "buffs", "bottom")
|
||||
pfUI:UpdateConfig("unitframes", "group", "buffsize", "16")
|
||||
pfUI:UpdateConfig("unitframes", "group", "debuffs", "bottom")
|
||||
pfUI:UpdateConfig("unitframes", "group", "debuffsize", "16")
|
||||
pfUI:UpdateConfig("unitframes", "group", "txtleft", "powerperc")
|
||||
pfUI:UpdateConfig("unitframes", "group", "txtcenter", "healthmiss")
|
||||
pfUI:UpdateConfig("unitframes", "group", "txtright", "healthmiss")
|
||||
pfUI:UpdateConfig("unitframes", "group", "hide_in_raid", "0")
|
||||
pfUI:UpdateConfig("unitframes", "group", "clickcast", "0")
|
||||
pfUI:UpdateConfig("unitframes", "group", "raid_buffs", "0")
|
||||
pfUI:UpdateConfig("unitframes", "group", "raid_debuffs", "0")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "portrait", "off")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "width", "100")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "height", "18")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "pheight", "4")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "buffs", "off")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "buffsize", "16")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "debuffs", "off")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "debuffsize", "16")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "txtleft", "powerperc")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "txtcenter", "healthmiss")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "txtright", "healthmiss")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "raid", "portrait", "off")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "width", "50")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "height", "26")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "pheight", "4")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "buffs", "off")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "buffsize", "16")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "debuffs", "off")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "debuffsize", "16")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "txtleft", "powerperc")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "txtcenter", "healthmiss")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "txtright", "healthmiss")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "raid", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "show_missing", "0")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "clickcast", "")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "clickcast_shift", "")
|
||||
@@ -119,11 +169,31 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "raid", "debuffs_enable", "0")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "debuffs_class", "0")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "portrait", "bar")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "portrait", "bar")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "width", "100")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "height", "20")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "pheight", "3")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "buffs", "off")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "buffsize", "16")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "debuffs", "off")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "debuffsize", "16")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "txtleft", "powerperc")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "txtcenter", "healthmiss")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "txtright", "healthmiss")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "pet", "portrait", "bar")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "portrait", "bar")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "width", "100")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "height", "16")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "pheight", "4")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "buffs", "off")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "buffsize", "12")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "debuffs", "off")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "debuffsize", "12")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "txtleft", "powerperc")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "txtcenter", "healthmiss")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "txtright", "healthmiss")
|
||||
|
||||
pfUI:UpdateConfig("bars", nil, "icon_size", "20")
|
||||
pfUI:UpdateConfig("bars", nil, "background", "1")
|
||||
|
||||
Reference in New Issue
Block a user