1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 12:32:58 +08:00

change positionText to display "#?" if tracked score is being 51st on the leaderboard

This commit is contained in:
Piggey 2022-11-08 20:02:21 +01:00
parent d24e10e955
commit d48c56818f
2 changed files with 5 additions and 3 deletions

View File

@ -174,6 +174,10 @@ namespace osu.Game.Screens.Play.HUD
orderedByScore[i].ScorePosition = i + 1; orderedByScore[i].ScorePosition = i + 1;
} }
// change displayed potision to '#?' when there are 50 already submitted scores and tracked score is last
if (TrackedScore?.ScorePosition == Flow.Count && Flow.Count == 51)
TrackedScore.ScorePosition = null;
sorting.Validate(); sorting.Validate();
} }

View File

@ -72,10 +72,8 @@ namespace osu.Game.Screens.Play.HUD
scorePosition = value; scorePosition = value;
if (scorePosition.HasValue) positionText.Text = scorePosition.HasValue ? $"#{scorePosition.Value.FormatRank()}" : "#?";
positionText.Text = $"#{scorePosition.Value.FormatRank()}";
positionText.FadeTo(scorePosition.HasValue ? 1 : 0);
updateState(); updateState();
} }
} }