|
@@ -157,37 +157,37 @@ struct HighScoreWindow : EndGameHighScor
|
|
|
SetDParam(1, hs[i].score);
|
|
|
DrawString(x + 71, y + 160 + (i * 55), STR_HIGHSCORE_STATS, colour);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
static const Widget _highscore_widgets[] = {
|
|
|
{ WWT_PANEL, RESIZE_NONE, COLOUR_END, 0, 640, 0, 480, 0x0, STR_NULL},
|
|
|
{ WIDGETS_END},
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _highscore_desc = {
|
|
|
static const WindowDesc _highscore_desc(
|
|
|
0, 0, 641, 481, 641, 481,
|
|
|
WC_HIGHSCORE, WC_NONE,
|
|
|
0,
|
|
|
_highscore_widgets,
|
|
|
};
|
|
|
_highscore_widgets
|
|
|
);
|
|
|
|
|
|
static const WindowDesc _endgame_desc = {
|
|
|
static const WindowDesc _endgame_desc(
|
|
|
0, 0, 641, 481, 641, 481,
|
|
|
WC_ENDSCREEN, WC_NONE,
|
|
|
0,
|
|
|
_highscore_widgets,
|
|
|
};
|
|
|
_highscore_widgets
|
|
|
);
|
|
|
|
|
|
/** 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 */
|
|
|
void ShowHighscoreTable(int difficulty, int8 ranking)
|
|
|
{
|
|
|
DeleteWindowByClass(WC_HIGHSCORE);
|
|
|
new HighScoreWindow(&_highscore_desc, difficulty, ranking);
|
|
|
}
|
|
|
|
|
|
/** Show the endgame victory screen in 2050. Update the new highscore
|
|
|
* if it was high enough */
|