mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
uf: add option for dark and non-pastel colors
This commit is contained in:
+9
-1
@@ -124,7 +124,15 @@ pfUI:RegisterModule("player", function ()
|
||||
_, class = UnitClass("player")
|
||||
local color = RAID_CLASS_COLORS[class]
|
||||
|
||||
local cr, cg, cb = (color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5
|
||||
local cr, cg, cb
|
||||
if pfUI_config.unitframes.dark == "1" then
|
||||
cr, cg, cb = .2,.2,.2
|
||||
elseif pfUI_config.unitframes.pastel == "1" then
|
||||
cr, cg, cb = (color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5
|
||||
else
|
||||
cr, cg, cb = color.r, color.g, color.b
|
||||
end
|
||||
|
||||
local perc = hp / hpmax
|
||||
|
||||
pfUI.uf.player.hp.bar:SetMinMaxValues(0, hpmax)
|
||||
|
||||
Reference in New Issue
Block a user