OpenTTD
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 */
38 
39 /* airport_gui.cpp */
41 
42 /* tgp_gui.cpp */
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();
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 
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 */
void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question)
Display a goal question.
Definition: goal_gui.cpp:489
void ShowGoalsList(CompanyID company)
Open a goal list window.
Definition: goal_gui.cpp:351
Base types related to transport.
Vehicle data structure.
Definition: vehicle_base.h:212
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:366
Data structure for an opened window.
Definition: window_gui.h:271
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:25
void ShowEstimatedCostOrIncome(Money cost, int x, int y)
Display estimated costs.
Definition: misc_gui.cpp:535
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:80
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:387
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:766
Window * ShowBuildDocksToolbar()
Open the build water toolbar window.
Definition: dock_gui.cpp:346
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:85
void ShowExtraViewPortWindowForTileUnderCursor()
Show a new Extra Viewport window.
void ShowGameOptions()
Open the game options window.
Owner
Enum for all companies/owners.
Definition: company_type.h:20
Types related to tiles.