OpenTTD Source 20261112-master-gbcbec5e63f
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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
10#ifndef GUI_H
11#define GUI_H
12
13#include "rail_type.h"
14#include "road_type.h"
15#include "vehicle_type.h"
16#include "economy_type.h"
17#include "tile_type.h"
18#include "transport_type.h"
19#include "story_type.h"
20#include "company_type.h"
21
22struct Window;
23
24/* main_gui.cpp */
25void InitializeGUI();
26
27/* settings_gui.cpp */
28void ShowGameOptions();
29
30/* train_gui.cpp */
31void ShowOrdersWindow(const Vehicle *v);
32
33/* dock_gui.cpp */
36
37/* airport_gui.cpp */
39
40/* tgp_gui.cpp */
43
44/* misc_gui.cpp */
45void ShowLandInfo(TileIndex tile);
46void ShowAboutWindow();
47void ShowEstimatedCostOrIncome(Money cost, int x, int y);
48
49/* tree_gui.cpp */
50void ShowBuildTreesToolbar();
51
52/* town_gui.cpp */
53void ShowTownDirectory();
54void ShowFoundTownWindow();
55
56/* industry_gui.cpp */
57void ShowIndustryDirectory();
59void ShowBuildIndustryWindow();
60
61/* subsidy_gui.cpp */
62void ShowSubsidiesList();
63
64/* story_gui.cpp */
65void ShowStoryBook(CompanyID company, StoryPageID page_id = StoryPageID::Invalid(), bool centered = false);
66
67/* viewport_gui.cpp */
70
71/* bridge_gui.cpp */
72void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, RailType railtype, RoadType roadtype);
73
74/* music_gui.cpp */
75void ShowMusicWindow();
76
77#endif /* GUI_H */
Types related to companies.
Types related to the economy.
void ShowStoryBook(CompanyID company, StoryPageID page_id=StoryPageID::Invalid(), bool centered=false)
Raise or create the story book window for company, at page page_id.
void ShowIndustryCargoesWindow()
Open the industry and cargoes window with an industry.
void ShowGenerateLandscape()
Start with a normal game.
void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, RailType railtype, RoadType roadtype)
Prepare the data for the build a bridge window.
Window * ShowBuildAirToolbar()
Open the build airport toolbar window.
Window * ShowBuildDocksScenToolbar()
Open the build water toolbar window for the scenario editor.
Definition dock_gui.cpp:416
void ShowEstimatedCostOrIncome(Money cost, int x, int y)
Display estimated costs.
Definition misc_gui.cpp:490
Window * ShowBuildDocksToolbar()
Open the build water toolbar window.
Definition dock_gui.cpp:375
void ShowLandInfo(TileIndex tile)
Show land information window.
Definition misc_gui.cpp:314
void ShowExtraViewportWindowForTileUnderCursor()
Show a new Extra Viewport window.
void ShowExtraViewportWindow(TileIndex tile=INVALID_TILE)
Show a new Extra Viewport window.
void ShowHeightmapLoad()
Start with loading a heightmap.
void ShowGameOptions()
Open the game options window.
The different types of rail.
RailType
Enumeration for all possible railtypes.
Definition rail_type.h:26
Enums and other types related to roads.
RoadType
The different roadtypes we support.
Definition road_type.h:24
Basic types related to story pages.
PoolID< uint16_t, struct StoryPageIDTag, 64000, 0xFFFF > StoryPageID
ID of a story page.
Definition story_type.h:16
Vehicle data structure.
Data structure for an opened window.
Definition window_gui.h:272
Types related to tiles.
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > > TileIndex
The index/ID of a Tile.
Definition tile_type.h:92
constexpr TileIndex INVALID_TILE
The very nice invalid tile marker.
Definition tile_type.h:100
Base types related to transport.
TransportType
Available types of transport.
Types related to vehicles.