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 */
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 */
ShowGoalQuestion
void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question)
Display a goal question.
Definition: goal_gui.cpp:489
ShowGoalsList
void ShowGoalsList(CompanyID company)
Open a goal list window.
Definition: goal_gui.cpp:351
transport_type.h
Base types related to transport.
Vehicle
Vehicle data structure.
Definition: vehicle_base.h:212
story_type.h
basic types related to story pages
ShowHeightmapLoad
void ShowHeightmapLoad()
Start with loading a heightmap.
Definition: genworld_gui.cpp:858
ShowLandInfo
void ShowLandInfo(TileIndex tile)
Show land information window.
Definition: misc_gui.cpp:366
Window
Data structure for an opened window.
Definition: window_gui.h:271
economy_type.h
Types related to the economy.
ShowBuildAirToolbar
Window * ShowBuildAirToolbar()
Open the build airport toolbar window.
Definition: airport_gui.cpp:203
ShowGenerateLandscape
void ShowGenerateLandscape()
Start with a normal game.
Definition: genworld_gui.cpp:852
ShowBuildBridgeWindow
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
ShowExtraViewPortWindow
void ShowExtraViewPortWindow(TileIndex tile=INVALID_TILE)
Show a new Extra Viewport window.
Definition: viewport_gui.cpp:170
INVALID_STORY_PAGE
static const StoryPageID INVALID_STORY_PAGE
Constant representing a non-existing story page.
Definition: story_type.h:25
ShowEstimatedCostOrIncome
void ShowEstimatedCostOrIncome(Money cost, int x, int y)
Display estimated costs.
Definition: misc_gui.cpp:536
TileIndex
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:80
ShowIndustryCargoesWindow
void ShowIndustryCargoesWindow()
Open the industry and cargoes window with an industry.
Definition: industry_gui.cpp:2765
vehicle_type.h
Types related to vehicles.
TransportType
TransportType
Available types of transport.
Definition: transport_type.h:21
ShowBuildDocksScenToolbar
Window * ShowBuildDocksScenToolbar()
Open the build water toolbar window for the scenario editor.
Definition: dock_gui.cpp:387
ShowStoryBook
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
ShowBuildDocksToolbar
Window * ShowBuildDocksToolbar()
Open the build water toolbar window.
Definition: dock_gui.cpp:346
company_type.h
Types related to companies.
ShowGameSettings
void ShowGameSettings()
Open advanced settings window.
Definition: settings_gui.cpp:2375
INVALID_TILE
static const TileIndex INVALID_TILE
The very nice invalid tile marker.
Definition: tile_type.h:85
ShowExtraViewPortWindowForTileUnderCursor
void ShowExtraViewPortWindowForTileUnderCursor()
Show a new Extra Viewport window.
Definition: viewport_gui.cpp:185
ShowGameOptions
void ShowGameOptions()
Open the game options window.
Definition: settings_gui.cpp:665
Owner
Owner
Enum for all companies/owners.
Definition: company_type.h:20
tile_type.h
Types related to tiles.
OverflowSafeInt< int64, INT64_MAX, INT64_MIN >