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

OpenTTD Source 15.3

road_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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef WIDGETS_ROAD_WIDGET_H
11#define WIDGETS_ROAD_WIDGET_H
12
14 enum RoadToolbarWidgets : WidgetID {
15 /* Name starts with RO instead of R, because of collision with RailToolbarWidgets */
16 WID_ROT_CAPTION,
17 WID_ROT_ROAD_X,
18 WID_ROT_ROAD_Y,
19 WID_ROT_AUTOROAD,
20 WID_ROT_DEMOLISH,
21 WID_ROT_DEPOT,
22 WID_ROT_BUILD_WAYPOINT,
23 WID_ROT_BUS_STATION,
24 WID_ROT_TRUCK_STATION,
25 WID_ROT_ONE_WAY,
26 WID_ROT_BUILD_BRIDGE,
27 WID_ROT_BUILD_TUNNEL,
28 WID_ROT_REMOVE,
29 WID_ROT_CONVERT_ROAD,
30};
31
33 enum BuildRoadDepotWidgets : WidgetID {
34 /* Name starts with BRO instead of BR, because of collision with BuildRailDepotWidgets */
35 WID_BROD_CAPTION,
36 WID_BROD_DEPOT_NE,
37 WID_BROD_DEPOT_SE,
38 WID_BROD_DEPOT_SW,
39 WID_BROD_DEPOT_NW,
40};
41
43 enum BuildRoadStationWidgets : WidgetID {
44 /* Name starts with BRO instead of BR, because of collision with BuildRailStationWidgets */
45 WID_BROS_CAPTION,
46 WID_BROS_STATION_NE,
47 WID_BROS_STATION_SE,
48 WID_BROS_STATION_SW,
49 WID_BROS_STATION_NW,
50 WID_BROS_STATION_X,
51 WID_BROS_STATION_Y,
52 WID_BROS_LT_OFF,
53 WID_BROS_LT_ON,
54 WID_BROS_ACCEPTANCE,
55 WID_BROS_AVAILABLE_ORIENTATIONS,
56};
57
58#endif /* WIDGETS_ROAD_WIDGET_H */
BuildRoadStationWidgets
BuildRoadStationWidgets
Widgets of the BuildRoadStationWindow class.
Definition road_widget.h:43
WID_BROS_LT_ON
@ WID_BROS_LT_ON
Turn on area highlight.
Definition road_widget.h:53
WID_BROS_ACCEPTANCE
@ WID_BROS_ACCEPTANCE
Station acceptance info.
Definition road_widget.h:54
WID_BROS_STATION_SW
@ WID_BROS_STATION_SW
Terminal station with SW entry.
Definition road_widget.h:48
WID_BROS_STATION_X
@ WID_BROS_STATION_X
Drive-through station in x-direction.
Definition road_widget.h:50
WID_BROS_STATION_NE
@ WID_BROS_STATION_NE
Terminal station with NE entry.
Definition road_widget.h:46
WID_BROS_STATION_SE
@ WID_BROS_STATION_SE
Terminal station with SE entry.
Definition road_widget.h:47
WID_BROS_CAPTION
@ WID_BROS_CAPTION
Caption of the window.
Definition road_widget.h:45
WID_BROS_AVAILABLE_ORIENTATIONS
@ WID_BROS_AVAILABLE_ORIENTATIONS
Selection for selecting 6 or 2 orientations.
Definition road_widget.h:55
WID_BROS_STATION_NW
@ WID_BROS_STATION_NW
Terminal station with NW entry.
Definition road_widget.h:49
WID_BROS_STATION_Y
@ WID_BROS_STATION_Y
Drive-through station in y-direction.
Definition road_widget.h:51
WID_BROS_LT_OFF
@ WID_BROS_LT_OFF
Turn off area highlight.
Definition road_widget.h:52
RoadToolbarWidgets
RoadToolbarWidgets
Widgets of the BuildRoadToolbarWindow class.
Definition road_widget.h:14
WID_ROT_BUILD_BRIDGE
@ WID_ROT_BUILD_BRIDGE
Build bridge.
Definition road_widget.h:26
WID_ROT_BUS_STATION
@ WID_ROT_BUS_STATION
Build bus station.
Definition road_widget.h:23
WID_ROT_DEPOT
@ WID_ROT_DEPOT
Build depot.
Definition road_widget.h:21
WID_ROT_CAPTION
@ WID_ROT_CAPTION
Caption of the window.
Definition road_widget.h:16
WID_ROT_BUILD_WAYPOINT
@ WID_ROT_BUILD_WAYPOINT
Build waypoint.
Definition road_widget.h:22
WID_ROT_ROAD_Y
@ WID_ROT_ROAD_Y
Build road in y-direction.
Definition road_widget.h:18
WID_ROT_AUTOROAD
@ WID_ROT_AUTOROAD
Autorail.
Definition road_widget.h:19
WID_ROT_DEMOLISH
@ WID_ROT_DEMOLISH
Demolish.
Definition road_widget.h:20
WID_ROT_BUILD_TUNNEL
@ WID_ROT_BUILD_TUNNEL
Build tunnel.
Definition road_widget.h:27
WID_ROT_TRUCK_STATION
@ WID_ROT_TRUCK_STATION
Build truck station.
Definition road_widget.h:24
WID_ROT_CONVERT_ROAD
@ WID_ROT_CONVERT_ROAD
Convert road.
Definition road_widget.h:29
WID_ROT_REMOVE
@ WID_ROT_REMOVE
Remove road.
Definition road_widget.h:28
WID_ROT_ONE_WAY
@ WID_ROT_ONE_WAY
Build one-way road.
Definition road_widget.h:25
WID_ROT_ROAD_X
@ WID_ROT_ROAD_X
Build road in x-direction.
Definition road_widget.h:17
BuildRoadDepotWidgets
BuildRoadDepotWidgets
Widgets of the BuildRoadDepotWindow class.
Definition road_widget.h:33
WID_BROD_DEPOT_SE
@ WID_BROD_DEPOT_SE
Depot with SE entry.
Definition road_widget.h:37
WID_BROD_DEPOT_NE
@ WID_BROD_DEPOT_NE
Depot with NE entry.
Definition road_widget.h:36
WID_BROD_CAPTION
@ WID_BROD_CAPTION
Caption of the window.
Definition road_widget.h:35
WID_BROD_DEPOT_NW
@ WID_BROD_DEPOT_NW
Depot with NW entry.
Definition road_widget.h:39
WID_BROD_DEPOT_SW
@ WID_BROD_DEPOT_SW
Depot with SW entry.
Definition road_widget.h:38
WidgetID
int WidgetID
Widget ID.
Definition window_type.h:20