unitframes: option to use custom colors per frame

This commit is contained in:
shagu
2019-04-19 17:09:27 +02:00
parent 96256a59e5
commit edbee4bae8
3 changed files with 98 additions and 16 deletions
+66
View File
@@ -245,6 +245,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "player", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "player", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "player", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "player", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "player", "custom", "0")
pfUI:UpdateConfig("unitframes", "player", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "player", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "player", "custombg", "0")
pfUI:UpdateConfig("unitframes", "player", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("unitframes", "target", "visible", "1")
pfUI:UpdateConfig("unitframes", "target", "showPVP", "0")
@@ -292,6 +298,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "target", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "target", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "target", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "target", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "target", "custom", "0")
pfUI:UpdateConfig("unitframes", "target", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "target", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "target", "custombg", "0")
pfUI:UpdateConfig("unitframes", "target", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("unitframes", "focus", "visible", "1")
pfUI:UpdateConfig("unitframes", "focus", "showPVP", "0")
@@ -338,6 +350,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "focus", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "focus", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "focus", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "focus", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "focus", "custom", "0")
pfUI:UpdateConfig("unitframes", "focus", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "focus", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "focus", "custombg", "0")
pfUI:UpdateConfig("unitframes", "focus", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("unitframes", "group", "visible", "1")
pfUI:UpdateConfig("unitframes", "group", "showPVP", "0")
@@ -385,6 +403,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "group", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "group", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "group", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "group", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "group", "custom", "0")
pfUI:UpdateConfig("unitframes", "group", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "group", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "group", "custombg", "0")
pfUI:UpdateConfig("unitframes", "group", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("unitframes", "grouptarget", "visible", "1")
pfUI:UpdateConfig("unitframes", "grouptarget", "showPVP", "0")
@@ -431,6 +455,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "grouptarget", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "grouptarget", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "grouptarget", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "grouptarget", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "grouptarget", "custom", "0")
pfUI:UpdateConfig("unitframes", "grouptarget", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "grouptarget", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "grouptarget", "custombg", "0")
pfUI:UpdateConfig("unitframes", "grouptarget", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("unitframes", "grouppet", "visible", "1")
pfUI:UpdateConfig("unitframes", "grouppet", "showPVP", "0")
@@ -477,6 +507,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "grouppet", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "grouppet", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "grouppet", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "grouppet", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "grouppet", "custom", "0")
pfUI:UpdateConfig("unitframes", "grouppet", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "grouppet", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "grouppet", "custombg", "0")
pfUI:UpdateConfig("unitframes", "grouppet", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("unitframes", "raid", "visible", "1")
pfUI:UpdateConfig("unitframes", "raid", "showPVP", "0")
@@ -523,6 +559,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "raid", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "raid", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "raid", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "raid", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "raid", "custom", "0")
pfUI:UpdateConfig("unitframes", "raid", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "raid", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "raid", "custombg", "0")
pfUI:UpdateConfig("unitframes", "raid", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("unitframes", "ttarget", "visible", "1")
pfUI:UpdateConfig("unitframes", "ttarget", "showPVP", "0")
@@ -569,6 +611,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "ttarget", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "ttarget", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "ttarget", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "ttarget", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "ttarget", "custom", "0")
pfUI:UpdateConfig("unitframes", "ttarget", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "ttarget", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "ttarget", "custombg", "0")
pfUI:UpdateConfig("unitframes", "ttarget", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("unitframes", "pet", "visible", "1")
pfUI:UpdateConfig("unitframes", "pet", "showPVP", "0")
@@ -615,6 +663,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "pet", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "pet", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "pet", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "pet", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "pet", "custom", "0")
pfUI:UpdateConfig("unitframes", "pet", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "pet", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "pet", "custombg", "0")
pfUI:UpdateConfig("unitframes", "pet", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("unitframes", "ptarget", "visible", "0")
pfUI:UpdateConfig("unitframes", "ptarget", "showPVP", "0")
@@ -661,6 +715,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "ptarget", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "ptarget", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "ptarget", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "ptarget", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "ptarget", "custom", "0")
pfUI:UpdateConfig("unitframes", "ptarget", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "ptarget", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "ptarget", "custombg", "0")
pfUI:UpdateConfig("unitframes", "ptarget", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("unitframes", "fallback", "visible", "1")
pfUI:UpdateConfig("unitframes", "fallback", "showPVP", "0")
@@ -707,6 +767,12 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "fallback", "hitindicator", "0")
pfUI:UpdateConfig("unitframes", "fallback", "hitindicatorsize", "15")
pfUI:UpdateConfig("unitframes", "fallback", "hitindicatorfont", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
pfUI:UpdateConfig("unitframes", "fallback", "defcolor", "1")
pfUI:UpdateConfig("unitframes", "fallback", "custom", "0")
pfUI:UpdateConfig("unitframes", "fallback", "customfullhp", "0")
pfUI:UpdateConfig("unitframes", "fallback", "customcolor", ".2,.2,.2,1")
pfUI:UpdateConfig("unitframes", "fallback", "custombg", "0")
pfUI:UpdateConfig("unitframes", "fallback", "custombgcolor", ".5,.2,.2,1")
pfUI:UpdateConfig("bars", "bar1", "pageable", "1")
pfUI:UpdateConfig("bars", "bar2", "pageable", "1")