MultiplayerGameModeSelectSection class
Multiplayer game mode selection menu section.
Lists the available multiplayer game modes (such as Battle, Race, Treasure Hunt, and Cooperation) and lets the player choose one for the server being configured.
Base classes
-
template<class TItem>class ScrollableMenuSection<MultiplayerGameModeItem>
- Simplifies creation of unified scrollable menu sections.
Constructors, destructors, conversion operators
- MultiplayerGameModeSelectSection()
- Creates a new instance.
Public functions
- void OnShow(IMenuContainer* root) override
- Called when the section is shown.
- void OnDraw(Canvas* canvas) override
- Called when the section should be drawn — the bottom background layer.
Protected functions
- void OnExecuteSelected() override
- Called when the selected item should be executed.
-
void OnDrawItem(Canvas* canvas,
ListViewItem& item,
std::
int32_t& charOffset, bool isSelected) override - Called when an item should be drawn.