/
local class = select(2, UnitClass(unit)) |
local color = RAID_CLASS_COLORS[class] |
return ('|cff%02X%02X%02X%s|r'):format(color.r*255, color.g*255, color.b*255, shortclassnames[class]) |
return color and ('|cff%02X%02X%02X%s|r'):format(color.r*255, color.g*255, color.b*255, shortclassnames[class]) or '' |
end |
function formatTextHappiness (unit) |
function formatTextLevel (unit) |
local color = GetDifficultyColor(UnitLevel(unit)) |
return ('|cff%02X%02X%02X%s|r'):format(color.r*255, color.g*255, color.b*255, UnitLevel(unit)) |
return color and ('|cff%02X%02X%02X%s|r'):format(color.r*255, color.g*255, color.b*255, UnitLevel(unit)) or '' |
end |
function formatTextName (unit) |