This commit is contained in:
2025-09-08 15:28:23 +02:00
parent 9ee0d4708b
commit 2781204d6d
2 changed files with 5 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ func _ready() -> void:
# Trier par ordre alphabétique
tableau_paires.sort_custom(func(a, b): return a[\"value\"] > b[\"value\"])
text += \"1 Player\"
text += \" 1 Player\"
for i in range(clamp(5, 0, tableau_paires.size())):
text += \"\\n\" + tableau_paires[i][\"key\"] + \" : \" + str(tableau_paires[i][\"value\"])
"
@@ -57,8 +57,8 @@ func _ready() -> void:
tableau_paires.append({\"key\": key, \"value\": GameController.score.score_multiplayer[key]})
# Trier par ordre alphabétique
tableau_paires.sort_custom(func(a, b): return a[\"value\"] < b[\"value\"])
text += \"2 Players\"
tableau_paires.sort_custom(func(a, b): return a[\"value\"] > b[\"value\"])
text += \" 2 Players\"
for i in range(clamp(5, 0, tableau_paires.size())):
text += \"\\n\" + tableau_paires[i][\"key\"] + \" : \" + str(tableau_paires[i][\"value\"])
"