mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 18:07:25 +08:00
Use ToString().ToLowerInvariant()
* https://github.com/ppy/osu/pull/8128#issuecomment-594360083
This commit is contained in:
parent
fbd0dfd71b
commit
eaa77bce14
@ -59,28 +59,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
|
|
||||||
if (online.Ranked.HasValue)
|
if (online.Ranked.HasValue)
|
||||||
{
|
{
|
||||||
string verb = "ranked";
|
fields.Add(new Field(online.Status.ToString().ToLowerInvariant(), online.Ranked.Value, OsuFont.GetFont(weight: FontWeight.Bold)));
|
||||||
|
|
||||||
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)
|
else if (online.LastUpdated.HasValue)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user