OpenTTD
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 GUI_H
11 #define GUI_H
12 
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"
19 
20 struct Window;
21 
22 /* main_gui.cpp */
23 void HandleOnEditText(const char *str);
24 void InitializeGUI();
25 
26 /* settings_gui.cpp */
27 void ShowGameOptions();
28 void ShowGameSettings();
29 
30 /* train_gui.cpp */
31 void ShowOrdersWindow(const Vehicle *v);
32 
33 /* dock_gui.cpp */
36 
37 /* airport_gui.cpp */
39 
40 /* tgp_gui.cpp */
42 void ShowHeightmapLoad();
43 
44 /* misc_gui.cpp */
45 void ShowLandInfo(TileIndex tile);
46 void ShowAboutWindow();
47 void ShowBuildTreesToolbar();
48 void ShowTownDirectory();
49 void ShowIndustryDirectory();
51 void ShowSubsidiesList();
52 void ShowGoalsList(CompanyID company);
53 void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question);
54 void ShowStoryBook(CompanyID company, uint16 page_id = INVALID_STORY_PAGE);
55 
56 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
57 
60 
61 /* bridge_gui.cpp */
62 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
63 
64 void ShowBuildIndustryWindow();
65 void ShowFoundTownWindow();
66 void ShowMusicWindow();
67 
68 #endif /* GUI_H */
Owner
Enum for all companies/owners.
Definition: company_type.h:18
void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question)
Display a goal question.
Definition: goal_gui.cpp:483
void ShowGoalsList(CompanyID company)
Open a goal list window.
Definition: goal_gui.cpp:345
Base types related to transport.
Vehicle data structure.
Definition: vehicle_base.h:210
basic types related to story pages
void ShowHeightmapLoad()
Start with loading a heightmap.
void ShowLandInfo(TileIndex tile)
Show land information window.
Definition: misc_gui.cpp:384
Data structure for an opened window.
Definition: window_gui.h:276
Types related to the economy.
Window * ShowBuildAirToolbar()
Open the build airport toolbar window.
void ShowGenerateLandscape()
Start with a normal game.
void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type)
Prepare the data for the build a bridge window.
Definition: bridge_gui.cpp:361
void ShowExtraViewPortWindow(TileIndex tile=INVALID_TILE)
Show a new Extra Viewport window.
static const StoryPageID INVALID_STORY_PAGE
Constant representing a non-existing story page.
Definition: story_type.h:23
void ShowEstimatedCostOrIncome(Money cost, int x, int y)
Display estimated costs.
Definition: misc_gui.cpp:557
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:78
void ShowIndustryCargoesWindow()
Open the industry and cargoes window with an industry.
Types related to vehicles.
TransportType
Available types of transport.
Window * ShowBuildDocksScenToolbar()
Open the build water toolbar window for the scenario editor.
Definition: dock_gui.cpp:388
void ShowStoryBook(CompanyID company, uint16 page_id=INVALID_STORY_PAGE)
Raise or create the story book window for company, at page page_id.
Definition: story_gui.cpp:750
Window * ShowBuildDocksToolbar()
Open the build water toolbar window.
Definition: dock_gui.cpp:347
Types related to companies.
void ShowGameSettings()
Open advanced settings window.
static const TileIndex INVALID_TILE
The very nice invalid tile marker.
Definition: tile_type.h:83
void ShowExtraViewPortWindowForTileUnderCursor()
Show a new Extra Viewport window.
void ShowGameOptions()
Open the game options window.
Types related to tiles.