Implemented spawn points correctly. Added saving & loading (currently only implemented with the spawn_index). You can now set spawn indicies in the DynamicAreaLoader to automatically load when the game is set to that value (on ready). Added configuration warnings to DynamicAreaLoader & PlayerSpawnPoint Added some generic translation (pot) files. Added AudioManager autoload to play, stop, fade audio streams (and set the bus directly). Added SceneFader autoload. Added SaveManager autoload. Added OptionsMenu with currently only volume sliders and a fullscreen toggle button. Added PauseMenu
11 lines
210 B
GDScript
11 lines
210 B
GDScript
class_name MenuButtonOpener
|
|
extends Button
|
|
|
|
@export var open_menu: MenuBase
|
|
@export var previous_menu: MenuBase
|
|
|
|
|
|
func _pressed() -> void:
|
|
if is_instance_valid(open_menu):
|
|
open_menu.open_menu(previous_menu)
|