MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ShowHighscoreTable

Function ShowHighscoreTable

src/highscore_gui.cpp:243–247  ·  view source on GitHub ↗

* Show the highscore table for a given difficulty. When called from * endgame ranking is set to the top5 element that was newly added * and is thus highlighted */

Source from the content-addressed store, hash-verified

241 * and is thus highlighted
242 */
243void ShowHighscoreTable(int difficulty, int8_t ranking)
244{
245 CloseWindowByClass(WC_HIGHSCORE);
246 new HighScoreWindow(_highscore_desc, difficulty, ranking);
247}
248
249/**
250 * Show the endgame victory screen in 2050. Update the new highscore

Callers 3

OnClickMethod · 0.85
MenuClickGraphsOrLeagueFunction · 0.85
CloseMethod · 0.85

Calls 1

CloseWindowByClassFunction · 0.85

Tested by

no test coverage detected