OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

gui.h
Go to the documentation of this file.
1 /* $Id: gui.h 25372 2013-06-09 13:23:03Z zuu $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
8 */
9
12 #ifndef GUI_H
13 #define GUI_H
14
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
22 struct Window;
23
24 /* main_gui.cpp */
25 void HandleOnEditText(const char *str);
26 void InitializeGUI();
27
28 /* settings_gui.cpp */
29 void ShowGameOptions();
30 void ShowGameSettings();
31
32 /* train_gui.cpp */
33 void ShowOrdersWindow(const Vehicle *v);
34
35 /* dock_gui.cpp */
36 Window *ShowBuildDocksToolbar();
37 Window *ShowBuildDocksScenToolbar();
38
39 /* airport_gui.cpp */
40 Window *ShowBuildAirToolbar();
41
42 /* tgp_gui.cpp */
43 void ShowGenerateLandscape();
44 void ShowHeightmapLoad();
45
46 /* misc_gui.cpp */
47 void ShowLandInfo(TileIndex tile);
48 void ShowAboutWindow();
49 void ShowBuildTreesToolbar();
50 void ShowTownDirectory();
51 void ShowIndustryDirectory();
52 void ShowIndustryCargoesWindow();
53 void ShowSubsidiesList();
54 void ShowGoalsList(CompanyID company);
55 void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question);
56 void ShowStoryBook(CompanyID company, uint16 page_id = INVALID_STORY_PAGE);
57
58 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
59
60 void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
61 void ShowExtraViewPortWindowForTileUnderCursor();
62
63 /* bridge_gui.cpp */
64 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
65
66 void ShowBuildIndustryWindow();
67 void ShowFoundTownWindow();
68 void ShowMusicWindow();
69
70 #endif /* GUI_H */