OpenTTD Source: src/widgets/link_graph_legend_widget.h Source File

OpenTTD Source 13.1

link_graph_legend_widget.h
Go to the documentation of this file.
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
7
10 #ifndef WIDGETS_LINKGRAPH_LEGEND_WIDGET_H
11 #define WIDGETS_LINKGRAPH_LEGEND_WIDGET_H
12
13 #include "../cargo_type.h"
14
17 enum LinkGraphLegendWidgets {
18 WID_LGL_CAPTION,
19 WID_LGL_SATURATION,
20 WID_LGL_SATURATION_FIRST,
21 WID_LGL_SATURATION_LAST = WID_LGL_SATURATION_FIRST + 11,
22 WID_LGL_COMPANIES,
23 WID_LGL_COMPANY_FIRST,
24 WID_LGL_COMPANY_LAST = WID_LGL_COMPANY_FIRST + MAX_COMPANIES - 1,
25 WID_LGL_COMPANIES_ALL,
26 WID_LGL_COMPANIES_NONE,
27 WID_LGL_CARGOES,
28 WID_LGL_CARGO_FIRST,
29 WID_LGL_CARGO_LAST = WID_LGL_CARGO_FIRST + NUM_CARGO - 1,
30 WID_LGL_CARGOES_ALL,
31 WID_LGL_CARGOES_NONE,
32 };
33
34 #endif /* WIDGETS_LINKGRAPH_LEGEND_WIDGET_H */
WID_LGL_COMPANIES
@ WID_LGL_COMPANIES
Company selection widget.
Definition: link_graph_legend_widget.h:22
LinkGraphLegendWidgets
LinkGraphLegendWidgets
Widgets of the WC_LINKGRAPH_LEGEND.
Definition: link_graph_legend_widget.h:17
WID_LGL_SATURATION
@ WID_LGL_SATURATION
Saturation legend.
Definition: link_graph_legend_widget.h:19
WID_LGL_CAPTION
@ WID_LGL_CAPTION
Caption widget.
Definition: link_graph_legend_widget.h:18
MAX_COMPANIES
@ MAX_COMPANIES
Maximum number of companies.
Definition: company_type.h:23
NUM_CARGO
@ NUM_CARGO
Maximal number of cargo types in a game.
Definition: cargo_type.h:65
WID_LGL_CARGOES
@ WID_LGL_CARGOES
Cargo selection widget.
Definition: link_graph_legend_widget.h:27