mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-12 08:30:00 +00:00
unitframes: add option for vertical health bars
This commit is contained in:
@@ -120,6 +120,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "player", "debufflimit", "32")
|
||||
pfUI:UpdateConfig("unitframes", "player", "debuffperrow", "8")
|
||||
pfUI:UpdateConfig("unitframes", "player", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "player", "verticalbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "player", "buff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "player", "debuff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "player", "clickcast", "0")
|
||||
@@ -157,6 +158,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "target", "debufflimit", "32")
|
||||
pfUI:UpdateConfig("unitframes", "target", "debuffperrow", "8")
|
||||
pfUI:UpdateConfig("unitframes", "target", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "target", "verticalbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "target", "buff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "target", "debuff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "target", "clickcast", "0")
|
||||
@@ -191,6 +193,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "focus", "debufflimit", "32")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "debuffperrow", "8")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "verticalbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "buff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "debuff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "focus", "clickcast", "0")
|
||||
@@ -224,6 +227,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "group", "debufflimit", "8")
|
||||
pfUI:UpdateConfig("unitframes", "group", "debuffperrow", "8")
|
||||
pfUI:UpdateConfig("unitframes", "group", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "group", "verticalbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "group", "buff_indicator", "1")
|
||||
pfUI:UpdateConfig("unitframes", "group", "debuff_indicator", "1")
|
||||
pfUI:UpdateConfig("unitframes", "group", "clickcast", "0")
|
||||
@@ -258,6 +262,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "debufflimit", "16")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "debuffperrow", "8")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "verticalbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "buff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "debuff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "grouptarget", "clickcast", "0")
|
||||
@@ -291,6 +296,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "grouppet", "debufflimit", "16")
|
||||
pfUI:UpdateConfig("unitframes", "grouppet", "debuffperrow", "8")
|
||||
pfUI:UpdateConfig("unitframes", "grouppet", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "grouppet", "verticalbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "grouppet", "buff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "grouppet", "debuff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "grouppet", "clickcast", "0")
|
||||
@@ -324,6 +330,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "raid", "debufflimit", "16")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "debuffperrow", "8")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "verticalbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "buff_indicator", "1")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "debuff_indicator", "1")
|
||||
pfUI:UpdateConfig("unitframes", "raid", "clickcast", "0")
|
||||
@@ -357,6 +364,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "debufflimit", "16")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "debuffperrow", "8")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "verticalbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "buff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "debuff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "clickcast", "0")
|
||||
@@ -390,6 +398,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "pet", "debufflimit", "16")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "debuffperrow", "8")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "verticalbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "buff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "debuff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "clickcast", "0")
|
||||
@@ -423,6 +432,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "fallback", "debufflimit", "16")
|
||||
pfUI:UpdateConfig("unitframes", "fallback", "debuffperrow", "8")
|
||||
pfUI:UpdateConfig("unitframes", "fallback", "invert_healthbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "fallback", "verticalbar", "0")
|
||||
pfUI:UpdateConfig("unitframes", "fallback", "buff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "fallback", "debuff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", "fallback", "clickcast", "0")
|
||||
|
||||
@@ -94,6 +94,9 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
|
||||
f.hp.bar = CreateFrame("StatusBar", nil, f.hp)
|
||||
f.hp.bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
|
||||
f.hp.bar:SetAllPoints(f.hp)
|
||||
if f.config.verticalbar == "1" then
|
||||
f.hp.bar:SetOrientation("VERTICAL")
|
||||
end
|
||||
f.hp.bar:SetMinMaxValues(0, 100)
|
||||
|
||||
if pfUI_config.unitframes.custombg == "1" then
|
||||
|
||||
Reference in New Issue
Block a user