Outline()
local s = Status(unit)
if s then
return s
end
local cur, max = HP(unit), MaxHP(unit)
local r,g,b=ClassColor(unit)
local function dec_hex(num)
local function getkey(n)
return n==10 and "a" or n==11 and "b" or n==12 and "c" or n==13 and "d" or n==14 and "e" or n==15 and "f" or tostring(n)
end
local out=""
local plcs = math.ceil(math.log(num+1)/math.log(16))
for p=plcs,1,-1 do
local a=math.floor(num/math.pow(16, p-1))
num=num-(a*math.pow(16,p-1))
out=out..getkey(a)
end
return out
end
r,g,b=dec_hex(r),dec_hex(g),dec_hex(b)
return "|cff"..r..g..b.."%s/%s || %s%%|r",Short(cur,true),Short(max,true),Percent(cu r,max)