PDA

View Full Version : class colored ToT's hp-bar?



torack
10-15-2006, 09:29 AM
how do i change my tot's and my totot's health bars to be colored according to their classes? im pretty much of a nub and i dont know how to implement such :)
help would be appreciated :D

could only find posts about changing tot's and totot's name-color.

Telal
10-15-2006, 09:37 AM
if you do this it will also change your unit frames, target frame, party and pet frame HP bars to match by class color.

this would go in your layout.lua file:


function Nurfed_HealthPercColor(perc)
local _, eclass = UnitClass(this.unit);
local color = RAID_CLASS_COLORS[eclass];
if (not color) then
color = { r = 0, g = 1, b = 0 };
end
return color;
end

a67rhf7823jn8747==