Scene for the main menu.
More...
#include <main_menu_scene.h>
|
| | MainMenuScene (GUIView *guiView_ptr) |
| | Constructs a new MainMenuScene.
|
| |
| | ~MainMenuScene () override=default |
| | Destroys the MainMenuScene.
|
| |
| void | onEnter () override |
| | Populated when the scene is entered. Caches the save slot metadata.
|
| |
| void | update (float deltaTime) override |
| | Updates scene logic.
|
| |
| void | render () override |
| | Renders the scene.
|
| |
| SceneID | getID () const override |
| | Gets the ID of this scene.
|
| |
| | GUIScene (GUIView *guiView_ptr) |
| | Constructs a new GUIScene.
|
| |
| virtual | ~GUIScene ()=default |
| | Destroys the GUIScene.
|
| |
| virtual void | handleEvent (const SDL_Event &event) |
| | Handles SDL events for the scene.
|
| |
| virtual void | onExit () |
| | Called when the scene is exited/becomes inactive.
|
| |
| virtual void | onResume () |
| | Called when an overlay above this scene closes and it becomes the active scene again. Screens use it to refresh cached view models after a match, a transfer or any other state change made elsewhere.
|
| |
| virtual void | onResize (int width, int height) |
| | Called when the window is resized.
|
| |
| virtual std::optional< NavEntry > | historyEntry () const |
| | How to open this screen again from the navigation history, or nothing for scenes outside it (menus, team selection, the live match).
|
| |
◆ MainMenuScene()
| MainMenuScene::MainMenuScene |
( |
GUIView * |
guiView_ptr | ) |
|
|
explicit |
◆ ~MainMenuScene()
| MainMenuScene::~MainMenuScene |
( |
| ) |
|
|
overridedefault |
◆ getID()
| SceneID MainMenuScene::getID |
( |
| ) |
const |
|
overridevirtual |
Gets the ID of this scene.
- Returns
- The SceneID (MAIN_MENU).
Implements GUIScene.
◆ loadCachedMetadata()
| void MainMenuScene::loadCachedMetadata |
( |
| ) |
|
|
private |
◆ onEnter()
| void MainMenuScene::onEnter |
( |
| ) |
|
|
overridevirtual |
Populated when the scene is entered. Caches the save slot metadata.
Reimplemented from GUIScene.
◆ openBackups()
| void MainMenuScene::openBackups |
( |
int |
slot | ) |
|
|
private |
◆ render()
| void MainMenuScene::render |
( |
| ) |
|
|
overridevirtual |
◆ renderBackdrop()
| void MainMenuScene::renderBackdrop |
( |
| ) |
const |
|
private |
◆ renderBackups()
| void MainMenuScene::renderBackups |
( |
| ) |
|
|
private |
◆ renderCrashNotice()
| void MainMenuScene::renderCrashNotice |
( |
| ) |
|
|
private |
◆ renderLanguageNotice()
| void MainMenuScene::renderLanguageNotice |
( |
| ) |
const |
|
private |
◆ renderLoadError()
| void MainMenuScene::renderLoadError |
( |
| ) |
|
|
private |
◆ renderSlotActions()
◆ renderSlotPicker()
| void MainMenuScene::renderSlotPicker |
( |
| ) |
|
|
private |
◆ renderVersion()
| void MainMenuScene::renderVersion |
( |
| ) |
const |
|
private |
◆ showLoadError()
| void MainMenuScene::showLoadError |
( |
int |
slot, |
|
|
std::string |
text |
|
) |
| |
|
private |
Opens the load error dialog for slot with its recovery offer.
◆ startSlot()
| void MainMenuScene::startSlot |
( |
int |
slot, |
|
|
bool |
newGame |
|
) |
| |
|
private |
◆ update()
| void MainMenuScene::update |
( |
float |
deltaTime | ) |
|
|
overridevirtual |
Updates scene logic.
- Parameters
-
| deltaTime | Time elapsed since last update. |
Implements GUIScene.
◆ GameFlowTest_GUIFlowLifecycle_Test
| friend class GameFlowTest_GUIFlowLifecycle_Test |
|
friend |
◆ backup_labels
| std::vector<std::string> MainMenuScene::backup_labels |
|
private |
◆ backups
Read when the dialog opens.
◆ backups_requested
| bool MainMenuScene::backups_requested = false |
|
private |
◆ backups_slot
| int MainMenuScene::backups_slot = 0 |
|
private |
Slot whose backups dialog is open.
◆ cached_metadata
◆ crash_notice
◆ crash_notice_requested
| bool MainMenuScene::crash_notice_requested = false |
|
private |
◆ crash_notice_text
| std::string MainMenuScene::crash_notice_text |
|
private |
◆ delete_slot
| int MainMenuScene::delete_slot = 0 |
|
private |
Slot awaiting delete confirmation.
◆ delete_text
| std::string MainMenuScene::delete_text |
|
private |
◆ is_loading_rendered
| bool MainMenuScene::is_loading_rendered = false |
|
private |
◆ is_new_game
| bool MainMenuScene::is_new_game = false |
|
private |
◆ language_notice
| std::string MainMenuScene::language_notice |
|
private |
Why some or all texts are English, empty when nothing fell back.
◆ latest_career_slot
| int MainMenuScene::latest_career_slot = 0 |
|
private |
Most recently saved career, 0 = none.
◆ load_error_requested
| bool MainMenuScene::load_error_requested = false |
|
private |
◆ load_error_slot
| int MainMenuScene::load_error_slot = 0 |
|
private |
Slot whose load just failed.
◆ load_error_text
| std::string MainMenuScene::load_error_text |
|
private |
◆ loading_operation
| std::future<bool> MainMenuScene::loading_operation |
|
private |
◆ loading_operation_started
| bool MainMenuScene::loading_operation_started = false |
|
private |
◆ loading_slot
| int MainMenuScene::loading_slot = 0 |
|
private |
◆ loading_worker
| std::jthread MainMenuScene::loading_worker |
|
private |
◆ overwrite_slot
| int MainMenuScene::overwrite_slot = 0 |
|
private |
Occupied slot awaiting confirmation.
◆ pending_restore
| std::filesystem::path MainMenuScene::pending_restore |
|
private |
◆ recovery_backup
| std::filesystem::path MainMenuScene::recovery_backup |
|
private |
Newest usable backup, offered.
◆ recovery_text
| std::string MainMenuScene::recovery_text |
|
private |
◆ restore_candidate
| std::filesystem::path MainMenuScene::restore_candidate |
|
private |
◆ slot_picker_requested
| bool MainMenuScene::slot_picker_requested = false |
|
private |
The documentation for this class was generated from the following files: