unitframes: add option to customize heal color

This commit is contained in:
shagu
2021-01-07 17:32:40 +01:00
parent 16c3f0efe9
commit 6433e24013
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -443,6 +443,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", unit, "energycolor", "1,1,.5,1")
pfUI:UpdateConfig("unitframes", unit, "ragecolor", "1,.5,.5,1")
pfUI:UpdateConfig("unitframes", unit, "focuscolor", "1,1,.75,1")
pfUI:UpdateConfig("unitframes", unit, "healcolor", "0,1,0,0.6")
pfUI:UpdateConfig("unitframes", unit, "overhealperc", "20")
end
+3 -1
View File
@@ -559,7 +559,9 @@ function pfUI.uf:UpdateConfig()
f.incHeal:SetHeight(f.config.height)
f.incHeal:SetWidth(f.config.width)
f.incHeal.texture:SetTexture(pfUI.media["img:bar"])
f.incHeal.texture:SetVertexColor(0, 1, 0, 0.5)
local cr, cg, cb, ca = pfUI.api.strsplit(",", f.config.healcolor)
cr, cg, cb, ca = tonumber(cr), tonumber(cg), tonumber(cb), tonumber(ca)
f.incHeal.texture:SetVertexColor(cr, cg, cb, ca)
f.incHeal:Hide()
if f.config.verticalbar == "0" then
+1
View File
@@ -1670,6 +1670,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
end
CreateConfig(U[c], T["Show Raid Mark"], C.unitframes[c], "raidicon", "checkbox")
CreateConfig(U[c], T["Raid Mark Size"], C.unitframes[c], "raidiconsize")
CreateConfig(U[c], T["Heal Color"], C.unitframes[c], "healcolor", "color")
CreateConfig(U[c], T["Display Overheal"], C.unitframes[c], "overhealperc", "dropdown", pfUI.gui.dropdowns.uf_overheal)
if c == "raid" then