This commit is contained in:
2025-09-08 14:49:21 +02:00
parent 1290cd19fb
commit 9ee0d4708b
10 changed files with 54 additions and 33 deletions

View File

@@ -11,11 +11,10 @@ func _on_item_list_item_selected(index: int) -> void:
func _on_item_list_item_activated(index: int) -> void:
var temp = $Control/ItemList.get_item_text(index)
print(temp)
var nbr = player_name.length()
if temp == "Back":
player_name[-1] = ""
elif temp == "Enter":
elif temp == "Enter" and player_name.length() > 0:
GameController.emit_signal("go_to_menu", player_name)
elif nbr < 10:
player_name += temp