unitframes: add custom healthbar colors

This commit is contained in:
shagu
2016-12-27 14:21:36 +01:00
parent d858d308bb
commit 40789119bd
7 changed files with 32 additions and 26 deletions
+3 -2
View File
@@ -177,8 +177,9 @@ pfUI:RegisterModule("player", function ()
local color = RAID_CLASS_COLORS[class]
local cr, cg, cb
if pfUI_config.unitframes.dark == "1" then
cr, cg, cb = .2,.2,.2
if pfUI_config.unitframes.custom == "1" then
local r, g, b, a = pfUI.api.strsplit(",", pfUI_config.unitframes.customcolor)
cr, cg, cb = tonumber(r), tonumber(g), tonumber(b)
elseif pfUI_config.unitframes.pastel == "1" then
cr, cg, cb = (color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5
else