12-04-08, 11:35 AM
|
#285
|
A Cobalt Mageweaver
Join Date: Sep 2008
Posts: 210
|
Originally Posted by p3lim
wups, forgot how UnitSelectionColor returned
Code:
local color
if(UnitIsPlayer(unit)) then
local localized, english = UnitClass(unit)
color = self.colors.class[english]
else
color = {UnitSelectionColor(unit)}
end
self.Health.bg:SetVertexColor(unpack(color))
if(self.Portraitglosst) then
self.Portraitglosst:SetVertexColor(unpack(color))
end
|
Beautiful, thanks.
|
|
|