Changeset - r11646:66d8b9c62ebc
[Not reviewed]
master
0 1 0
alberth - 16 years ago 2009-04-11 18:10:32
alberth@openttd.org
(svn r16031) -Codechange: Added nested widgets to highscore and endgame windows.
1 file changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/highscore_gui.cpp
Show inline comments
 
@@ -163,24 +163,28 @@ struct HighScoreWindow : EndGameHighScor
 

	
 
static const Widget _highscore_widgets[] = {
 
{      WWT_PANEL, RESIZE_NONE,  COLOUR_END, 0, 640, 0, 480, 0x0, STR_NULL},
 
{   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
 
 * endgame ranking is set to the top5 element that was newly added
 
 * and is thus highlighted */
 
void ShowHighscoreTable(int difficulty, int8 ranking)
0 comments (0 inline, 0 general)