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
+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