oh-my-git/scripts/input_dialog.gd
2020-11-10 22:44:52 +01:00

11 lines
209 B
GDScript

extends WindowDialog
signal entered(text)
func _text_entered(text):
emit_signal("entered", text)
queue_free()
func _notification(what):
if what == Popup.NOTIFICATION_POST_POPUP:
$LineEdit.grab_focus()