File diff r23286:87def0a72c77 → r23287:0e81c2168d96
src/graph_gui.cpp
Show inline comments
 
@@ -1559,24 +1559,30 @@ NWidgetBase *MakeCompanyButtonRowsGraphG
 
static const NWidgetPart _nested_performance_rating_detail_widgets[] = {
 
	NWidget(NWID_HORIZONTAL),
 
		NWidget(WWT_CLOSEBOX, COLOUR_GREY),
 
		NWidget(WWT_CAPTION, COLOUR_GREY), SetDataTip(STR_PERFORMANCE_DETAIL, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
 
		NWidget(WWT_SHADEBOX, COLOUR_GREY),
 
		NWidget(WWT_STICKYBOX, COLOUR_GREY),
 
	EndContainer(),
 
	NWidget(WWT_PANEL, COLOUR_GREY),
 
		NWidgetFunction(MakeCompanyButtonRowsGraphGUI), SetPadding(0, 1, 1, 2),
 
	EndContainer(),
 
	NWidgetFunction(MakePerformanceDetailPanels),
 
};
 

	
 
static WindowDesc _performance_rating_detail_desc(
 
	WDP_AUTO, "league_details", 0, 0,
 
	WC_PERFORMANCE_DETAIL, WC_NONE,
 
	0,
 
	_nested_performance_rating_detail_widgets, lengthof(_nested_performance_rating_detail_widgets)
 
);
 

	
 
void ShowPerformanceRatingDetail()
 
{
 
	AllocateWindowDescFront<PerformanceRatingDetailWindow>(&_performance_rating_detail_desc, 0);
 
}
 

	
 
void InitializeGraphGui()
 
{
 
	_legend_excluded_companies = 0;
 
	_legend_excluded_cargo = 0;
 
}