fix: allows for transition to be disabled on init; still has issue w/ UI showing up for fraction of a second

This commit is contained in:
Duncan Brown authored and Julian Murgia committed 2022-04-30 20:06:13 +02:00
1 parent 4c39e47d38
commit 6afff99e7c
5 files changed
+15 -10

No files matched your search

@@ -84,8 +84,6 @@ func do(action: int, params: Array = [], can_interrupt: bool = false) -> void:
if can_interrupt:
escoria.event_manager.interrupt_running_event()
self.clear_current_action()
var walk_fast = false
if params.size() > 2:
walk_fast = true if params[2] else false
@@ -282,8 +282,8 @@ func _on_event_finished(finished_statement: ESCStatement, return_code: int, chan
escoria.save_manager.save_enabled = true
if return_code == ESCExecution.RC_CANCEL:
return_code = ESCExecution.RC_OK
return_code = ESCExecution.RC_OK
_running_events[channel_name] = null
_channels_state[channel_name] = true
@@ -113,6 +113,7 @@ func change_scene(room_path: String, enable_automatic_transitions: bool) -> void
var game_parent = escoria.game_scene.get_parent()
game_parent.remove_child(escoria.game_scene)
#escoria.game_scene.hide_ui()
room_scene.add_child(escoria.game_scene)
room_scene.move_child(escoria.game_scene, 0)
room_scene.game = escoria.game_scene