This commit is contained in:
2025-09-09 11:12:33 +02:00
parent cb4a68898b
commit c0863ef102
5 changed files with 14 additions and 10 deletions

View File

@@ -45,16 +45,17 @@ func _ready() -> void:
tableau_paires.sort_custom(func(a, b): return a[\"value\"] > b[\"value\"])
text += \" 1 Player\"
for i in range(clamp(5, 0, tableau_paires.size())):
text += \"\\n\" + str(i+1) + \"e \" + tableau_paires[i][\"key\"] + \" : \" + str(tableau_paires[i][\"value\"])
text += \"\\n\" + str(i+1) + \". \" + tableau_paires[i][\"key\"] + \" : \" + str(tableau_paires[i][\"value\"])
if tableau_paires.size() < 5:
for i in range(5 - tableau_paires.size()):
text += \"\\n\" + str(tableau_paires.size()+ i+1) + \"e \" + \"---- : ----\"
text += \"\\n\" + str(tableau_paires.size()+ i+1) + \". \" + \"---- : ----\"
"
[sub_resource type="GDScript" id="GDScript_u3kfb"]
script/source = "extends Label
func _ready() -> void:
var tableau_paires = []
for key in GameController.score.score_multiplayer:
tableau_paires.append({\"key\": key, \"value\": GameController.score.score_multiplayer[key]})
@@ -62,10 +63,10 @@ func _ready() -> void:
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\" + str(i+1) + \"e \" + tableau_paires[i][\"key\"] + \" : \" + str(tableau_paires[i][\"value\"])
text += \"\\n\" + str(i+1) + \". \" + tableau_paires[i][\"key\"] + \" : \" + str(tableau_paires[i][\"value\"])
if tableau_paires.size() < 5:
for i in range(5 - tableau_paires.size()):
text += \"\\n\" + str(tableau_paires.size()+ i+1) + \"e \" + \"---- : ----\"
text += \"\\n\" + str(tableau_paires.size()+ i+1) + \". \" + \"---- : ----\"
"
[node name="load_screen" type="Node2D"]

View File

@@ -87,7 +87,7 @@ offset_top = 2.0
offset_right = 638.0
offset_bottom = 424.0
theme = ExtResource("1_sa1is")
theme_override_font_sizes/font_size = 64
theme_override_font_sizes/font_size = 32
text = "Player Name 0/15:"
horizontal_alignment = 1
vertical_alignment = 1