``Hello,
i am from germany and absolutely new to godot. in addition, my english is bad. But i'll try to explain it the best i can.
I have got this simple Code:
extends Node2D
var a = "This should be printed after the user clicked OK button"
func _ready():
var dialog = ConfirmationDialog.new()
dialog.dialog_text = "Continue?"
dialog.window_title = "Program stopped"
dialog.connect('modal_closed', _dialog, 'queue_free')
dialog.popup_exclusive = true
add_child(_dialog)
dialog.popup_centered()
print(a)
I think this is an extremely simple problem but i cant find out how to stop the program till the user clicked the OK button in the dialog. Again sorry for my bad pronunciation.
Greetings
Jan