1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-21 23:54:21 +00:00
algodist-steffo-nanogolf/scenes/player_name_input.gd

14 lines
310 B
GDScript

extends PanelContainer
class_name PlayerNameInput
signal name_confirmed(selected_name: String)
@onready var line_edit: LineEdit = $"Layout/LineEdit"
func _on_button_pressed():
name_confirmed.emit(line_edit.text)
func _on_line_edit_text_submitted(_new_text: String):
name_confirmed.emit(line_edit.text)