Fix: Don't allow right-click to close world generation progress window. (#13084)
[openttd-github.git] / src / gui.h
blob87df7a3283ddffb565c8774c1b2907d55d6b7cb2
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 gui.h GUI functions that shouldn't be here. */
10 #ifndef GUI_H
11 #define GUI_H
13 #include "vehicle_type.h"
14 #include "economy_type.h"
15 #include "tile_type.h"
16 #include "transport_type.h"
17 #include "story_type.h"
18 #include "company_type.h"
20 struct Window;
22 /* main_gui.cpp */
23 void InitializeGUI();
25 /* settings_gui.cpp */
26 void ShowGameOptions();
27 void ShowGameSettings();
29 /* train_gui.cpp */
30 void ShowOrdersWindow(const Vehicle *v);
32 /* dock_gui.cpp */
33 Window *ShowBuildDocksToolbar();
34 Window *ShowBuildDocksScenToolbar();
36 /* airport_gui.cpp */
37 Window *ShowBuildAirToolbar();
39 /* tgp_gui.cpp */
40 void ShowGenerateLandscape();
41 void ShowHeightmapLoad();
43 /* misc_gui.cpp */
44 void ShowLandInfo(TileIndex tile);
45 void ShowAboutWindow();
46 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
48 /* tree_gui.cpp */
49 void ShowBuildTreesToolbar();
51 /* town_gui.cpp */
52 void ShowTownDirectory();
53 void ShowFoundTownWindow();
55 /* industry_gui.cpp */
56 void ShowIndustryDirectory();
57 void ShowIndustryCargoesWindow();
58 void ShowBuildIndustryWindow();
60 /* subsidy_gui.cpp */
61 void ShowSubsidiesList();
63 /* goal_gui.cpp */
64 void ShowGoalsList(CompanyID company);
65 void ShowGoalQuestion(uint16_t id, uint8_t type, uint32_t button_mask, const std::string &question);
67 /* story_gui.cpp */
68 void ShowStoryBook(CompanyID company, uint16_t page_id = INVALID_STORY_PAGE, bool centered = false);
70 /* viewport_gui.cpp */
71 void ShowExtraViewportWindow(TileIndex tile = INVALID_TILE);
72 void ShowExtraViewportWindowForTileUnderCursor();
74 /* bridge_gui.cpp */
75 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, uint8_t bridge_type);
77 /* music_gui.cpp */
78 void ShowMusicWindow();
80 #endif /* GUI_H */