WoWInterface - View Single Post - HOWTO: Change PerfectRaid's Visual Layout
View Single Post
12-12-09, 02:49 PM   #14
A Wyrmkin Dreamwalker
Jooze's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jul 2007
Posts: 52
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:

function DongleUtils.GetHPSeverity(perc, class)
	--[[if not class then return DongleUtils.ColorGradient(perc, 1,0,0, 1,1,0, 0,1,0)
		local c = RAID_CLASS_COLORS[class]
		return DongleUtils.ColorGradient(perc, 1,0,0, 1,1,0, c.r,c.g,c.b)
	return DongleUtils.ColorGradient(perc, 1, 1, 1, 1, 1, 1, 1, 1, 1)
The color now shifts from white (max hp) over yellow to red
  Reply With Quote