summaryrefslogtreecommitdiff
path: root/src/highscore_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-04-11 18:10:32 +0000
committeralberth <alberth@openttd.org>2009-04-11 18:10:32 +0000
commit8a90633ba64e17f131fcd474bea10263012f3c29 (patch)
tree7ba33658b209637713ac61ac2265a7820d3db0c8 /src/highscore_gui.cpp
parentf190eb0d93f001a18a31f96397b3e3de530337e9 (diff)
downloadopenttd-8a90633ba64e17f131fcd474bea10263012f3c29.tar.xz
(svn r16031) -Codechange: Added nested widgets to highscore and endgame windows.
Diffstat (limited to 'src/highscore_gui.cpp')
-rw-r--r--src/highscore_gui.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp
index bd8fea697..eacaa7ffc 100644
--- a/src/highscore_gui.cpp
+++ b/src/highscore_gui.cpp
@@ -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