OpenTTD Source  20241108-master-g80f628063a
road_gui.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 ROAD_GUI_H
11 #define ROAD_GUI_H
12 
13 #include "road_type.h"
14 #include "tile_type.h"
15 #include "direction_type.h"
16 #include "dropdown_type.h"
17 
18 struct Window *ShowBuildRoadToolbar(RoadType roadtype);
19 struct Window *ShowBuildRoadScenToolbar(RoadType roadtype);
20 void ConnectRoadToStructure(TileIndex tile, DiagDirection direction);
21 DropDownList GetRoadTypeDropDownList(RoadTramTypes rtts, bool for_replacement = false, bool all_option = false);
22 DropDownList GetScenRoadTypeDropDownList(RoadTramTypes rtts);
23 void InitializeRoadGUI();
24 
25 #endif /* ROAD_GUI_H */
Different types to 'show' directions.
DiagDirection
Enumeration for diagonal directions.
Types related to the drop down widget.
std::vector< std::unique_ptr< const DropDownListItem > > DropDownList
A drop down list is a collection of drop down list items.
Definition: dropdown_type.h:50
void InitializeRoadGUI()
I really don't know why rail_gui.cpp has this too, shouldn't be included in the other one?
Definition: road_gui.cpp:1722
struct Window * ShowBuildRoadToolbar(RoadType roadtype)
Open the build road toolbar window.
Definition: road_gui.cpp:994
struct Window * ShowBuildRoadScenToolbar(RoadType roadtype)
Show the road building toolbar in the scenario editor.
Definition: road_gui.cpp:1081
void ConnectRoadToStructure(TileIndex tile, DiagDirection direction)
If required, connects a new structure to an existing road or tram by building the missing roadbit.
Definition: road_gui.cpp:162
Enums and other types related to roads.
RoadType
The different roadtypes we support.
Definition: road_type.h:25
Data structure for an opened window.
Definition: window_gui.h:273
Types related to tiles.