File diff r13553:fe51d1a866c1 → r13554:d1964ead02ee
src/highscore_gui.cpp
Show inline comments
 
@@ -173,32 +173,32 @@ struct HighScoreWindow : EndGameHighScor
 
		}
 
	}
 
};
 

	
 
static const NWidgetPart _nested_highscore_widgets[] = {
 
	NWidget(WWT_PANEL, COLOUR_END, HSW_BACKGROUND), SetMinimalSize(641, 481), SetResize(1, 1), EndContainer(),
 
};
 

	
 
static const WindowDesc _highscore_desc(
 
	0, 0, 641, 481, 641, 481,
 
	WC_HIGHSCORE, WC_NONE,
 
	0,
 
	NULL, _nested_highscore_widgets, lengthof(_nested_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,
 
	NULL, _nested_highscore_widgets, lengthof(_nested_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)
 
{
 
	DeleteWindowByClass(WC_HIGHSCORE);
 
	new HighScoreWindow(&_highscore_desc, difficulty, ranking);
 
}
 

	
 
/** Show the endgame victory screen in 2050. Update the new highscore