OpenTTD Source 20260206-master-g4d4e37dbf1
toolbar_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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
10#ifndef TOOLBAR_GUI_H
11#define TOOLBAR_GUI_H
12
13#include "rail_type.h"
14#include "road_type.h"
15
16enum MainToolbarHotkeys : int32_t {
17 MTHK_PAUSE,
18 MTHK_FASTFORWARD,
19 MTHK_SETTINGS,
20 MTHK_SAVEGAME,
21 MTHK_LOADGAME,
22 MTHK_SMALLMAP,
23 MTHK_TOWNDIRECTORY,
24 MTHK_SUBSIDIES,
25 MTHK_STATIONS,
26 MTHK_FINANCES,
27 MTHK_COMPANIES,
28 MTHK_STORY,
29 MTHK_GOAL,
30 MTHK_GRAPHS,
31 MTHK_LEAGUE,
32 MTHK_INDUSTRIES,
33 MTHK_TRAIN_LIST,
34 MTHK_ROADVEH_LIST,
35 MTHK_SHIP_LIST,
36 MTHK_AIRCRAFT_LIST,
37 MTHK_ZOOM_IN,
38 MTHK_ZOOM_OUT,
39 MTHK_BUILD_RAIL,
40 MTHK_BUILD_ROAD,
41 MTHK_BUILD_TRAM,
42 MTHK_BUILD_DOCKS,
43 MTHK_BUILD_AIRPORT,
44 MTHK_BUILD_TREES,
45 MTHK_MUSIC,
46 MTHK_LANDINFO,
47 MTHK_SCRIPT_DEBUG,
48 MTHK_SMALL_SCREENSHOT,
49 MTHK_ZOOMEDIN_SCREENSHOT,
50 MTHK_DEFAULTZOOM_SCREENSHOT,
51 MTHK_GIANT_SCREENSHOT,
52 MTHK_CHEATS,
53 MTHK_TERRAFORM,
54 MTHK_EXTRA_VIEWPORT,
55 MTHK_CLIENT_LIST,
56 MTHK_SIGN_LIST
57};
58
59void AllocateToolbar();
63
64extern uint _toolbar_width;
65
69
70#endif /* TOOLBAR_GUI_H */
The different types of rail.
RailType
Enumeration for all possible railtypes.
Definition rail_type.h:25
Enums and other types related to roads.
RoadType
The different roadtypes we support.
Definition road_type.h:23
RailType _last_built_railtype
The most recently used type of rail.
uint _toolbar_width
Width of the toolbar, shared by statusbar.
RoadType _last_built_tramtype
The most recently used type of tram track.
RoadType _last_built_roadtype
The most recently used type of road.
void ToggleDirtyBlocks()
Toggle drawing of the dirty blocks.
void AllocateToolbar()
Allocate the toolbar.
void ToggleBoundingBoxes()
Toggle drawing of sprites' bounding boxes.
void ToggleWidgetOutlines()
Toggle drawing of widget outlines.