The class for the the main menu ui.
More...
#include <mainmenu_scene.h>
|
| void | setStaticDrawn (bool staticDrawn) override |
| | Sets the static drawn state of the scene. More...
|
| |
| | MainMenuScene (ConsoleUI::UIManager &uiManager, std::function< void()> openSettingsScene, std::function< void()> openHowToScene, std::function< void()> openBrowseDecks, std::function< void()> openEditDecks) |
| | Construct a new Main Menu Scene object. More...
|
| |
| void | createMainMenu (std::function< void()> openSettingsScene, std::function< void()> openHowToScene, std::function< void()> openBrowseDecks, std::function< void()> openEditDecks) |
| | Create a Main Menu object. More...
|
| |
|
void | init () override |
| | Initialise the scene.
|
| |
|
void | update () override |
| | Actions to perform on events.
|
| |
| void | render (std::shared_ptr< ConsoleUI::ConsoleWindow > window) override |
| | The scene objects to render. More...
|
| |
|
void | handleInput () override |
| | Input handler for the scene.
|
| |
|
virtual | ~Scene ()=default |
| | Destroy the Scene object.
|
| |
The class for the the main menu ui.
◆ MainMenuScene()
| MainMenuScene::MainMenuScene |
( |
ConsoleUI::UIManager & |
uiManager, |
|
|
std::function< void()> |
openSettingsScene, |
|
|
std::function< void()> |
openHowToScene, |
|
|
std::function< void()> |
openBrowseDecks, |
|
|
std::function< void()> |
openEditDecks |
|
) |
| |
Construct a new Main Menu Scene object.
- Parameters
-
| uiManager | The UI manager for the scene |
| openSettingsScene | function that will link to the setting scene |
| openHowToScene | function that will link the "how-to" scene |
| openBrowseDecks | function that will link to the browse decks scene |
| openEditDecks | functions that will link to the edit decks scene |
◆ createMainMenu()
| void MainMenuScene::createMainMenu |
( |
std::function< void()> |
openSettingsScene, |
|
|
std::function< void()> |
openHowToScene, |
|
|
std::function< void()> |
openBrowseDecks, |
|
|
std::function< void()> |
openEditDecks |
|
) |
| |
Create a Main Menu object.
- Parameters
-
| openSettingsScene | function that will link to the setting scene |
| openHowToScene | function that will link the "how-to" scene |
| openBrowseDecks | function that will link to the browse decks scene |
| openEditDecks | functions that will link to the edit decks scene |
◆ render()
The scene objects to render.
- Parameters
-
| window | the window UI to render in |
Implements ConsoleUI::Scene.
◆ setStaticDrawn()
| void MainMenuScene::setStaticDrawn |
( |
bool |
staticDrawn | ) |
|
|
overridevirtual |
Sets the static drawn state of the scene.
- Parameters
-
| staticDrawn | Boolean indicating whether the static elements have been drawn. |
Implements ConsoleUI::Scene.
The documentation for this class was generated from the following files: