mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
fix player color
This commit is contained in:
@@ -46,6 +46,8 @@ pfUI:RegisterModule("player", function ()
|
|||||||
|
|
||||||
local hp, hpmax = UnitHealth("player"), UnitHealthMax("player")
|
local hp, hpmax = UnitHealth("player"), UnitHealthMax("player")
|
||||||
local power, powermax = UnitMana("player"), UnitManaMax("player")
|
local power, powermax = UnitMana("player"), UnitManaMax("player")
|
||||||
|
_, 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 = (color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5
|
||||||
local perc = hp / hpmax
|
local perc = hp / hpmax
|
||||||
|
|||||||
Reference in New Issue
Block a user