mirror of
https://github.com/Steffo99/nanogolf.git
synced 2024-11-22 08:04:21 +00:00
14 lines
310 B
GDScript
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)
|