Help screen: getting started, the keyboard shortcuts in force and a searchable glossary. Opened from the command palette, the Help shortcut or the main menu; in a career it can replay the welcome tour.
More...
#include <help_scene.h>
|
| | HelpScene (GUIView *guiView_ptr, bool inCareer, std::optional< std::size_t > focusTerm=std::nullopt) |
| |
| void | onEnter () override |
| | Called when the scene is entered/becomes active.
|
| |
| void | update (float) override |
| | Updates scene logic.
|
| |
| void | render () override |
| | Renders the scene.
|
| |
| SceneID | getID () const override |
| | Gets the ID of the 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).
|
| |
Help screen: getting started, the keyboard shortcuts in force and a searchable glossary. Opened from the command palette, the Help shortcut or the main menu; in a career it can replay the welcome tour.
◆ HelpScene()
| HelpScene::HelpScene |
( |
GUIView * |
guiView_ptr, |
|
|
bool |
inCareer, |
|
|
std::optional< std::size_t > |
focusTerm = std::nullopt |
|
) |
| |
- Parameters
-
| inCareer | Leaving pops back to the career (else the main menu). |
| focusTerm | Glossary term to scroll to and highlight. |
◆ filterTerms()
| void HelpScene::filterTerms |
( |
| ) |
|
|
private |
◆ getID()
Gets the ID of the scene.
- Returns
- The SceneID of this scene.
GUIView uses this identifier to apply match-specific event and scene behavior.
Implements GUIScene.
◆ leave()
| void HelpScene::leave |
( |
| ) |
|
|
private |
◆ onEnter()
| void HelpScene::onEnter |
( |
| ) |
|
|
overridevirtual |
Called when the scene is entered/becomes active.
Reimplemented from GUIScene.
◆ rebuildShortcuts()
| void HelpScene::rebuildShortcuts |
( |
| ) |
|
|
private |
◆ render()
| void HelpScene::render |
( |
| ) |
|
|
overridevirtual |
◆ renderGlossary()
| void HelpScene::renderGlossary |
( |
| ) |
|
|
private |
◆ renderShortcuts()
| void HelpScene::renderShortcuts |
( |
| ) |
|
|
private |
◆ renderStart()
| void HelpScene::renderStart |
( |
| ) |
|
|
private |
◆ update()
| void HelpScene::update |
( |
float |
deltaTime | ) |
|
|
inlineoverridevirtual |
Updates scene logic.
- Parameters
-
| deltaTime | The time elapsed since the last update. |
Implements GUIScene.
◆ GameFlowTest_GUIFlowLifecycle_Test
| friend class GameFlowTest_GUIFlowLifecycle_Test |
|
friend |
◆ filtered_query
| std::string HelpScene::filtered_query |
|
private |
◆ focus_pending
| bool HelpScene::focus_pending = false |
|
private |
◆ focus_screen_y
| std::optional<float> HelpScene::focus_screen_y |
|
private |
Where the focused term is drawn.
◆ focus_term
| std::optional<std::size_t> HelpScene::focus_term |
|
private |
◆ in_career
| bool HelpScene::in_career = false |
|
private |
◆ matches
| std::vector<std::size_t> HelpScene::matches |
|
private |
◆ query
| std::array<char, 64> HelpScene::query {} |
|
private |
◆ search_text
| std::vector<std::string> HelpScene::search_text |
|
private |
Lower-case "term definition" text per glossary entry, for search.
◆ shortcut_rows
◆ shortcuts_revision
| std::uint32_t HelpScene::shortcuts_revision = 0 |
|
private |
The documentation for this class was generated from the following files: