StartGameOptionsSection class
Start game options menu section.
Lets the player choose the character and difficulty before starting the selected single player episode or level. Local splitscreen multiplayer (multiple players and game modes) is configured separately in CreateLocalGameOptionsSection.
Base classes
- class MenuSection
- Base class of a menu section.
Constructors, destructors, conversion operators
- StartGameOptionsSection(StringView levelName, StringView previousEpisodeName)
- Creates a new instance.
Public functions
- void OnShow(IMenuContainer* root) override
- Called when the section is shown.
- void OnUpdate(float timeMult) override
- Called when the section should be updated.
- void OnDraw(Canvas* canvas) override
- Called when the section should be drawn — the bottom background layer.
- void OnDrawOverlay(Canvas* canvas) override
- Called when the section should be drawn — the top overlay layer.
-
void OnTouchEvent(const nCine::
TouchEvent& event, Vector2i viewSize) override - Called when a touch event is triggered.
Function documentation
Jazz2:: UI:: Menu:: StartGameOptionsSection:: StartGameOptionsSection(StringView levelName,
StringView previousEpisodeName)
Creates a new instance.
| Parameters | |
|---|---|
| levelName | Level to start |
| previousEpisodeName | Name of the episode the level belongs to |