mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 04:13:26 +00:00
(svn r16031) -Codechange: Added nested widgets to highscore and endgame windows.
This commit is contained in:
parent
f190eb0d93
commit
8a90633ba6
@ -166,18 +166,22 @@ static const Widget _highscore_widgets[] = {
|
||||
{ WIDGETS_END},
|
||||
};
|
||||
|
||||
static const NWidgetPart _nested_highscore_widgets[] = {
|
||||
NWidget(WWT_PANEL, COLOUR_END, 0), SetMinimalSize(641, 481), EndContainer(),
|
||||
};
|
||||
|
||||
static const WindowDesc _highscore_desc(
|
||||
0, 0, 641, 481, 641, 481,
|
||||
WC_HIGHSCORE, WC_NONE,
|
||||
0,
|
||||
_highscore_widgets
|
||||
_highscore_widgets, _nested_highscore_widgets, lengthof(_nested_highscore_widgets)
|
||||
);
|
||||
|
||||
static const WindowDesc _endgame_desc(
|
||||
0, 0, 641, 481, 641, 481,
|
||||
WC_ENDSCREEN, WC_NONE,
|
||||
0,
|
||||
_highscore_widgets
|
||||
_highscore_widgets, _nested_highscore_widgets, lengthof(_nested_highscore_widgets)
|
||||
);
|
||||
|
||||
/** Show the highscore table for a given difficulty. When called from
|
||||
|
Loading…
Reference in New Issue
Block a user