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:
parent
d24e10e955
commit
d48c56818f
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user