Player12
An open source football management simulator
Loading...
Searching...
No Matches
SeasonReviewDialog Class Reference

The end-of-season summary, shown once when a season ends: the final position and its consequence (title, promotion, relegation), the key numbers, the top scorer, the board's verdict on each objective and next season's objectives. Celebratory or sombre with the outcome. More...

#include <season_review_dialog.h>

Classes

struct  Line
 

Public Member Functions

void open (const GameController &controller, const SeasonReview &review)
 
std::optional< std::uint16_t > render ()
 
bool isOpen () const
 

Private Attributes

bool open_requested = false
 
bool visible = false
 
std::uint16_t season = 0
 
std::string headline
 
ImVec4 headline_color {}
 
std::string subtitle
 
std::vector< std::pair< std::string, std::string > > tiles
 
std::vector< std::string > highlights
 
std::string verdict
 
ImVec4 verdict_color {}
 
std::string confidence
 
std::vector< Line > grades
 
std::vector< std::pair< std::string, std::string > > money
 
std::vector< std::pair< std::string, std::string > > next_objectives
 
std::string farewell
 

Detailed Description

The end-of-season summary, shown once when a season ends: the final position and its consequence (title, promotion, relegation), the key numbers, the top scorer, the board's verdict on each objective and next season's objectives. Celebratory or sombre with the outcome.

Member Function Documentation

◆ isOpen()

bool SeasonReviewDialog::isOpen ( ) const
inline

True from open() until the dialog is closed.

◆ open()

void SeasonReviewDialog::open ( const GameController &  controller,
const SeasonReview &  review 
)

Formats review once and opens the dialog on the next render().

◆ render()

std::optional< std::uint16_t > SeasonReviewDialog::render ( )

Draws the dialog; returns the season on the frame it is closed.

Member Data Documentation

◆ confidence

std::string SeasonReviewDialog::confidence
private

◆ farewell

std::string SeasonReviewDialog::farewell
private

◆ grades

std::vector<Line> SeasonReviewDialog::grades
private

◆ headline

std::string SeasonReviewDialog::headline
private

◆ headline_color

ImVec4 SeasonReviewDialog::headline_color {}
private

◆ highlights

std::vector<std::string> SeasonReviewDialog::highlights
private

◆ money

std::vector<std::pair<std::string, std::string> > SeasonReviewDialog::money
private

◆ next_objectives

std::vector<std::pair<std::string, std::string> > SeasonReviewDialog::next_objectives
private

◆ open_requested

bool SeasonReviewDialog::open_requested = false
private

◆ season

std::uint16_t SeasonReviewDialog::season = 0
private

◆ subtitle

std::string SeasonReviewDialog::subtitle
private

◆ tiles

std::vector<std::pair<std::string, std::string> > SeasonReviewDialog::tiles
private

◆ verdict

std::string SeasonReviewDialog::verdict
private

◆ verdict_color

ImVec4 SeasonReviewDialog::verdict_color {}
private

◆ visible

bool SeasonReviewDialog::visible = false
private

The documentation for this class was generated from the following files: