feat: This enables user-defined transition and uses a tween to animate the transitions (#405)

* feat: This enables user-defined transition and uses a tween to animate the transitions

fixes #344

* docs: Automatic update of API docs

* docs: Automatic update of API docs

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
This commit is contained in:
Dennis Ploeger
2021-09-28 11:30:40 +02:00
committed by GitHub
parent b710def99d
commit df78b52b8a
28 changed files with 323 additions and 301 deletions

View File

@@ -92,6 +92,29 @@ func set_escoria_ui_settings():
}
ProjectSettings.add_property_info(game_scene_property_info)
if !ProjectSettings.has_setting("escoria/ui/default_transition"):
ProjectSettings.set_setting(
"escoria/ui/default_transition",
"curtain"
)
ProjectSettings.add_property_info({
"name": "escoria/ui/default_transition",
"type": TYPE_STRING
})
if !ProjectSettings.has_setting("escoria/ui/transition_paths"):
ProjectSettings.set_setting(
"escoria/ui/transition_paths",
[
"res://addons/escoria-core/game/scenes/transitions/shaders/"
]
)
ProjectSettings.add_property_info({
"name": "escoria/ui/transition_paths",
"type": TYPE_STRING_ARRAY,
"hint": PROPERTY_HINT_DIR
})
# Prepare the settings in the Escoria main category
func set_escoria_main_settings():