Jazz2::UI::Menu::CustomLevelSelectSection class

Custom level selection menu section.

Lists the installed custom (standalone) levels and lets the player pick one to play or host as a multiplayer server.

Base classes

class MenuSection
Base class of a menu section.

Constructors, destructors, conversion operators

CustomLevelSelectSection(bool multiplayer = false, bool privateServer = false)
Creates a new instance.
~CustomLevelSelectSection()

Public functions

auto GetClipRectangle(const Recti& contentBounds) -> Recti override
Allows to override clip rectangle of the middle layer.
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 OnDrawClipped(Canvas* canvas) override
Called when the section should be drawn — the middle clipped layer.
void OnTouchEvent(const TouchEvent& event, Vector2i viewSize) override
Called when a touch event is triggered.

Function documentation

Jazz2::UI::Menu::CustomLevelSelectSection::CustomLevelSelectSection(bool multiplayer = false, bool privateServer = false)

Creates a new instance.

Parameters
multiplayer Whether the selected level should be hosted as a multiplayer server
privateServer Whether the hosted server should be private (not publicly listed)