|
Player12
An open source football management simulator
|
Modal that reveals a draw already made, one tie at a time. More...
#include <draw_ceremony_dialog.h>
Classes | |
| struct | Row |
Public Member Functions | |
| void | open (const DrawCeremony &ceremony, const GameController &controller) |
| void | render (GUIView *view) |
| bool | isOpen () const |
| std::size_t | shownCount () const |
| std::size_t | revealCount () const |
| void | revealAll () |
Private Member Functions | |
| void | renderRow (GUIView *view, const Row &row, std::size_t index, float alpha) |
Private Attributes | |
| bool | open_requested = false |
| bool | visible = false |
| bool | skipped = false |
| float | elapsed = 0.0f |
| int | speed_index = 0 |
| std::size_t | last_shown = 0 |
| std::string | title |
| std::string | subtitle |
| bool | league_phase = false |
| std::vector< Row > | rows |
Modal that reveals a draw already made, one tie at a time.
Self-contained: keep one instance in the hosting screen, call open() with a ceremony and render() every frame. The ties appear one by one at the chosen speed; Reveal all shows the rest at once and Reduced motion shows everything straight away. Clubs open their squad list; nothing in the game changes.
|
inline |
| void DrawCeremonyDialog::open | ( | const DrawCeremony & | ceremony, |
| const GameController & | controller | ||
| ) |
| void DrawCeremonyDialog::render | ( | GUIView * | view | ) |
|
private |
|
inline |
Shows every remaining tie at once.
|
inline |
| std::size_t DrawCeremonyDialog::shownCount | ( | ) | const |
Ties shown so far (all of them once revealed or skipped).
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |