Final changes

This commit is contained in:
KaseToatz1337
2024-11-11 11:28:17 +01:00
parent 4c01b5ae79
commit 83efd9de1f
5 changed files with 24 additions and 27 deletions

View File

@ -67,7 +67,7 @@ namespace Memory.Gui
Highscores.Children.Clear();
OwnScore.Content = $"Your score: {game!.Scoring.Points}";
List<Score> highscores = game.ScoreHandler.GetTopScores();
for (int i = 0; i < highscores.Count; i++)
for (int i = 0; i < Math.Min(Game.LEADERBOARDSIZE, highscores.Count); i++)
{
Score score = highscores[i];
Label label = new()