OpenTTD Source  20240919-master-gdf0233f4c2
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 
20  WID_LGL_SATURATION_FIRST,
21  WID_LGL_SATURATION_LAST = WID_LGL_SATURATION_FIRST + 11,
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,
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 */
WidgetID
int WidgetID
Widget ID.
Definition: window_type.h:18
MAX_COMPANIES
@ MAX_COMPANIES
Maximum number of companies.
Definition: company_type.h:23
NUM_CARGO
static const CargoID NUM_CARGO
Maximum number of cargo types in a game.
Definition: cargo_type.h:74