Compare commits

..

No commits in common. "98e8d22b30001c9ea7e1b6380094b3bdd23c6518" and "e6b115a9e2e2a50b65c17deb6db0cf21ee9616b8" have entirely different histories.

8 changed files with 22 additions and 19 deletions

Binary file not shown.

BIN
interior/tiles/dungeon_01_tiling_tile.res (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
map_editor.scn (Stored with Git LFS)

Binary file not shown.

BIN
map_editor/edit_action_button_group.res (Stored with Git LFS)

Binary file not shown.

View File

@ -12,6 +12,12 @@ signal prompted()
var _worker_thread := Thread.new()
##
## Used to display a message from the prompt or [code]null[/code] to not display anything.
##
@export
var label: Label = null
##
## Used to display the progress of the prompt or [code]null[/code] to not display anything.
##
@ -23,16 +29,13 @@ var progress: Range = null
##
## [signal prompt_completed] is emitted when the work being performed by the prompt has ended.
##
## Either this function or [signal prompt_completed] can be awaited upon to handle asynchronous
## scheduling of tasks to execute after completion.
##
func prompt(steps: Array) -> void:
func prompt(display_message: String, steps: Array) -> void:
LocalPlayer.override_controls(hidden)
show()
prompted.emit()
while _worker_thread.is_alive():
await get_tree().process_frame
if label != null:
label.text = display_message
_worker_thread.start(func () -> void:
var count := steps.size()