Implement custom data save in settings and savegames (#484)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user