mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 20:20:01 +00:00
unitframes: add focus frame configurations
This commit is contained in:
@@ -137,6 +137,25 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "target", "txtright", "healthdyn")
|
||||
pfUI:UpdateConfig("unitframes", "target", "animation", "0")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "focus", "visible", "1")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "portrait", "bar")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "width", "200")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "height", "50")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "pheight", "10")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "pspace", "-3")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "buffs", "top")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "buffsize", "20")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "debuffs", "top")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "debuffsize", "20")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "buff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "debuff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "clickcast", "0")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "faderange", "0")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "txtleft", "unit")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "txtcenter", "none")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "txtright", "healthdyn")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "group", "visible", "1")
|
||||
pfUI:UpdateConfig("unitframes", "group", "portrait", "off")
|
||||
pfUI:UpdateConfig("unitframes", "group", "width", "164")
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ pfUI:RegisterModule("focus", function ()
|
||||
-- do not go further on disabled UFs
|
||||
if C.unitframes.disable == "1" then return end
|
||||
|
||||
pfUI.uf.focus = pfUI.uf:CreateUnitFrame("Focus", nil, nil, .2)
|
||||
pfUI.uf.focus = pfUI.uf:CreateUnitFrame("Focus", nil, C.unitframes.focus, .2)
|
||||
pfUI.uf.focus:UpdateFrameSize()
|
||||
pfUI.uf.focus:SetPoint("CENTER", UIParent, "CENTER", 0,0)
|
||||
UpdateMovable(pfUI.uf.focus)
|
||||
|
||||
@@ -925,6 +925,26 @@ pfUI:RegisterModule("gui", function ()
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Center Text", C.unitframes.target, "txtcenter", "dropdown", txtValues)
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Right Text", C.unitframes.target, "txtright", "dropdown", txtValues)
|
||||
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Focus", nil, nil, "header")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Display Player Frame", C.unitframes.focus, "visible", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Portrait Position", C.unitframes.focus, "portrait", "dropdown", { "bar", "left", "right", "off" })
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Health Bar Width", C.unitframes.focus, "width")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Health Bar Height", C.unitframes.focus, "height")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Power Bar Height", C.unitframes.focus, "pheight")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Spacing", C.unitframes.focus, "pspace")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Buff Position", C.unitframes.focus, "buffs", "dropdown", { "top", "bottom", "hide"})
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Buff Size", C.unitframes.focus, "buffsize")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Debuff Position", C.unitframes.focus, "debuffs", "dropdown", { "top", "bottom", "hide"})
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Debuff Size", C.unitframes.focus, "debuffsize")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Invert Health Bar", C.unitframes.focus, "invert_healthbar", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Enable Buff Indicators", C.unitframes.focus, "buff_indicator", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Enable Debuff Indicators", C.unitframes.focus, "debuff_indicator", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Enable Clickcast", C.unitframes.focus, "clickcast", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Enable Range Fading", C.unitframes.focus, "faderange", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Left Text", C.unitframes.focus, "txtleft", "dropdown", txtValues)
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Center Text", C.unitframes.focus, "txtcenter", "dropdown", txtValues)
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Right Text", C.unitframes.focus, "txtright", "dropdown", txtValues)
|
||||
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Group", nil, nil, "header")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Display Group Frames", C.unitframes.group, "visible", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.uf, "Portrait Position", C.unitframes.group, "portrait", "dropdown", { "bar", "left", "right", "off" })
|
||||
|
||||
Reference in New Issue
Block a user