ESC compiler rewrite

Splits the former ESC_Runner and ESC_Level_Runner into multiple dedicated managers. 
Authored-by: Dennis Ploeger <develop@dieploegers.de>
This commit is contained in:
Dennis Ploeger
2021-06-04 16:12:42 +02:00
committed by GitHub
parent f069ab2ffd
commit 746a724f5a
115 changed files with 4740 additions and 2584 deletions

View File

@@ -32,7 +32,7 @@ func iterate_actions_cursor(direction : int):
current_cursor_id = cursors.size() - 1
Input.set_custom_mouse_cursor(cursors[current_cursor_id].texture)
escoria.esc_runner.set_current_action(cursors[current_cursor_id].name)
escoria.action_manager.set_current_action(cursors[current_cursor_id].name)
if $mouse_position/tool.texture != null:
clear_tool_texture()
@@ -43,7 +43,7 @@ func set_by_name(name : String) -> void:
break
Input.set_custom_mouse_cursor(cursors[current_cursor_id].texture)
escoria.esc_runner.set_current_action(cursors[current_cursor_id].name)
escoria.action_manager.set_current_action(cursors[current_cursor_id].name)
func set_tool_texture(texture : Texture):
set_process(true)