GameplayOptionsSection class
Gameplay options menu section.
Lists the gameplay-related settings, such as enhancements, language, continuous jump, and cheats, and leads into the related sub-screens.
Base classes
-
template<class TItem>class ScrollableMenuSection<GameplayOptionsItem>
- Simplifies creation of unified scrollable menu sections.
Constructors, destructors, conversion operators
- GameplayOptionsSection()
- Creates a new instance.
- ~GameplayOptionsSection()
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 OnHandleInput() override
- Called when input should be handled.
- 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.