OpenTTD Source: src/gui.h Source File

OpenTTD Source 15.0-beta1

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
20struct Window;
21
22/* main_gui.cpp */
23void InitializeGUI();
24
25/* settings_gui.cpp */
26void ShowGameOptions();
27void ShowGameSettings();
28
29/* train_gui.cpp */
30void ShowOrdersWindow(const Vehicle *v);
31
32/* dock_gui.cpp */
33 Window *ShowBuildDocksToolbar();
34 Window *ShowBuildDocksScenToolbar();
35
36/* airport_gui.cpp */
37 Window *ShowBuildAirToolbar();
38
39/* tgp_gui.cpp */
40void ShowGenerateLandscape();
41void ShowHeightmapLoad();
42
43/* misc_gui.cpp */
44void ShowLandInfo(TileIndex tile);
45void ShowAboutWindow();
46void ShowEstimatedCostOrIncome(Money cost, int x, int y);
47
48/* tree_gui.cpp */
49void ShowBuildTreesToolbar();
50
51/* town_gui.cpp */
52void ShowTownDirectory();
53void ShowFoundTownWindow();
54
55/* industry_gui.cpp */
56void ShowIndustryDirectory();
57void ShowIndustryCargoesWindow();
58void ShowBuildIndustryWindow();
59
60/* subsidy_gui.cpp */
61void ShowSubsidiesList();
62
63/* goal_gui.cpp */
64void ShowGoalsList(CompanyID company);
65void ShowGoalQuestion(uint16_t id, uint8_t type, uint32_t button_mask, const std::string &question);
66
67/* story_gui.cpp */
68void ShowStoryBook(CompanyID company, uint16_t page_id = INVALID_STORY_PAGE, bool centered = false);
69
70/* viewport_gui.cpp */
71void ShowExtraViewportWindow(TileIndex tile = INVALID_TILE);
72void ShowExtraViewportWindowForTileUnderCursor();
73
74/* bridge_gui.cpp */
75void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, uint8_t bridge_type);
76
77/* music_gui.cpp */
78void ShowMusicWindow();
79
80#endif /* GUI_H */
OverflowSafeInt< int64_t >
company_type.h
Types related to companies.
Owner
Owner
Enum for all companies/owners.
Definition company_type.h:18
economy_type.h
Types related to the economy.
ShowIndustryCargoesWindow
void ShowIndustryCargoesWindow()
Open the industry and cargoes window with an industry.
Definition industry_gui.cpp:3235
ShowGoalsList
void ShowGoalsList(CompanyID company)
Open a goal list window.
Definition goal_gui.cpp:316
ShowGenerateLandscape
void ShowGenerateLandscape()
Start with a normal game.
Definition genworld_gui.cpp:1045
ShowGoalQuestion
void ShowGoalQuestion(uint16_t id, uint8_t type, uint32_t button_mask, const std::string &question)
Display a goal question.
Definition goal_gui.cpp:482
ShowBuildAirToolbar
Window * ShowBuildAirToolbar()
Open the build airport toolbar window.
Definition airport_gui.cpp:226
ShowBuildDocksScenToolbar
Window * ShowBuildDocksScenToolbar()
Open the build water toolbar window for the scenario editor.
Definition dock_gui.cpp:403
ShowEstimatedCostOrIncome
void ShowEstimatedCostOrIncome(Money cost, int x, int y)
Display estimated costs.
Definition misc_gui.cpp:531
ShowBuildDocksToolbar
Window * ShowBuildDocksToolbar()
Open the build water toolbar window.
Definition dock_gui.cpp:362
ShowLandInfo
void ShowLandInfo(TileIndex tile)
Show land information window.
Definition misc_gui.cpp:359
ShowExtraViewportWindowForTileUnderCursor
void ShowExtraViewportWindowForTileUnderCursor()
Show a new Extra Viewport window.
Definition viewport_gui.cpp:171
ShowBuildBridgeWindow
void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, uint8_t bridge_type)
Prepare the data for the build a bridge window.
Definition bridge_gui.cpp:354
ShowExtraViewportWindow
void ShowExtraViewportWindow(TileIndex tile=INVALID_TILE)
Show a new Extra Viewport window.
Definition viewport_gui.cpp:156
ShowGameSettings
void ShowGameSettings()
Open advanced settings window.
Definition settings_gui.cpp:2911
ShowHeightmapLoad
void ShowHeightmapLoad()
Start with loading a heightmap.
Definition genworld_gui.cpp:1051
ShowStoryBook
void ShowStoryBook(CompanyID company, uint16_t page_id=INVALID_STORY_PAGE, bool centered=false)
Raise or create the story book window for company, at page page_id.
Definition story_gui.cpp:1051
ShowGameOptions
void ShowGameOptions()
Open the game options window.
Definition settings_gui.cpp:1200
story_type.h
basic types related to story pages
INVALID_STORY_PAGE
static const StoryPageID INVALID_STORY_PAGE
Constant representing a non-existing story page.
Definition story_type.h:22
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > >
Vehicle
Vehicle data structure.
Definition vehicle_base.h:244
Window
Data structure for an opened window.
Definition window_gui.h:273
Window::GetWidget
const NWID * GetWidget(WidgetID widnum) const
Get the nested widget with number widnum from the nested widget tree.
Definition window_gui.h:977
tile_type.h
Types related to tiles.
INVALID_TILE
constexpr TileIndex INVALID_TILE
The very nice invalid tile marker.
Definition tile_type.h:95
transport_type.h
Base types related to transport.
TransportType
TransportType
Available types of transport.
Definition transport_type.h:19
vehicle_type.h
Types related to vehicles.