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
309 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)