SaveLoadMenu ​
SaveLoadMenu manages the save/load interface for both main menu and in-game menu. Displays available save files, allows selecting and loading saves, and provides save functionality during gameplay.
Description ​
Key features:
- Display all available save files with metadata
- Load selected save via signal emission
- Create new saves during gameplay
- Delete save files (optional)
- Sort saves by date/name
Properties ​
PackedScene | save_file_button_scene |
Variables ​
SaveFileButton | current_selected_save_file | null |
Methods ​
void | add_save_files_to_list() |
void | close_panel() |
Signals ​
save_load_menu_exit_button_clicked() ​
Emitted when the exit button is clicked
load_game_button_pressed( save_file_name: String ) ​
Emitted when a save file is selected to load save_file_name: The name of the save file to load (without extension)
Property descriptions ​
PackedScene save_file_button_scene ​
The scene to instantiate for each save file button
Variable descriptions ​
SaveFileButton current_selected_save_file = null ​
Currently selected save file button
Method descriptions ​
void add_save_files_to_list() ​
Populate the save file list with all available saves
void close_panel() ​
Handle exit button press