Jazz2::UI::Menu::OptionsSection class

Options menu section.

Top-level options screen listing the settings categories (gameplay, graphics, sounds, controls, and user profile).

Base classes

template<class TItem>
class ScrollableMenuSection<OptionsItem>
Simplifies creation of unified scrollable menu sections.

Constructors, destructors, conversion operators

OptionsSection()
Creates a new instance.

Public functions

void OnDraw(Canvas* canvas) override
Called when the section should be drawn — the bottom background layer.

Protected functions

void OnLayoutItem(Canvas* canvas, ListViewItem& item) override
Called when an item layout should be calculated.
void OnDrawItem(Canvas* canvas, ListViewItem& item, std::int32_t& charOffset, bool isSelected) override
Called when an item should be drawn.
void OnExecuteSelected() override
Called when the selected item should be executed.