oh-my-git/scripts/input_dialog.gd

12 lines
209 B
GDScript3
Raw Normal View History

2020-11-10 22:20:40 +01:00
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()