Modify WorkerPrompt to use signals over awaitable functions
This commit is contained in:
parent
eb20329586
commit
725ab3c55d
BIN
map_editor.scn (Stored with Git LFS)
BIN
map_editor.scn (Stored with Git LFS)
Binary file not shown.
|
@ -1,5 +1,10 @@
|
|||
class_name WorkerPrompt extends Control
|
||||
|
||||
##
|
||||
##
|
||||
##
|
||||
signal prompt_completed()
|
||||
|
||||
##
|
||||
##
|
||||
##
|
||||
|
@ -44,4 +49,6 @@ func prompt(display_message: String, steps: Array) -> void:
|
|||
await get_tree().process_frame
|
||||
|
||||
_worker_thread.wait_to_finish()
|
||||
prompt_completed.emit()
|
||||
hide()
|
||||
|
||||
|
|
Loading…
Reference in New Issue