Implementation of linkgraph overlay GUI. More...
#include "stdafx.h"
#include "window_func.h"
#include "window_gui.h"
#include "company_base.h"
#include "company_gui.h"
#include "date_func.h"
#include "viewport_func.h"
#include "linkgraph_gui.h"
#include "smallmap_gui.h"
Go to the source code of this file.
Enumerations | |
enum | LinkGraphLegendWindowWidgets { LGL_CAPTION, LGL_SATURATION, LGL_SATURATION_FIRST, LGL_SATURATION_LAST = LGL_SATURATION_FIRST + lengthof(LinkGraphOverlay::LINK_COLOURS) - 1, LGL_COMPANIES, LGL_COMPANY_FIRST, LGL_COMPANY_LAST = LGL_COMPANY_FIRST + MAX_COMPANIES - 1, LGL_COMPANIES_ALL, LGL_COMPANIES_NONE, LGL_CARGOES, LGL_CARGO_FIRST, LGL_CARGO_LAST = LGL_CARGO_FIRST + NUM_CARGO - 1, LGL_CARGOES_ALL, LGL_CARGOES_NONE, s } |
Functions | |
NWidgetBase * | MakeCompanyButtonRowsLinkGraphGUI (int *biggest_index) |
Make a number of rows with buttons for each company for the linkgraph legend window. | |
NWidgetBase * | MakeSaturationLegendLinkGraphGUI (int *biggest_index) |
NWidgetBase * | MakeCargoesLegendLinkGraphGUI (int *biggest_index) |
void | ShowLinkGraphLegend () |
Open a link graph legend window. | |
Variables | |
static const NWidgetPart | _nested_linkgraph_legend_widgets [] |
static const WindowDesc | _linkgraph_legend_desc (WDP_MANUAL, 300, 314, WC_LINKGRAPH_LEGEND, WC_NONE, WDF_UNCLICK_BUTTONS, _nested_linkgraph_legend_widgets, lengthof(_nested_linkgraph_legend_widgets)) |
Implementation of linkgraph overlay GUI.
Definition in file linkgraph_gui.cpp.
LGL_CAPTION |
Caption widget. |
LGL_SATURATION |
Saturation legend. |
LGL_COMPANIES |
Company selection widget. |
LGL_CARGOES |
Cargo selection widget. |
Definition at line 296 of file linkgraph_gui.cpp.
NWidgetBase* MakeCompanyButtonRowsLinkGraphGUI | ( | int * | biggest_index | ) |
Make a number of rows with buttons for each company for the linkgraph legend window.
Definition at line 314 of file linkgraph_gui.cpp.
References MakeCompanyButtonRows().