Jazz2::UI::Menu::OptionsSection class

Options menu section.

Top-level options screen listing the settings categories (gameplay, graphics, sounds, controls, and user profile). Built declaratively on top of WidgetSection.

Base classes

class WidgetSection
Base class of a declarative menu section.

Public functions

void OnShow(IMenuContainer* root) override
Called when the section is shown.
void OnLayoutChanged(IMenuContainer* root) override
Called when the view size changed (the rendering resolution) while the section is in the stack.

Function documentation

void Jazz2::UI::Menu::OptionsSection::OnLayoutChanged(IMenuContainer* root) override

Called when the view size changed (the rendering resolution) while the section is in the stack.

The content bounds and everything laid out at draw time follow the view on their own; this is for what a section decided when it was built. Reached for every section in the stack, the hidden ones included (whose own root is unset while hidden, hence the parameter), and the stack itself is kept.