Move Escoria settings load action out of init (#414)

InputMap actions added/removed at plugin enabled/disabled
Some changes to README
Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
Julian Murgia
2021-10-14 21:56:02 +02:00
committed by GitHub
parent 00de7fcc4d
commit c859cffa33
6 changed files with 36 additions and 11 deletions

View File

@@ -12,6 +12,10 @@ const autoloads = {
func _enter_tree():
for key in autoloads.keys():
add_autoload_singleton(key, autoloads[key])
# Add input actions in InputMap
InputMap.add_action("switch_action_verb")
InputMap.add_action("esc_show_debug_prompt")
# Prepare settings
set_escoria_main_settings()
@@ -291,4 +295,7 @@ func _exit_tree():
if ProjectSettings.has_setting(key):
remove_autoload_singleton(key)
InputMap.erase_action("switch_action_verb")
InputMap.erase_action("esc_show_debug_prompt")