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:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user