Thank you!
Sadly it is the same outcoming
Name |CFF00FF00100
Originally Posted by Fizzlemizz
Someone here probably has a better solution.
|
Hopefully
or maybe its just a typo? But I don't see it...
Nevermind:
My girlfriend fixed it
Lua Code:
local s = Status(unit)
if s then
return s
end
local r,g,b = ClassColor(unit)
local string1 = string.format('|cff%02x%02x%02x%s|r %s%s%s| ', r,g,b,Name(unit),Angle(AFK(unit) or DND(unit)))
local cur,max = HP(unit),MaxHP(unit);
local hr,hg,hb=HPColor(cur,max);
local string2 = string.format('|cff%02x%02x%02x%.0f|r' or "", hr,hg,hb,100*cur/max)
return string1 .. string2