Final changes
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user