1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-21 20:33:01 +08:00

fix beatmap status display

This commit is contained in:
mcendu 2020-03-04 14:28:18 +08:00
parent 740eb9ff53
commit 416b9e4e6f

View File

@ -59,7 +59,25 @@ namespace osu.Game.Overlays.BeatmapSet
if (online.Ranked.HasValue)
{
fields.Add(new Field("ranked", online.Ranked.Value, OsuFont.GetFont(weight: FontWeight.Bold)));
string verb = "ranked";
switch (online.Status)
{
case BeatmapSetOnlineStatus.Ranked:
verb = "ranked";
break;
case BeatmapSetOnlineStatus.Approved:
verb = "approved";
break;
case BeatmapSetOnlineStatus.Qualified:
verb = "qualified";
break;
case BeatmapSetOnlineStatus.Loved:
verb = "loved";
break;
}
fields.Add(new Field(verb, online.Ranked.Value, OsuFont.GetFont(weight: FontWeight.Bold)));
}
else if (online.LastUpdated.HasValue)
{