Jazz2::UI::Menu::ScoreboardSection class

In-game multiplayer scoreboard.

Section of the in-game menu that lists all connected players with their per-round statistics (kills, deaths, points, ping and a mode-specific column) and team colors. Opened by pressing PlayerAction::Up on the Resume item. The data rows live in a clipped, vertically scrollable band: it supports keyboard scrolling (Up/Down), smooth kinetic touch dragging with a scrollbar, and a tap (or PlayerAction::Menu / PlayerAction::Fire) to close.

Base classes

class MenuSection
Base class of a menu section.

Constructors, destructors, conversion operators

ScoreboardSection()
Creates a new instance.

Public functions

auto GetClipRectangle(const Recti& contentBounds) -> Recti override
Allows to override clip rectangle of the middle layer.
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 OnDrawClipped(Canvas* canvas) override
Called when the section should be drawn — the middle clipped layer.
void OnTouchEvent(const nCine::TouchEvent& event, Vector2i viewSize) override
Called when a touch event is triggered.
auto GetTransition() const -> TransitionInfo override
Allows to override the animated transition played when this section is shown or hidden.