World news: big transfers, managerial changes, title races, upsets, records and honours from this season and the last, built from the saved world (model/news_feed.h). Filters by country, competition and kind; every story links to its player, clubs or match report.
More...
#include <news_scene.h>
World news: big transfers, managerial changes, title races, upsets, records and honours from this season and the last, built from the saved world (model/news_feed.h). Filters by country, competition and kind; every story links to its player, clubs or match report.
◆ NewsScene()
| NewsScene::NewsScene |
( |
GUIView * |
parent | ) |
|
|
explicit |
◆ applyFilter()
| void NewsScene::applyFilter |
( |
| ) |
|
|
private |
◆ filterCountry()
| void NewsScene::filterCountry |
( |
std::optional< LeagueID > |
country | ) |
|
Keeps one country (0: continental) or every one (nullopt).
◆ filterKind()
| void NewsScene::filterKind |
( |
std::optional< NewsKind > |
kind | ) |
|
Keeps one kind of story or every kind (nullopt).
◆ getID()
Gets the ID of the scene.
- Returns
- The SceneID of this scene.
GUIView uses this identifier to apply match-specific event and scene behavior.
Implements GUIScene.
◆ navSection()
|
|
inlineoverrideprotectedvirtual |
◆ rebuildCompetitions()
| void NewsScene::rebuildCompetitions |
( |
| ) |
|
|
private |
◆ refresh()
| void NewsScene::refresh |
( |
| ) |
|
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
◆ renderContent()
| void NewsScene::renderContent |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ renderFilters()
| void NewsScene::renderFilters |
( |
| ) |
|
|
private |
◆ renderStory()
| void NewsScene::renderStory |
( |
std::size_t |
index | ) |
|
|
private |
◆ shownCount()
| std::size_t NewsScene::shownCount |
( |
| ) |
const |
|
inline |
◆ storyCount()
| std::size_t NewsScene::storyCount |
( |
| ) |
const |
|
inline |
Stories in the feed, and those the filters keep.
◆ update()
| void NewsScene::update |
( |
float |
deltaTime | ) |
|
|
inlineoverridevirtual |
Updates scene logic.
- Parameters
-
| deltaTime | The time elapsed since the last update. |
Implements GUIScene.
◆ competition_label
| std::string NewsScene::competition_label |
|
private |
◆ competitions
◆ countries
| std::vector<std::pair<LeagueID, std::string> > NewsScene::countries |
|
private |
Countries with stories: top league ID and name (0: continental).
◆ country_label
| std::string NewsScene::country_label |
|
private |
◆ filter
◆ items
◆ kept
| std::vector<std::size_t> NewsScene::kept |
|
private |
◆ rows
| std::vector<Row> NewsScene::rows |
|
private |
◆ visible
| std::size_t NewsScene::visible = 0 |
|
private |
The documentation for this class was generated from the following files: