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