mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:25:39 +08:00
Fix rank graph tooltip display
This commit is contained in:
parent
5d1ead3109
commit
d3937acfe9
@ -4,6 +4,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using Humanizer;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
@ -70,8 +71,8 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
|||||||
|
|
||||||
return new TooltipDisplayContent
|
return new TooltipDisplayContent
|
||||||
{
|
{
|
||||||
Rank = $"#{rank:#,##0}",
|
Rank = $"#{rank:N0}",
|
||||||
Time = days == 0 ? "now" : $"{days} days ago"
|
Time = days == 0 ? "now" : $"{"day".ToQuantity(days)} ago"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user