OpenTTD Source 20260421-master-gc2fbc6fdeb
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 "strings_type.h"
16#include "vehicle_type.h"
17#include "economy_type.h"
18#include "tile_type.h"
19#include "transport_type.h"
20#include "story_type.h"
21#include "company_type.h"
22
23struct Window;
24
25/* main_gui.cpp */
26void InitializeGUI();
27
28/* settings_gui.cpp */
29void ShowGameOptions();
30
31/* train_gui.cpp */
32void ShowOrdersWindow(const Vehicle *v);
33
34/* dock_gui.cpp */
37
38/* airport_gui.cpp */
40
41/* tgp_gui.cpp */
44
45/* misc_gui.cpp */
46void ShowLandInfo(TileIndex tile);
47void ShowAboutWindow();
48void ShowEstimatedCostOrIncome(Money cost, int x, int y);
49
50/* tree_gui.cpp */
51void ShowBuildTreesToolbar();
52
53/* town_gui.cpp */
54void ShowTownDirectory();
55void ShowFoundTownWindow();
56
57/* industry_gui.cpp */
58void ShowIndustryDirectory();
60void ShowBuildIndustryWindow();
61
62/* subsidy_gui.cpp */
63void ShowSubsidiesList();
64
65/* goal_gui.cpp */
66void ShowGoalsList(CompanyID company);
67void ShowGoalQuestion(uint16_t id, uint8_t type, uint32_t button_mask, const EncodedString &question);
68
69/* story_gui.cpp */
70void ShowStoryBook(CompanyID company, StoryPageID page_id = StoryPageID::Invalid(), bool centered = false);
71
72/* viewport_gui.cpp */
75
76/* bridge_gui.cpp */
77void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, RailType railtype, RoadType roadtype);
78
79/* music_gui.cpp */
80void ShowMusicWindow();
81
82#endif /* GUI_H */
Container for an encoded string, created by GetEncodedString.
Types related to companies.
Types related to the economy.
void ShowGoalQuestion(uint16_t id, uint8_t type, uint32_t button_mask, const EncodedString &question)
Display a goal question.
Definition goal_gui.cpp:474
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 ShowGoalsList(CompanyID company)
Open a goal list window.
Definition goal_gui.cpp:310
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:415
void ShowEstimatedCostOrIncome(Money cost, int x, int y)
Display estimated costs.
Definition misc_gui.cpp:488
Window * ShowBuildDocksToolbar()
Open the build water toolbar window.
Definition dock_gui.cpp:374
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:25
Enums and other types related to roads.
RoadType
The different roadtypes we support.
Definition road_type.h:23
Basic types related to story pages.
PoolID< uint16_t, struct StoryPageIDTag, 64000, 0xFFFF > StoryPageID
ID of a story page.
Definition story_type.h:16
Types related to strings.
Vehicle data structure.
Data structure for an opened window.
Definition window_gui.h:274
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.