Jazz2::UI::Menu::StartGameOptionsSection class

Start game options menu section.

Lets the player choose the number of local players, the characters, and the difficulty before starting the selected episode or level.

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