Codechange: Store animated tile state in map to improve performance.
[openttd-github.git] / src / widgets / road_widget.h
blob679545728a2e832d6b1fb6dbda022bce1acf2029
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 */
8 /** @file road_widget.h Types related to the road widgets. */
10 #ifndef WIDGETS_ROAD_WIDGET_H
11 #define WIDGETS_ROAD_WIDGET_H
13 /** Widgets of the #BuildRoadToolbarWindow class. */
14 enum RoadToolbarWidgets : WidgetID {
15 /* Name starts with RO instead of R, because of collision with RailToolbarWidgets */
16 WID_ROT_CAPTION, ///< Caption of the window
17 WID_ROT_ROAD_X, ///< Build road in x-direction.
18 WID_ROT_ROAD_Y, ///< Build road in y-direction.
19 WID_ROT_AUTOROAD, ///< Autorail.
20 WID_ROT_DEMOLISH, ///< Demolish.
21 WID_ROT_DEPOT, ///< Build depot.
22 WID_ROT_BUILD_WAYPOINT, ///< Build waypoint.
23 WID_ROT_BUS_STATION, ///< Build bus station.
24 WID_ROT_TRUCK_STATION, ///< Build truck station.
25 WID_ROT_ONE_WAY, ///< Build one-way road.
26 WID_ROT_BUILD_BRIDGE, ///< Build bridge.
27 WID_ROT_BUILD_TUNNEL, ///< Build tunnel.
28 WID_ROT_REMOVE, ///< Remove road.
29 WID_ROT_CONVERT_ROAD, ///< Convert road.
31 INVALID_WID_ROT = -1,
34 /** Widgets of the #BuildRoadDepotWindow class. */
35 enum BuildRoadDepotWidgets : WidgetID {
36 /* Name starts with BRO instead of BR, because of collision with BuildRailDepotWidgets */
37 WID_BROD_CAPTION, ///< Caption of the window.
38 WID_BROD_DEPOT_NE, ///< Depot with NE entry.
39 WID_BROD_DEPOT_SE, ///< Depot with SE entry.
40 WID_BROD_DEPOT_SW, ///< Depot with SW entry.
41 WID_BROD_DEPOT_NW, ///< Depot with NW entry.
44 /** Widgets of the #BuildRoadStationWindow class. */
45 enum BuildRoadStationWidgets : WidgetID {
46 /* Name starts with BRO instead of BR, because of collision with BuildRailStationWidgets */
47 WID_BROS_CAPTION, ///< Caption of the window.
48 WID_BROS_STATION_NE, ///< Terminal station with NE entry.
49 WID_BROS_STATION_SE, ///< Terminal station with SE entry.
50 WID_BROS_STATION_SW, ///< Terminal station with SW entry.
51 WID_BROS_STATION_NW, ///< Terminal station with NW entry.
52 WID_BROS_STATION_X, ///< Drive-through station in x-direction.
53 WID_BROS_STATION_Y, ///< Drive-through station in y-direction.
54 WID_BROS_LT_OFF, ///< Turn off area highlight.
55 WID_BROS_LT_ON, ///< Turn on area highlight.
56 WID_BROS_ACCEPTANCE, ///< Station acceptance info.
57 WID_BROS_AVAILABLE_ORIENTATIONS, ///< Selection for selecting 6 or 2 orientations.
60 #endif /* WIDGETS_ROAD_WIDGET_H */