mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 11:43:01 +08:00
change positionText
to display "#?" if tracked score is being 51st on the leaderboard
This commit is contained in:
parent
d24e10e955
commit
d48c56818f
@ -174,6 +174,10 @@ namespace osu.Game.Screens.Play.HUD
|
||||
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();
|
||||
}
|
||||
|
||||
|
@ -72,10 +72,8 @@ namespace osu.Game.Screens.Play.HUD
|
||||
|
||||
scorePosition = value;
|
||||
|
||||
if (scorePosition.HasValue)
|
||||
positionText.Text = $"#{scorePosition.Value.FormatRank()}";
|
||||
positionText.Text = scorePosition.HasValue ? $"#{scorePosition.Value.FormatRank()}" : "#?";
|
||||
|
||||
positionText.FadeTo(scorePosition.HasValue ? 1 : 0);
|
||||
updateState();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user