File diff r25038:e3007a7a86a5 → r25039:1deb621cd116
src/linkgraph/linkgraph_gui.cpp
Show inline comments
 
@@ -366,25 +366,25 @@ void LinkGraphOverlay::SetCargoMask(Carg
 
 * @param company_mask New company mask.
 
 */
 
void LinkGraphOverlay::SetCompanyMask(uint32 company_mask)
 
{
 
	this->company_mask = company_mask;
 
	this->RebuildCache();
 
	this->window->GetWidget<NWidgetBase>(this->widget_id)->SetDirty(this->window);
 
}
 

	
 
/** Make a number of rows with buttons for each company for the linkgraph legend window. */
 
NWidgetBase *MakeCompanyButtonRowsLinkGraphGUI(int *biggest_index)
 
{
 
	return MakeCompanyButtonRows(biggest_index, WID_LGL_COMPANY_FIRST, WID_LGL_COMPANY_LAST, 3, STR_NULL);
 
	return MakeCompanyButtonRows(biggest_index, WID_LGL_COMPANY_FIRST, WID_LGL_COMPANY_LAST, COLOUR_GREY, 3, STR_NULL);
 
}
 

	
 
NWidgetBase *MakeSaturationLegendLinkGraphGUI(int *biggest_index)
 
{
 
	NWidgetVertical *panel = new NWidgetVertical(NC_EQUALSIZE);
 
	for (uint i = 0; i < lengthof(LinkGraphOverlay::LINK_COLOURS); ++i) {
 
		NWidgetBackground * wid = new NWidgetBackground(WWT_PANEL, COLOUR_DARK_GREEN, i + WID_LGL_SATURATION_FIRST);
 
		wid->SetMinimalSize(50, FONT_HEIGHT_SMALL);
 
		wid->SetFill(1, 1);
 
		wid->SetResize(0, 0);
 
		panel->Add(wid);
 
	}