refactor: Whitespace removal from all .gd files (#494)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
This commit is contained in:
@@ -6,25 +6,25 @@ extends EditorPlugin
|
||||
# Setup Escoria
|
||||
func _enter_tree():
|
||||
add_autoload_singleton(
|
||||
"escoria",
|
||||
"escoria",
|
||||
"res://addons/escoria-core/game/escoria.tscn"
|
||||
)
|
||||
|
||||
|
||||
# Add input actions in InputMap
|
||||
InputMap.add_action(escoria.inputs_manager.SWITCH_ACTION_VERB)
|
||||
InputMap.add_action(escoria.inputs_manager.ESC_SHOW_DEBUG_PROMPT)
|
||||
|
||||
|
||||
# Define standard settings
|
||||
ProjectSettings.set_setting(
|
||||
"application/run/main_scene",
|
||||
"application/run/main_scene",
|
||||
"res://addons/escoria-core/game/main_scene.tscn"
|
||||
)
|
||||
|
||||
|
||||
ProjectSettings.set_setting(
|
||||
"audio/default_bus_layout",
|
||||
"audio/default_bus_layout",
|
||||
"res://addons/escoria-core/default_bus_layout.tres"
|
||||
)
|
||||
|
||||
|
||||
|
||||
func _ready():
|
||||
# Prepare settings
|
||||
@@ -45,7 +45,7 @@ func set_escoria_ui_settings():
|
||||
"type": TYPE_STRING
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.GAME_SCENE,
|
||||
"",
|
||||
@@ -56,7 +56,7 @@ func set_escoria_ui_settings():
|
||||
"hint_string": "*.tscn, *.scn"
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.ITEMS_AUTOREGISTER_PATH,
|
||||
"res://game/items/escitems/",
|
||||
@@ -66,7 +66,7 @@ func set_escoria_ui_settings():
|
||||
"hint": PROPERTY_HINT_DIR
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.DEFAULT_TRANISITION,
|
||||
"curtain",
|
||||
@@ -75,7 +75,7 @@ func set_escoria_ui_settings():
|
||||
"type": TYPE_STRING
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.TRANSITION_PATHS,
|
||||
[
|
||||
@@ -87,7 +87,7 @@ func set_escoria_ui_settings():
|
||||
"hint": PROPERTY_HINT_DIR
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.INVENTORY_ITEM_SIZE,
|
||||
Vector2(72, 72),
|
||||
@@ -96,7 +96,7 @@ func set_escoria_ui_settings():
|
||||
"type": TYPE_VECTOR2
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.DIALOG_MANAGERS,
|
||||
[],
|
||||
@@ -115,7 +115,7 @@ func set_escoria_main_settings():
|
||||
"type": TYPE_STRING
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.GAME_START_SCRIPT,
|
||||
"",
|
||||
@@ -125,7 +125,7 @@ func set_escoria_main_settings():
|
||||
"hint_string": "*.esc"
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.FORCE_QUIT,
|
||||
true,
|
||||
@@ -133,7 +133,7 @@ func set_escoria_main_settings():
|
||||
"type": TYPE_BOOL
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.COMMAND_DIRECTORIES,
|
||||
[
|
||||
@@ -143,7 +143,7 @@ func set_escoria_main_settings():
|
||||
"type": TYPE_ARRAY,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.TEXT_LANG,
|
||||
TranslationServer.get_locale(),
|
||||
@@ -152,7 +152,7 @@ func set_escoria_main_settings():
|
||||
"hint": PROPERTY_HINT_NONE
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.VOICE_LANG,
|
||||
TranslationServer.get_locale(),
|
||||
@@ -161,7 +161,7 @@ func set_escoria_main_settings():
|
||||
"hint": PROPERTY_HINT_NONE
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.SAVEGAMES_PATH,
|
||||
"user://saves/",
|
||||
@@ -170,7 +170,7 @@ func set_escoria_main_settings():
|
||||
"hint": PROPERTY_HINT_DIR
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.SETTINGS_PATH,
|
||||
"user://",
|
||||
@@ -179,7 +179,7 @@ func set_escoria_main_settings():
|
||||
"hint": PROPERTY_HINT_DIR
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.GAME_MIGRATION_PATH,
|
||||
"",
|
||||
@@ -199,7 +199,7 @@ func set_escoria_debug_settings():
|
||||
"type": TYPE_BOOL
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.TERMINATE_ON_ERRORS,
|
||||
true,
|
||||
@@ -207,7 +207,7 @@ func set_escoria_debug_settings():
|
||||
"type": TYPE_BOOL
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.DEVELOPMENT_LANG,
|
||||
"en",
|
||||
@@ -215,7 +215,7 @@ func set_escoria_debug_settings():
|
||||
"type": TYPE_STRING
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.LOG_LEVEL,
|
||||
"ERROR",
|
||||
@@ -225,7 +225,7 @@ func set_escoria_debug_settings():
|
||||
"hint_string": "ERROR,WARNING,INFO,DEBUG"
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.LOG_FILE_PATH,
|
||||
"user://",
|
||||
@@ -234,7 +234,7 @@ func set_escoria_debug_settings():
|
||||
"hint": PROPERTY_HINT_DIR
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.LOG_FILE_PATH,
|
||||
"We're sorry, but the game crashed. Please send us the " +
|
||||
@@ -244,7 +244,7 @@ func set_escoria_debug_settings():
|
||||
"hint": PROPERTY_HINT_MULTILINE_TEXT
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.ENABLE_ROOM_SELECTOR,
|
||||
false,
|
||||
@@ -252,7 +252,7 @@ func set_escoria_debug_settings():
|
||||
"type": TYPE_BOOL
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.ROOM_SELECTOR_ROOM_DIR,
|
||||
"",
|
||||
@@ -266,7 +266,7 @@ func set_escoria_debug_settings():
|
||||
# Prepare the settings in the Escoria sound settings
|
||||
func set_escoria_sound_settings():
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.MASTER_VOLUME,
|
||||
escoria.project_settings_manager.MASTER_VOLUME,
|
||||
1,
|
||||
{
|
||||
"type": TYPE_REAL,
|
||||
@@ -274,9 +274,9 @@ func set_escoria_sound_settings():
|
||||
"hint_string": "0,1"
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.MUSIC_VOLUME,
|
||||
escoria.project_settings_manager.MUSIC_VOLUME,
|
||||
1,
|
||||
{
|
||||
"type": TYPE_REAL,
|
||||
@@ -284,9 +284,9 @@ func set_escoria_sound_settings():
|
||||
"hint_string": "0,1"
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.SFX_VOLUME,
|
||||
escoria.project_settings_manager.SFX_VOLUME,
|
||||
1,
|
||||
{
|
||||
"type": TYPE_REAL,
|
||||
@@ -294,9 +294,9 @@ func set_escoria_sound_settings():
|
||||
"hint_string": "0,1"
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.SPEECH_VOLUME,
|
||||
escoria.project_settings_manager.SPEECH_VOLUME,
|
||||
1,
|
||||
{
|
||||
"type": TYPE_REAL,
|
||||
@@ -304,9 +304,9 @@ func set_escoria_sound_settings():
|
||||
"hint_string": "0,1"
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.SPEECH_ENABLED,
|
||||
escoria.project_settings_manager.SPEECH_ENABLED,
|
||||
1,
|
||||
{
|
||||
"type": TYPE_BOOL
|
||||
@@ -314,17 +314,17 @@ func set_escoria_sound_settings():
|
||||
)
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.SPEECH_FOLDER,
|
||||
escoria.project_settings_manager.SPEECH_FOLDER,
|
||||
"res://speech",
|
||||
{
|
||||
"type": TYPE_STRING,
|
||||
"hint": PROPERTY_HINT_DIR
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.SPEECH_EXTENSION,
|
||||
"ogg",
|
||||
escoria.project_settings_manager.SPEECH_EXTENSION,
|
||||
"ogg",
|
||||
{
|
||||
"type": TYPE_STRING
|
||||
}
|
||||
@@ -345,7 +345,7 @@ func set_escoria_platform_settings():
|
||||
"type": TYPE_BOOL
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
escoria.project_settings_manager.register_setting(
|
||||
escoria.project_settings_manager.SKIP_CACHE_MOBILE,
|
||||
true,
|
||||
@@ -358,7 +358,7 @@ func set_escoria_platform_settings():
|
||||
# Uninstall plugin
|
||||
func _exit_tree():
|
||||
remove_autoload_singleton("escoria")
|
||||
|
||||
|
||||
InputMap.erase_action(escoria.inputs_manager.SWITCH_ACTION_VERB)
|
||||
InputMap.erase_action(escoria.inputs_manager.ESC_SHOW_DEBUG_PROMPT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user