Implement custom data save in settings and savegames (#484)

This commit is contained in:
Julian Murgia
2022-01-13 11:09:06 +01:00
committed by GitHub
parent a363b0c0c2
commit 2179b803e0
11 changed files with 61 additions and 8 deletions

View File

@@ -32,6 +32,8 @@ Implement methods to react to inputs.
- show_main_menu()
- hide_main_menu()
- apply_custom_settings()
- _on_event_done(event_name: String)
"""
@@ -211,6 +213,20 @@ func pause_game():
escoria.main.current_scene.hide()
func apply_custom_settings(custom_settings: Dictionary):
if custom_settings.has("a_custom_setting"):
escoria.logger.info(
"custom setting value loaded:",
[custom_settings["a_custom_setting"]]
)
func get_custom_data() -> Dictionary:
return {
"ui_type": "simplemouse"
}
# Update the tooltip
#
# #### Parameters