Analysis (the club's season as figures and charts), course (the recorded series as curves, the seasons' finances), winners under their trophies, records (all-time table, series and records, world cups) and players (transfer history, minutes, chances). A page with several kinds shows them as tabs; the old list of kinds in the foot is gone in a career. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
25 lines
1.3 KiB
C++
25 lines
1.3 KiB
C++
// SPDX-License-Identifier: GPL-3.0-only
|
|
Json statistics_view_ = Json::object();
|
|
Json statistics_trophy_ = Json::object();
|
|
Json statistics_scrolls_ = Json::object();
|
|
bool statistics_restore_pending_ = false;
|
|
std::string render_statistics();
|
|
// "analysis": the club's season as charts (engine careers); "archive": the tables of the original
|
|
std::string statistics_mode_ = "analysis";
|
|
// the page of the statistics that is open: "statistics" (the club's season), or one of the
|
|
// groups of the archive: "stat-trend", "stat-winners", "stat-records", "stat-players"
|
|
std::string statistics_page_ = "statistics";
|
|
static std::vector<int> statistics_page_sections(const std::string &page);
|
|
void statistics_open(const std::string &page);
|
|
Json engine_analysis_value_;
|
|
std::string render_statistics_analysis();
|
|
std::vector<std::pair<std::string, std::string>> statistics_picker_items(const std::string &) const;
|
|
std::string statistics_picker_value(const std::string &) const;
|
|
bool statistics_picker_select(const std::string &, const std::string &);
|
|
bool statistics_action(const std::string &, Rml::Element *);
|
|
bool statistics_event(Rml::Event &);
|
|
void statistics_remember_scroll();
|
|
void statistics_restore_scroll();
|
|
std::string statistics_trophy_asset(const std::string &) const;
|
|
std::string render_statistics_trophy();
|