GameTooltip:AddLine(format('XP: %d/%d (%.1f%%)', min, max, min / max * 100)) |
GameTooltip:AddLine(format('%d needed (%.1f%% - %.1f bars)', max - min, (max - min) / max * 100, bars * (max - min) / max)) |
|
local rested = GetXPExhaustion() |
if(unit == 'player' and rested and rested > 0) then |
GameTooltip:AddLine(format('|cff0090ffRested: +%d (%.1f%%)', rested, rested / max * 100)) |
if(unit == 'player' and GetXPExhaustion() and GetXPExhaustion() > 0) then |
GameTooltip:AddLine(format('|cff0090ffRested: +%d (%.1f%%)', GetXPExhaustion(), GetXPExhaustion() / max * 100)) |
end |
|
GameTooltip:Show() |