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

15 lines
310 B
GDScript3
Raw Normal View History

2024-02-19 04:20:40 +00:00
extends PanelContainer
class_name PlayerNameInput
signal name_confirmed(selected_name: String)
@onready var line_edit: LineEdit = $"Layout/LineEdit"
func _on_button_pressed():
2024-02-28 05:30:45 +00:00
name_confirmed.emit(line_edit.text)
2024-02-19 04:20:40 +00:00
2024-03-07 04:06:37 +00:00
func _on_line_edit_text_submitted(_new_text: String):
2024-02-28 05:30:45 +00:00
name_confirmed.emit(line_edit.text)