mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 13:30:07 +01:00
11 lines
238 B
GDScript
11 lines
238 B
GDScript
extends LineEdit
|
|
|
|
|
|
@export var submit_button: Button
|
|
|
|
|
|
func _ready() -> void:
|
|
text_submitted.connect(func(_s): clear(), ConnectFlags.CONNECT_DEFERRED)
|
|
if submit_button:
|
|
submit_button.pressed.connect(func(): text_submitted.emit(text))
|