Modify WorkerPrompt to use signals over awaitable functions

This commit is contained in:
kayomn 2023-01-25 23:55:18 +00:00
parent eb20329586
commit 725ab3c55d
2 changed files with 9 additions and 2 deletions

BIN
map_editor.scn (Stored with Git LFS)

Binary file not shown.

View File

@ -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()