Jazz2::UI::Menu::UserProfileOptionsSection class

User profile options menu section.

Lets the player edit the player profile, such as the displayed name, character fur colors, and color mode, with a live recolored character preview. Built declaratively on top of WidgetSection using a TextInput for the name and CustomValueItem rows for the color pickers and identifier.

Base classes

class WidgetSection
Base class of a declarative menu section.

Constructors, destructors, conversion operators

UserProfileOptionsSection()
Creates a new instance.
~UserProfileOptionsSection() override

Public functions

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 OnDrawOverlay(Canvas* canvas) override
Called when the section should be drawn — the top overlay layer.
void OnTouchEvent(const nCine::TouchEvent& event, Vector2i viewSize) override
Called when a touch event is triggered.

Protected functions

void OnBackPressed() override
Called when the back button is pressed; leaves the section by default.