1
0
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:
Bartłomiej Dach 2020-03-05 20:11:14 +01:00
parent 5d1ead3109
commit d3937acfe9

View File

@ -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"
}; };
} }