mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 05:30:00 +00:00
unitframes: add option to customize heal color
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user