Just thought I'd share this here, it took ages for me to get this part
I wanted to change the colors of the bars (when it's not class colored), to white, shifting to red when the HP decreases.
I did this by changing the Dongle.Utils.GerSeverity(perc,class) function in
PerfectRaid_Utils.lua (around line 64).
It now looks like this:
Code:
function DongleUtils.GetHPSeverity(perc, class)
--[[if not class then return DongleUtils.ColorGradient(perc, 1,0,0, 1,1,0, 0,1,0)
else
local c = RAID_CLASS_COLORS[class]
return DongleUtils.ColorGradient(perc, 1,0,0, 1,1,0, c.r,c.g,c.b)
end
--]]
return DongleUtils.ColorGradient(perc, 1, 1, 1, 1, 1, 1, 1, 1, 1)
end
The color now shifts from white (max hp) over yellow to red