OpenTTD Source  12.0-beta2
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 InitializeGUI();
24 
25 /* settings_gui.cpp */
26 void ShowGameOptions();
27 void ShowGameSettings();
28 
29 /* train_gui.cpp */
30 void ShowOrdersWindow(const Vehicle *v);
31 
32 /* dock_gui.cpp */
35 
36 /* airport_gui.cpp */
38 
39 /* tgp_gui.cpp */
41 void ShowHeightmapLoad();
42 
43 /* misc_gui.cpp */
44 void ShowLandInfo(TileIndex tile);
45 void ShowAboutWindow();
46 void ShowBuildTreesToolbar();
47 void ShowTownDirectory();
48 void ShowIndustryDirectory();
50 void ShowSubsidiesList();
51 void ShowGoalsList(CompanyID company);
52 void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question);
53 void ShowStoryBook(CompanyID company, uint16 page_id = INVALID_STORY_PAGE);
54 
55 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
56 
59 
60 /* bridge_gui.cpp */
61 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
62 
63 void ShowBuildIndustryWindow();
64 void ShowFoundTownWindow();
65 void ShowMusicWindow();
66 
67 #endif /* GUI_H */
ShowIndustryCargoesWindow
void ShowIndustryCargoesWindow()
Open the industry and cargoes window with an industry.
Definition: industry_gui.cpp:3169
TileIndex
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:83
transport_type.h
ShowBuildAirToolbar
Window * ShowBuildAirToolbar()
Open the build airport toolbar window.
Definition: airport_gui.cpp:217
ShowExtraViewportWindow
void ShowExtraViewportWindow(TileIndex tile=INVALID_TILE)
Show a new Extra Viewport window.
Definition: viewport_gui.cpp:168
ShowBuildDocksScenToolbar
Window * ShowBuildDocksScenToolbar()
Open the build water toolbar window for the scenario editor.
Definition: dock_gui.cpp:399
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:1062
ShowGoalsList
void ShowGoalsList(CompanyID company)
Open a goal list window.
Definition: goal_gui.cpp:320
ShowGameOptions
void ShowGameOptions()
Open the game options window.
Definition: settings_gui.cpp:745
ShowLandInfo
void ShowLandInfo(TileIndex tile)
Show land information window.
Definition: misc_gui.cpp:377
ShowGameSettings
void ShowGameSettings()
Open advanced settings window.
Definition: settings_gui.cpp:2485
TransportType
TransportType
Available types of transport.
Definition: transport_type.h:19
ShowGenerateLandscape
void ShowGenerateLandscape()
Start with a normal game.
Definition: genworld_gui.cpp:1000
Vehicle
Vehicle data structure.
Definition: vehicle_base.h:221
Owner
Owner
Enum for all companies/owners.
Definition: company_type.h:18
ShowExtraViewportWindowForTileUnderCursor
void ShowExtraViewportWindowForTileUnderCursor()
Show a new Extra Viewport window.
Definition: viewport_gui.cpp:183
story_type.h
vehicle_type.h
tile_type.h
ShowGoalQuestion
void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question)
Display a goal question.
Definition: goal_gui.cpp:561
ShowEstimatedCostOrIncome
void ShowEstimatedCostOrIncome(Money cost, int x, int y)
Display estimated costs.
Definition: misc_gui.cpp:554
INVALID_STORY_PAGE
static const StoryPageID INVALID_STORY_PAGE
Constant representing a non-existing story page.
Definition: story_type.h:23
OverflowSafeInt< int64 >
INVALID_TILE
static const TileIndex INVALID_TILE
The very nice invalid tile marker.
Definition: tile_type.h:88
Window
Data structure for an opened window.
Definition: window_gui.h:279
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
economy_type.h
ShowBuildDocksToolbar
Window * ShowBuildDocksToolbar()
Open the build water toolbar window.
Definition: dock_gui.cpp:358
company_type.h
ShowHeightmapLoad
void ShowHeightmapLoad()
Start with loading a heightmap.
Definition: genworld_gui.cpp:1006