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/>.
10 /** @file script_window.hpp Everything to handle window interaction. */
12 #ifndef SCRIPT_WINDOW_HPP
13 #define SCRIPT_WINDOW_HPP
15 #include "script_object.hpp"
16 #include "../../window_type.h"
17 #include "../../gfx_type.h"
19 #include "../../widgets/ai_widget.h"
20 #include "../../widgets/airport_widget.h"
21 #include "../../widgets/autoreplace_widget.h"
22 #include "../../widgets/bootstrap_widget.h"
23 #include "../../widgets/bridge_widget.h"
24 #include "../../widgets/build_vehicle_widget.h"
25 #include "../../widgets/cheat_widget.h"
26 #include "../../widgets/company_widget.h"
27 #include "../../widgets/console_widget.h"
28 #include "../../widgets/date_widget.h"
29 #include "../../widgets/depot_widget.h"
30 #include "../../widgets/dock_widget.h"
31 #include "../../widgets/dropdown_widget.h"
32 #include "../../widgets/engine_widget.h"
33 #include "../../widgets/error_widget.h"
34 #include "../../widgets/fios_widget.h"
35 #include "../../widgets/genworld_widget.h"
36 #include "../../widgets/goal_widget.h"
37 #include "../../widgets/graph_widget.h"
38 #include "../../widgets/group_widget.h"
39 #include "../../widgets/highscore_widget.h"
40 #include "../../widgets/industry_widget.h"
41 #include "../../widgets/intro_widget.h"
42 #include "../../widgets/main_widget.h"
43 #include "../../widgets/misc_widget.h"
44 #include "../../widgets/music_widget.h"
45 #include "../../widgets/network_chat_widget.h"
46 #include "../../widgets/network_content_widget.h"
47 #include "../../widgets/network_widget.h"
48 #include "../../widgets/newgrf_debug_widget.h"
49 #include "../../widgets/newgrf_widget.h"
50 #include "../../widgets/news_widget.h"
51 #include "../../widgets/object_widget.h"
52 #include "../../widgets/order_widget.h"
53 #include "../../widgets/osk_widget.h"
54 #include "../../widgets/rail_widget.h"
55 #include "../../widgets/road_widget.h"
56 #include "../../widgets/settings_widget.h"
57 #include "../../widgets/sign_widget.h"
58 #include "../../widgets/smallmap_widget.h"
59 #include "../../widgets/station_widget.h"
60 #include "../../widgets/statusbar_widget.h"
61 #include "../../widgets/subsidy_widget.h"
62 #include "../../widgets/terraform_widget.h"
63 #include "../../widgets/timetable_widget.h"
64 #include "../../widgets/toolbar_widget.h"
65 #include "../../widgets/town_widget.h"
66 #include "../../widgets/transparency_widget.h"
67 #include "../../widgets/tree_widget.h"
68 #include "../../widgets/vehicle_widget.h"
69 #include "../../widgets/viewport_widget.h"
70 #include "../../widgets/waypoint_widget.h"
71 #include "../../widgets/link_graph_legend_widget.h"
72 #include "../../widgets/story_widget.h"
75 * Class that handles window interaction. A Window in OpenTTD has two imporant
76 * values. The WindowClass, and a Window number. The first indicates roughly
77 * which window it is. WC_TOWN_VIEW for example, is the view of a town.
78 * The Window number is a bit more complex, as it depends mostly on the
79 * WindowClass. For example for WC_TOWN_VIEW it is the TownID. In general a
80 * good rule of thumb is: either the number is always 0, or the ID of the
82 * In the comment at the widget enum, it is mentioned how the number is used.
84 * Note, that the detailed window layout is very version specific.
85 * Enum values might be added, changed or removed in future versions without notice
86 * in the changelog, and there won't be any means of compatibility.
90 class ScriptWindow
: public ScriptObject
{
92 // @enum WindowNumberEnum ../../window_type.h
93 /* automatically generated from ../../window_type.h */
94 /** %Window numbers. */
95 enum WindowNumberEnum
{
96 WN_GAME_OPTIONS_AI
= ::WN_GAME_OPTIONS_AI
, ///< AI settings.
97 WN_GAME_OPTIONS_ABOUT
= ::WN_GAME_OPTIONS_ABOUT
, ///< About window.
98 WN_GAME_OPTIONS_NEWGRF_STATE
= ::WN_GAME_OPTIONS_NEWGRF_STATE
, ///< NewGRF settings.
99 WN_GAME_OPTIONS_GAME_OPTIONS
= ::WN_GAME_OPTIONS_GAME_OPTIONS
, ///< Game options.
100 WN_GAME_OPTIONS_GAME_SETTINGS
= ::WN_GAME_OPTIONS_GAME_SETTINGS
, ///< Game settings.
102 WN_QUERY_STRING
= ::WN_QUERY_STRING
, ///< Query string.
103 WN_QUERY_STRING_SIGN
= ::WN_QUERY_STRING_SIGN
, ///< Query string for signs.
105 WN_CONFIRM_POPUP_QUERY
= ::WN_CONFIRM_POPUP_QUERY
, ///< Query popup confirm.
106 WN_CONFIRM_POPUP_QUERY_BOOTSTRAP
= ::WN_CONFIRM_POPUP_QUERY_BOOTSTRAP
, ///< Query popup confirm for bootstrap.
108 WN_NETWORK_WINDOW_GAME
= ::WN_NETWORK_WINDOW_GAME
, ///< Network game window.
109 WN_NETWORK_WINDOW_LOBBY
= ::WN_NETWORK_WINDOW_LOBBY
, ///< Network lobby window.
110 WN_NETWORK_WINDOW_CONTENT_LIST
= ::WN_NETWORK_WINDOW_CONTENT_LIST
, ///< Network content list.
111 WN_NETWORK_WINDOW_START
= ::WN_NETWORK_WINDOW_START
, ///< Network start server.
113 WN_NETWORK_STATUS_WINDOW_JOIN
= ::WN_NETWORK_STATUS_WINDOW_JOIN
, ///< Network join status.
114 WN_NETWORK_STATUS_WINDOW_CONTENT_DOWNLOAD
= ::WN_NETWORK_STATUS_WINDOW_CONTENT_DOWNLOAD
, ///< Network content download status.
119 // @enum WindowClass ../../window_type.h
120 /* automatically generated from ../../window_type.h */
121 /** %Window classes. */
123 WC_NONE
= ::WC_NONE
, ///< No window, redirects to WC_MAIN_WINDOW.
126 * Main window; %Window numbers:
129 WC_MAIN_WINDOW
= ::WC_MAIN_WINDOW
,
132 * Main toolbar (the long bar at the top); %Window numbers:
133 * - 0 = #ToolbarNormalWidgets
134 * - 0 = #ToolbarEditorWidgets
136 WC_MAIN_TOOLBAR
= ::WC_MAIN_TOOLBAR
,
139 * Statusbar (at the bottom of your screen); %Window numbers:
140 * - 0 = #StatusbarWidgets
142 WC_STATUS_BAR
= ::WC_STATUS_BAR
,
145 * Build toolbar; %Window numbers:
146 * - #TRANSPORT_RAIL = #RailToolbarWidgets
147 * - #TRANSPORT_AIR = #AirportToolbarWidgets
148 * - #TRANSPORT_WATER = #DockToolbarWidgets
149 * - #TRANSPORT_ROAD = #RoadToolbarWidgets
151 WC_BUILD_TOOLBAR
= ::WC_BUILD_TOOLBAR
,
154 * Scenario build toolbar; %Window numbers:
155 * - #TRANSPORT_WATER = #DockToolbarWidgets
156 * - #TRANSPORT_ROAD = #RoadToolbarWidgets
158 WC_SCEN_BUILD_TOOLBAR
= ::WC_SCEN_BUILD_TOOLBAR
,
161 * Build trees toolbar; %Window numbers:
162 * - 0 = #BuildTreesWidgets
164 WC_BUILD_TREES
= ::WC_BUILD_TREES
,
167 * Transparency toolbar; %Window numbers:
168 * - 0 = #TransparencyToolbarWidgets
170 WC_TRANSPARENCY_TOOLBAR
= ::WC_TRANSPARENCY_TOOLBAR
,
173 * Build signal toolbar; %Window numbers:
174 * - #TRANSPORT_RAIL = #BuildSignalWidgets
176 WC_BUILD_SIGNAL
= ::WC_BUILD_SIGNAL
,
179 * Small map; %Window numbers:
180 * - 0 = #SmallMapWidgets
182 WC_SMALLMAP
= ::WC_SMALLMAP
,
185 * Error message; %Window numbers:
186 * - 0 = #ErrorMessageWidgets
188 WC_ERRMSG
= ::WC_ERRMSG
,
191 * Tooltip window; %Window numbers:
192 * - 0 = #ToolTipsWidgets
194 WC_TOOLTIPS
= ::WC_TOOLTIPS
,
197 * Query string window; %Window numbers:
198 * - #WN_QUERY_STRING = #QueryStringWidgets
199 * - #WN_QUERY_STRING_SIGN = #QueryEditSignWidgets
201 WC_QUERY_STRING
= ::WC_QUERY_STRING
,
204 * Popup with confirm question; %Window numbers:
205 * - #WN_CONFIRM_POPUP_QUERY = #QueryWidgets
206 * - #WN_CONFIRM_POPUP_QUERY_BOOTSTRAP = #BootstrapAskForDownloadWidgets
208 WC_CONFIRM_POPUP_QUERY
= ::WC_CONFIRM_POPUP_QUERY
,
211 * Popup with a set of buttons, designed to ask the user a question
212 * from a GameScript. %Window numbers:
213 * - uniqueid = #GoalQuestionWidgets
215 WC_GOAL_QUESTION
= ::WC_GOAL_QUESTION
,
219 * Saveload window; %Window numbers:
220 * - 0 = #SaveLoadWidgets
222 WC_SAVELOAD
= ::WC_SAVELOAD
,
225 * Land info window; %Window numbers:
226 * - 0 = #LandInfoWidgets
228 WC_LAND_INFO
= ::WC_LAND_INFO
,
231 * Drop down menu; %Window numbers:
232 * - 0 = #DropdownMenuWidgets
234 WC_DROPDOWN_MENU
= ::WC_DROPDOWN_MENU
,
237 * On Screen Keyboard; %Window numbers:
238 * - 0 = #OnScreenKeyboardWidgets
243 * Set date; %Window numbers:
244 * - #VehicleID = #SetDateWidgets
246 WC_SET_DATE
= ::WC_SET_DATE
,
250 * AI settings; %Window numbers:
251 * - 0 = #AISettingsWidgets
253 WC_AI_SETTINGS
= ::WC_AI_SETTINGS
,
256 * NewGRF parameters; %Window numbers:
257 * - 0 = #NewGRFParametersWidgets
259 WC_GRF_PARAMETERS
= ::WC_GRF_PARAMETERS
,
262 * textfile; %Window numbers:
263 * - 0 = #TextfileWidgets
265 WC_TEXTFILE
= ::WC_TEXTFILE
,
269 * Town authority; %Window numbers:
270 * - #TownID = #TownAuthorityWidgets
272 WC_TOWN_AUTHORITY
= ::WC_TOWN_AUTHORITY
,
275 * Vehicle details; %Window numbers:
276 * - #VehicleID = #VehicleDetailsWidgets
278 WC_VEHICLE_DETAILS
= ::WC_VEHICLE_DETAILS
,
281 * Vehicle refit; %Window numbers:
282 * - #VehicleID = #VehicleRefitWidgets
284 WC_VEHICLE_REFIT
= ::WC_VEHICLE_REFIT
,
287 * Vehicle orders; %Window numbers:
288 * - #VehicleID = #OrderWidgets
290 WC_VEHICLE_ORDERS
= ::WC_VEHICLE_ORDERS
,
293 * Replace vehicle window; %Window numbers:
294 * - #VehicleType = #ReplaceVehicleWidgets
296 WC_REPLACE_VEHICLE
= ::WC_REPLACE_VEHICLE
,
299 * Vehicle timetable; %Window numbers:
300 * - #VehicleID = #VehicleTimetableWidgets
302 WC_VEHICLE_TIMETABLE
= ::WC_VEHICLE_TIMETABLE
,
305 * Company colour selection; %Window numbers:
306 * - #CompanyID = #SelectCompanyLiveryWidgets
308 WC_COMPANY_COLOUR
= ::WC_COMPANY_COLOUR
,
311 * Alter company face window; %Window numbers:
312 * - #CompanyID = #SelectCompanyManagerFaceWidgets
314 WC_COMPANY_MANAGER_FACE
= ::WC_COMPANY_MANAGER_FACE
,
317 * Select station (when joining stations); %Window numbers:
318 * - 0 = #JoinStationWidgets
320 WC_SELECT_STATION
= ::WC_SELECT_STATION
,
323 * News window; %Window numbers:
326 WC_NEWS_WINDOW
= ::WC_NEWS_WINDOW
,
329 * Town directory; %Window numbers:
330 * - 0 = #TownDirectoryWidgets
332 WC_TOWN_DIRECTORY
= ::WC_TOWN_DIRECTORY
,
335 * Subsidies list; %Window numbers:
336 * - 0 = #SubsidyListWidgets
338 WC_SUBSIDIES_LIST
= ::WC_SUBSIDIES_LIST
,
341 * Industry directory; %Window numbers:
342 * - 0 = #IndustryDirectoryWidgets
344 WC_INDUSTRY_DIRECTORY
= ::WC_INDUSTRY_DIRECTORY
,
347 * News history list; %Window numbers:
348 * - 0 = #MessageHistoryWidgets
350 WC_MESSAGE_HISTORY
= ::WC_MESSAGE_HISTORY
,
353 * Sign list; %Window numbers:
354 * - 0 = #SignListWidgets
356 WC_SIGN_LIST
= ::WC_SIGN_LIST
,
359 * AI list; %Window numbers:
360 * - 0 = #AIListWidgets
362 WC_AI_LIST
= ::WC_AI_LIST
,
365 * Goals list; %Window numbers:
366 * - 0 ; #GoalListWidgets
368 WC_GOALS_LIST
= ::WC_GOALS_LIST
,
371 * Story book; %Window numbers:
372 * - CompanyID = #StoryBookWidgets
374 WC_STORY_BOOK
= ::WC_STORY_BOOK
,
377 * Station list; %Window numbers:
378 * - #CompanyID = #StationListWidgets
380 WC_STATION_LIST
= ::WC_STATION_LIST
,
383 * Trains list; %Window numbers:
384 * - Packed value = #GroupListWidgets / #VehicleListWidgets
386 WC_TRAINS_LIST
= ::WC_TRAINS_LIST
,
389 * Road vehicle list; %Window numbers:
390 * - Packed value = #GroupListWidgets / #VehicleListWidgets
392 WC_ROADVEH_LIST
= ::WC_ROADVEH_LIST
,
395 * Ships list; %Window numbers:
396 * - Packed value = #GroupListWidgets / #VehicleListWidgets
398 WC_SHIPS_LIST
= ::WC_SHIPS_LIST
,
401 * Aircraft list; %Window numbers:
402 * - Packed value = #GroupListWidgets / #VehicleListWidgets
404 WC_AIRCRAFT_LIST
= ::WC_AIRCRAFT_LIST
,
408 * Town view; %Window numbers:
409 * - #TownID = #TownViewWidgets
411 WC_TOWN_VIEW
= ::WC_TOWN_VIEW
,
414 * Vehicle view; %Window numbers:
415 * - #VehicleID = #VehicleViewWidgets
417 WC_VEHICLE_VIEW
= ::WC_VEHICLE_VIEW
,
420 * Station view; %Window numbers:
421 * - #StationID = #StationViewWidgets
423 WC_STATION_VIEW
= ::WC_STATION_VIEW
,
426 * Depot view; %Window numbers:
427 * - #TileIndex = #DepotWidgets
429 WC_VEHICLE_DEPOT
= ::WC_VEHICLE_DEPOT
,
432 * Waypoint view; %Window numbers:
433 * - #WaypointID = #WaypointWidgets
435 WC_WAYPOINT_VIEW
= ::WC_WAYPOINT_VIEW
,
438 * Industry view; %Window numbers:
439 * - #IndustryID = #IndustryViewWidgets
441 WC_INDUSTRY_VIEW
= ::WC_INDUSTRY_VIEW
,
444 * Company view; %Window numbers:
445 * - #CompanyID = #CompanyWidgets
447 WC_COMPANY
= ::WC_COMPANY
,
451 * Build object; %Window numbers:
452 * - 0 = #BuildObjectWidgets
454 WC_BUILD_OBJECT
= ::WC_BUILD_OBJECT
,
457 * Build vehicle; %Window numbers:
458 * - #VehicleType = #BuildVehicleWidgets
459 * - #TileIndex = #BuildVehicleWidgets
461 WC_BUILD_VEHICLE
= ::WC_BUILD_VEHICLE
,
464 * Build bridge; %Window numbers:
465 * - #TransportType = #BuildBridgeSelectionWidgets
467 WC_BUILD_BRIDGE
= ::WC_BUILD_BRIDGE
,
470 * Build station; %Window numbers:
471 * - #TRANSPORT_AIR = #AirportPickerWidgets
472 * - #TRANSPORT_WATER = #DockToolbarWidgets
473 * - #TRANSPORT_RAIL = #BuildRailStationWidgets
475 WC_BUILD_STATION
= ::WC_BUILD_STATION
,
478 * Build bus station; %Window numbers:
479 * - #TRANSPORT_ROAD = #BuildRoadStationWidgets
481 WC_BUS_STATION
= ::WC_BUS_STATION
,
484 * Build truck station; %Window numbers:
485 * - #TRANSPORT_ROAD = #BuildRoadStationWidgets
487 WC_TRUCK_STATION
= ::WC_TRUCK_STATION
,
490 * Build depot; %Window numbers:
491 * - #TRANSPORT_WATER = #BuildDockDepotWidgets
492 * - #TRANSPORT_RAIL = #BuildRailDepotWidgets
493 * - #TRANSPORT_ROAD = #BuildRoadDepotWidgets
495 WC_BUILD_DEPOT
= ::WC_BUILD_DEPOT
,
498 * Build waypoint; %Window numbers:
499 * - #TRANSPORT_RAIL = #BuildRailWaypointWidgets
501 WC_BUILD_WAYPOINT
= ::WC_BUILD_WAYPOINT
,
504 * Found a town; %Window numbers:
505 * - 0 = #TownFoundingWidgets
507 WC_FOUND_TOWN
= ::WC_FOUND_TOWN
,
510 * Build industry; %Window numbers:
511 * - 0 = #DynamicPlaceIndustriesWidgets
513 WC_BUILD_INDUSTRY
= ::WC_BUILD_INDUSTRY
,
517 * Select game window; %Window numbers:
518 * - 0 = #SelectGameIntroWidgets
520 WC_SELECT_GAME
= ::WC_SELECT_GAME
,
523 * Landscape generation (in Scenario Editor); %Window numbers:
524 * - 0 = #TerraformToolbarWidgets
525 * - 0 = #EditorTerraformToolbarWidgets
527 WC_SCEN_LAND_GEN
= ::WC_SCEN_LAND_GEN
,
530 * Generate landscape (newgame); %Window numbers:
531 * - GLWM_SCENARIO = #CreateScenarioWidgets
532 * - #GenerateLandscapeWindowMode = #GenerateLandscapeWidgets
534 WC_GENERATE_LANDSCAPE
= ::WC_GENERATE_LANDSCAPE
,
537 * Progress report of landscape generation; %Window numbers:
538 * - 0 = #GenerationProgressWidgets
539 * - 1 = #ScanProgressWidgets
541 WC_MODAL_PROGRESS
= ::WC_MODAL_PROGRESS
,
545 * Network window; %Window numbers:
546 * - #WN_NETWORK_WINDOW_GAME = #NetworkGameWidgets
547 * - #WN_NETWORK_WINDOW_LOBBY = #NetworkLobbyWidgets
548 * - #WN_NETWORK_WINDOW_CONTENT_LIST = #NetworkContentListWidgets
549 * - #WN_NETWORK_WINDOW_START = #NetworkStartServerWidgets
551 WC_NETWORK_WINDOW
= ::WC_NETWORK_WINDOW
,
554 * Client list; %Window numbers:
555 * - 0 = #ClientListWidgets
557 WC_CLIENT_LIST
= ::WC_CLIENT_LIST
,
560 * Popup for the client list; %Window numbers:
561 * - #ClientID = #ClientListPopupWidgets
563 WC_CLIENT_LIST_POPUP
= ::WC_CLIENT_LIST_POPUP
,
566 * Network status window; %Window numbers:
567 * - #WN_NETWORK_STATUS_WINDOW_JOIN = #NetworkJoinStatusWidgets
568 * - #WN_NETWORK_STATUS_WINDOW_CONTENT_DOWNLOAD = #NetworkContentDownloadStatusWidgets
570 WC_NETWORK_STATUS_WINDOW
= ::WC_NETWORK_STATUS_WINDOW
,
573 * Chatbox; %Window numbers:
574 * - #DestType = #NetWorkChatWidgets
576 WC_SEND_NETWORK_MSG
= ::WC_SEND_NETWORK_MSG
,
579 * Company password query; %Window numbers:
580 * - 0 = #NetworkCompanyPasswordWidgets
582 WC_COMPANY_PASSWORD_WINDOW
= ::WC_COMPANY_PASSWORD_WINDOW
,
586 * Industry cargoes chain; %Window numbers:
587 * - 0 = #IndustryCargoesWidgets
589 WC_INDUSTRY_CARGOES
= ::WC_INDUSTRY_CARGOES
,
592 * Legend for graphs; %Window numbers:
593 * - 0 = #GraphLegendWidgets
595 WC_GRAPH_LEGEND
= ::WC_GRAPH_LEGEND
,
598 * Finances of a company; %Window numbers:
599 * - #CompanyID = #CompanyWidgets
601 WC_FINANCES
= ::WC_FINANCES
,
604 * Income graph; %Window numbers:
605 * - 0 = #CompanyValueWidgets
607 WC_INCOME_GRAPH
= ::WC_INCOME_GRAPH
,
610 * Operating profit graph; %Window numbers:
611 * - 0 = #CompanyValueWidgets
613 WC_OPERATING_PROFIT
= ::WC_OPERATING_PROFIT
,
616 * Delivered cargo graph; %Window numbers:
617 * - 0 = #CompanyValueWidgets
619 WC_DELIVERED_CARGO
= ::WC_DELIVERED_CARGO
,
622 * Performance history graph; %Window numbers:
623 * - 0 = #PerformanceHistoryGraphWidgets
625 WC_PERFORMANCE_HISTORY
= ::WC_PERFORMANCE_HISTORY
,
628 * Company value graph; %Window numbers:
629 * - 0 = #CompanyValueWidgets
631 WC_COMPANY_VALUE
= ::WC_COMPANY_VALUE
,
634 * Company league window; %Window numbers:
635 * - 0 = #CompanyLeagueWidgets
637 WC_COMPANY_LEAGUE
= ::WC_COMPANY_LEAGUE
,
640 * Payment rates graph; %Window numbers:
641 * - 0 = #CargoPaymentRatesWidgets
643 WC_PAYMENT_RATES
= ::WC_PAYMENT_RATES
,
646 * Performance detail window; %Window numbers:
647 * - 0 = #PerformanceRatingDetailsWidgets
649 WC_PERFORMANCE_DETAIL
= ::WC_PERFORMANCE_DETAIL
,
652 * Company infrastructure overview; %Window numbers:
653 * - #CompanyID = #CompanyInfrastructureWidgets
655 WC_COMPANY_INFRASTRUCTURE
= ::WC_COMPANY_INFRASTRUCTURE
,
659 * Buyout company (merger); %Window numbers:
660 * - #CompanyID = #BuyCompanyWidgets
662 WC_BUY_COMPANY
= ::WC_BUY_COMPANY
,
665 * Engine preview window; %Window numbers:
666 * - #EngineID = #EnginePreviewWidgets
668 WC_ENGINE_PREVIEW
= ::WC_ENGINE_PREVIEW
,
672 * Music window; %Window numbers:
673 * - 0 = #MusicWidgets
675 WC_MUSIC_WINDOW
= ::WC_MUSIC_WINDOW
,
678 * Music track selection; %Window numbers:
679 * - 0 = MusicTrackSelectionWidgets
681 WC_MUSIC_TRACK_SELECTION
= ::WC_MUSIC_TRACK_SELECTION
,
684 * Game options window; %Window numbers:
685 * - #WN_GAME_OPTIONS_AI = #AIConfigWidgets
686 * - #WN_GAME_OPTIONS_ABOUT = #AboutWidgets
687 * - #WN_GAME_OPTIONS_NEWGRF_STATE = #NewGRFStateWidgets
688 * - #WN_GAME_OPTIONS_GAME_OPTIONS = #GameOptionsWidgets
689 * - #WN_GAME_OPTIONS_GAME_SETTINGS = #GameSettingsWidgets
691 WC_GAME_OPTIONS
= ::WC_GAME_OPTIONS
,
694 * Custom currency; %Window numbers:
695 * - 0 = #CustomCurrencyWidgets
697 WC_CUSTOM_CURRENCY
= ::WC_CUSTOM_CURRENCY
,
700 * Cheat window; %Window numbers:
701 * - 0 = #CheatWidgets
703 WC_CHEATS
= ::WC_CHEATS
,
706 * Extra viewport; %Window numbers:
707 * - Ascending value = #ExtraViewportWidgets
709 WC_EXTRA_VIEW_PORT
= ::WC_EXTRA_VIEW_PORT
,
713 * Console; %Window numbers:
714 * - 0 = #ConsoleWidgets
716 WC_CONSOLE
= ::WC_CONSOLE
,
719 * Bootstrap; %Window numbers:
720 * - 0 = #BootstrapBackgroundWidgets
722 WC_BOOTSTRAP
= ::WC_BOOTSTRAP
,
725 * Highscore; %Window numbers:
726 * - 0 = #HighscoreWidgets
728 WC_HIGHSCORE
= ::WC_HIGHSCORE
,
731 * Endscreen; %Window numbers:
732 * - 0 = #HighscoreWidgets
734 WC_ENDSCREEN
= ::WC_ENDSCREEN
,
738 * AI debug window; %Window numbers:
739 * - 0 = #AIDebugWidgets
741 WC_AI_DEBUG
= ::WC_AI_DEBUG
,
744 * NewGRF inspect (debug); %Window numbers:
745 * - Packed value = #NewGRFInspectWidgets
747 WC_NEWGRF_INSPECT
= ::WC_NEWGRF_INSPECT
,
750 * Sprite aligner (debug); %Window numbers:
751 * - 0 = #SpriteAlignerWidgets
753 WC_SPRITE_ALIGNER
= ::WC_SPRITE_ALIGNER
,
756 * Linkgraph legend; %Window numbers:
757 * - 0 = #LinkGraphWidgets
759 WC_LINKGRAPH_LEGEND
= ::WC_LINKGRAPH_LEGEND
,
762 * Save preset; %Window numbers:
763 * - 0 = #SavePresetWidgets
765 WC_SAVE_PRESET
= ::WC_SAVE_PRESET
,
767 WC_INVALID
= ::WC_INVALID
, ///< Invalid window.
773 * The colours in the game which you can use for text and highlights.
776 /* Note: these values represent part of the in-game TextColour enum */
777 TC_BLUE
= ::TC_BLUE
, ///< Blue colour.
778 TC_SILVER
= ::TC_SILVER
, ///< Silver colour.
779 TC_GOLD
= ::TC_GOLD
, ///< Gold colour.
780 TC_RED
= ::TC_RED
, ///< Red colour.
781 TC_PURPLE
= ::TC_PURPLE
, ///< Purple colour.
782 TC_LIGHT_BROWN
= ::TC_LIGHT_BROWN
, ///< Light brown colour.
783 TC_ORANGE
= ::TC_ORANGE
, ///< Orange colour.
784 TC_GREEN
= ::TC_GREEN
, ///< Green colour.
785 TC_YELLOW
= ::TC_YELLOW
, ///< Yellow colour.
786 TC_DARK_GREEN
= ::TC_DARK_GREEN
, ///< Dark green colour.
787 TC_CREAM
= ::TC_CREAM
, ///< Cream colour.
788 TC_BROWN
= ::TC_BROWN
, ///< Brown colour.
789 TC_WHITE
= ::TC_WHITE
, ///< White colour.
790 TC_LIGHT_BLUE
= ::TC_LIGHT_BLUE
, ///< Light blue colour.
791 TC_GREY
= ::TC_GREY
, ///< Grey colour.
792 TC_DARK_BLUE
= ::TC_DARK_BLUE
, ///< Dark blue colour.
793 TC_BLACK
= ::TC_BLACK
, ///< Black colour.
794 TC_INVALID
= ::TC_INVALID
, ///< Invalid colour.
798 * Special number values.
801 NUMBER_ALL
= 0xFFFFFFFF, ///< Value to select all windows of a class.
805 * Special widget values.
808 WIDGET_ALL
= 0xFF, ///< Value to select all widgets of a window.
813 * @param window The class of the window to close.
814 * @param number The number of the window to close, or NUMBER_ALL to close all of this class.
815 * @pre !ScriptGame::IsMultiplayer().
817 static void Close(WindowClass window
, uint32 number
);
820 * Check if a window is open.
821 * @param window The class of the window to check for.
822 * @param number The number of the window to check for, or NUMBER_ALL to check for any in the class.
823 * @pre !ScriptGame::IsMultiplayer().
824 * @return True if the window is open.
826 static bool IsOpen(WindowClass window
, uint32 number
);
829 * Highlight a widget in a window.
830 * @param window The class of the window to highlight a widget in.
831 * @param number The number of the window to highlight a widget in.
832 * @param widget The widget in the window to highlight, or WIDGET_ALL (in combination with TC_INVALID) to disable all widget highlighting on this window.
833 * @param colour The colour of the highlight, or TC_INVALID for disabling.
834 * @pre !ScriptGame::IsMultiplayer().
835 * @pre number != NUMBER_ALL.
836 * @pre colour < TC_END || (widget == WIDGET_ALL && colour == TC_INVALID).
837 * @pre IsOpen(window, number).
839 static void Highlight(WindowClass window
, uint32 number
, uint8 widget
, TextColour colour
);
841 // @enum .*Widgets ../../widgets/*_widget.h
842 /* automatically generated from ../../widgets/ai_widget.h */
843 /** Widgets of the #AIListWindow class. */
845 WID_AIL_CAPTION
= ::WID_AIL_CAPTION
, ///< Caption of the window.
846 WID_AIL_LIST
= ::WID_AIL_LIST
, ///< The matrix with all available AIs.
847 WID_AIL_SCROLLBAR
= ::WID_AIL_SCROLLBAR
, ///< Scrollbar next to the AI list.
848 WID_AIL_INFO_BG
= ::WID_AIL_INFO_BG
, ///< Panel to draw some AI information on.
849 WID_AIL_ACCEPT
= ::WID_AIL_ACCEPT
, ///< Accept button.
850 WID_AIL_CANCEL
= ::WID_AIL_CANCEL
, ///< Cancel button.
853 /** Widgets of the #AISettingsWindow class. */
854 enum AISettingsWidgets
{
855 WID_AIS_CAPTION
= ::WID_AIS_CAPTION
, ///< Caption of the window.
856 WID_AIS_BACKGROUND
= ::WID_AIS_BACKGROUND
, ///< Panel to draw the settings on.
857 WID_AIS_SCROLLBAR
= ::WID_AIS_SCROLLBAR
, ///< Scrollbar to scroll through all settings.
858 WID_AIS_ACCEPT
= ::WID_AIS_ACCEPT
, ///< Accept button.
859 WID_AIS_RESET
= ::WID_AIS_RESET
, ///< Reset button.
862 /** Widgets of the #AIConfigWindow class. */
863 enum AIConfigWidgets
{
864 WID_AIC_BACKGROUND
= ::WID_AIC_BACKGROUND
, ///< Window background.
865 WID_AIC_DECREASE
= ::WID_AIC_DECREASE
, ///< Decrease the number of AIs.
866 WID_AIC_INCREASE
= ::WID_AIC_INCREASE
, ///< Increase the number of AIs.
867 WID_AIC_NUMBER
= ::WID_AIC_NUMBER
, ///< Number of AIs.
868 WID_AIC_GAMELIST
= ::WID_AIC_GAMELIST
, ///< List with current selected GameScript.
869 WID_AIC_LIST
= ::WID_AIC_LIST
, ///< List with currently selected AIs.
870 WID_AIC_SCROLLBAR
= ::WID_AIC_SCROLLBAR
, ///< Scrollbar to scroll through the selected AIs.
871 WID_AIC_MOVE_UP
= ::WID_AIC_MOVE_UP
, ///< Move up button.
872 WID_AIC_MOVE_DOWN
= ::WID_AIC_MOVE_DOWN
, ///< Move down button.
873 WID_AIC_CHANGE
= ::WID_AIC_CHANGE
, ///< Select another AI button.
874 WID_AIC_CONFIGURE
= ::WID_AIC_CONFIGURE
, ///< Change AI settings button.
875 WID_AIC_CLOSE
= ::WID_AIC_CLOSE
, ///< Close window button.
876 WID_AIC_TEXTFILE
= ::WID_AIC_TEXTFILE
, ///< Open AI readme, changelog (+1) or license (+2).
877 WID_AIC_CONTENT_DOWNLOAD
= ::WID_AIC_CONTENT_DOWNLOAD
, ///< Download content button.
880 /** Widgets of the #AIDebugWindow class. */
881 enum AIDebugWidgets
{
882 WID_AID_VIEW
= ::WID_AID_VIEW
, ///< The row of company buttons.
883 WID_AID_NAME_TEXT
= ::WID_AID_NAME_TEXT
, ///< Name of the current selected.
884 WID_AID_SETTINGS
= ::WID_AID_SETTINGS
, ///< Settings button.
885 WID_AID_SCRIPT_GAME
= ::WID_AID_SCRIPT_GAME
, ///< Game Script button.
886 WID_AID_RELOAD_TOGGLE
= ::WID_AID_RELOAD_TOGGLE
, ///< Reload button.
887 WID_AID_LOG_PANEL
= ::WID_AID_LOG_PANEL
, ///< Panel where the log is in.
888 WID_AID_SCROLLBAR
= ::WID_AID_SCROLLBAR
, ///< Scrollbar of the log panel.
889 WID_AID_COMPANY_BUTTON_START
= ::WID_AID_COMPANY_BUTTON_START
, ///< Buttons in the VIEW.
890 WID_AID_COMPANY_BUTTON_END
= ::WID_AID_COMPANY_BUTTON_END
, ///< Last possible button in the VIEW.
891 WID_AID_BREAK_STRING_WIDGETS
= ::WID_AID_BREAK_STRING_WIDGETS
, ///< The panel to handle the breaking on string.
892 WID_AID_BREAK_STR_ON_OFF_BTN
= ::WID_AID_BREAK_STR_ON_OFF_BTN
, ///< Enable breaking on string.
893 WID_AID_BREAK_STR_EDIT_BOX
= ::WID_AID_BREAK_STR_EDIT_BOX
, ///< Edit box for the string to break on.
894 WID_AID_MATCH_CASE_BTN
= ::WID_AID_MATCH_CASE_BTN
, ///< Checkbox to use match caching or not.
895 WID_AID_CONTINUE_BTN
= ::WID_AID_CONTINUE_BTN
, ///< Continue button.
898 /* automatically generated from ../../widgets/airport_widget.h */
899 /** Widgets of the #BuildAirToolbarWindow class. */
900 enum AirportToolbarWidgets
{
901 WID_AT_AIRPORT
= ::WID_AT_AIRPORT
, ///< Build airport button.
902 WID_AT_DEMOLISH
= ::WID_AT_DEMOLISH
, ///< Demolish button.
905 /** Widgets of the #BuildAirportWindow class. */
906 enum AirportPickerWidgets
{
907 WID_AP_CLASS_DROPDOWN
= ::WID_AP_CLASS_DROPDOWN
, ///< Dropdown of airport classes.
908 WID_AP_AIRPORT_LIST
= ::WID_AP_AIRPORT_LIST
, ///< List of airports.
909 WID_AP_SCROLLBAR
= ::WID_AP_SCROLLBAR
, ///< Scrollbar of the list.
910 WID_AP_LAYOUT_NUM
= ::WID_AP_LAYOUT_NUM
, ///< Current number of the layout.
911 WID_AP_LAYOUT_DECREASE
= ::WID_AP_LAYOUT_DECREASE
, ///< Decrease the layout number.
912 WID_AP_LAYOUT_INCREASE
= ::WID_AP_LAYOUT_INCREASE
, ///< Increase the layout number.
913 WID_AP_AIRPORT_SPRITE
= ::WID_AP_AIRPORT_SPRITE
, ///< A visual display of the airport currently selected.
914 WID_AP_EXTRA_TEXT
= ::WID_AP_EXTRA_TEXT
, ///< Additional text about the airport.
915 WID_AP_BOTTOMPANEL
= ::WID_AP_BOTTOMPANEL
, ///< Panel at the bottom.
916 WID_AP_COVERAGE_LABEL
= ::WID_AP_COVERAGE_LABEL
, ///< Label if you want to see the coverage.
917 WID_AP_BTN_DONTHILIGHT
= ::WID_AP_BTN_DONTHILIGHT
, ///< Don't show the coverage button.
918 WID_AP_BTN_DOHILIGHT
= ::WID_AP_BTN_DOHILIGHT
, ///< Show the coverage button.
921 /* automatically generated from ../../widgets/autoreplace_widget.h */
922 /** Widgets of the #ReplaceVehicleWindow class. */
923 enum ReplaceVehicleWidgets
{
924 WID_RV_CAPTION
= ::WID_RV_CAPTION
, ///< Caption of the window.
926 /* Sort dropdown at the right. */
927 WID_RV_SORT_ASCENDING_DESCENDING
= ::WID_RV_SORT_ASCENDING_DESCENDING
, ///< Ascending/descending sort order button.
928 WID_RV_SHOW_HIDDEN_ENGINES
= ::WID_RV_SHOW_HIDDEN_ENGINES
, ///< Toggle whether to display the hidden vehicles.
929 WID_RV_SORT_DROPDOWN
= ::WID_RV_SORT_DROPDOWN
, ///< Dropdown for the sort criteria.
931 /* Left and right matrix + details. */
932 WID_RV_LEFT_MATRIX
= ::WID_RV_LEFT_MATRIX
, ///< The matrix on the left.
933 WID_RV_LEFT_SCROLLBAR
= ::WID_RV_LEFT_SCROLLBAR
, ///< The scrollbar for the matrix on the left.
934 WID_RV_RIGHT_MATRIX
= ::WID_RV_RIGHT_MATRIX
, ///< The matrix on the right.
935 WID_RV_RIGHT_SCROLLBAR
= ::WID_RV_RIGHT_SCROLLBAR
, ///< The scrollbar for the matrix on the right.
936 WID_RV_LEFT_DETAILS
= ::WID_RV_LEFT_DETAILS
, ///< Details of the entry on the left.
937 WID_RV_RIGHT_DETAILS
= ::WID_RV_RIGHT_DETAILS
, ///< Details of the entry on the right.
940 WID_RV_START_REPLACE
= ::WID_RV_START_REPLACE
, ///< Start Replacing button.
941 WID_RV_INFO_TAB
= ::WID_RV_INFO_TAB
, ///< Info tab.
942 WID_RV_STOP_REPLACE
= ::WID_RV_STOP_REPLACE
, ///< Stop Replacing button.
944 /* Train only widgets. */
945 WID_RV_TRAIN_ENGINEWAGON_DROPDOWN
= ::WID_RV_TRAIN_ENGINEWAGON_DROPDOWN
, ///< Dropdown to select engines and/or wagons.
946 WID_RV_TRAIN_RAILTYPE_DROPDOWN
= ::WID_RV_TRAIN_RAILTYPE_DROPDOWN
, ///< Dropdown menu about the railtype.
947 WID_RV_TRAIN_WAGONREMOVE_TOGGLE
= ::WID_RV_TRAIN_WAGONREMOVE_TOGGLE
, ///< Button to toggle removing wagons.
950 /* automatically generated from ../../widgets/bootstrap_widget.h */
951 /** Widgets of the #BootstrapBackground class. */
952 enum BootstrapBackgroundWidgets
{
953 WID_BB_BACKGROUND
= ::WID_BB_BACKGROUND
, ///< Background of the window.
956 /** Widgets of the #BootstrapContentDownloadStatusWindow class. */
957 enum BootstrapAskForDownloadWidgets
{
958 WID_BAFD_QUESTION
= ::WID_BAFD_QUESTION
, ///< The question whether to download.
959 WID_BAFD_YES
= ::WID_BAFD_YES
, ///< An affirmative answer to the question.
960 WID_BAFD_NO
= ::WID_BAFD_NO
, ///< An negative answer to the question.
963 /* automatically generated from ../../widgets/bridge_widget.h */
964 /** Widgets of the #BuildBridgeWindow class. */
965 enum BuildBridgeSelectionWidgets
{
966 WID_BBS_CAPTION
= ::WID_BBS_CAPTION
, ///< Caption of the window.
967 WID_BBS_DROPDOWN_ORDER
= ::WID_BBS_DROPDOWN_ORDER
, ///< Direction of sort dropdown.
968 WID_BBS_DROPDOWN_CRITERIA
= ::WID_BBS_DROPDOWN_CRITERIA
, ///< Criteria of sort dropdown.
969 WID_BBS_BRIDGE_LIST
= ::WID_BBS_BRIDGE_LIST
, ///< List of bridges.
970 WID_BBS_SCROLLBAR
= ::WID_BBS_SCROLLBAR
, ///< Scrollbar of the list.
973 /* automatically generated from ../../widgets/build_vehicle_widget.h */
974 /** Widgets of the #BuildVehicleWindow class. */
975 enum BuildVehicleWidgets
{
976 WID_BV_CAPTION
= ::WID_BV_CAPTION
, ///< Caption of window.
977 WID_BV_SORT_ASCENDING_DESCENDING
= ::WID_BV_SORT_ASCENDING_DESCENDING
, ///< Sort direction.
978 WID_BV_SORT_DROPDOWN
= ::WID_BV_SORT_DROPDOWN
, ///< Criteria of sorting dropdown.
979 WID_BV_CARGO_FILTER_DROPDOWN
= ::WID_BV_CARGO_FILTER_DROPDOWN
, ///< Cargo filter dropdown.
980 WID_BV_SHOW_HIDDEN_ENGINES
= ::WID_BV_SHOW_HIDDEN_ENGINES
, ///< Toggle whether to display the hidden vehicles.
981 WID_BV_LIST
= ::WID_BV_LIST
, ///< List of vehicles.
982 WID_BV_SCROLLBAR
= ::WID_BV_SCROLLBAR
, ///< Scrollbar of list.
983 WID_BV_PANEL
= ::WID_BV_PANEL
, ///< Button panel.
984 WID_BV_BUILD
= ::WID_BV_BUILD
, ///< Build panel.
985 WID_BV_SHOW_HIDE
= ::WID_BV_SHOW_HIDE
, ///< Button to hide or show the selected engine.
986 WID_BV_BUILD_SEL
= ::WID_BV_BUILD_SEL
, ///< Build button.
987 WID_BV_RENAME
= ::WID_BV_RENAME
, ///< Rename button.
990 /* automatically generated from ../../widgets/cheat_widget.h */
991 /** Widgets of the #CheatWindow class.. */
993 WID_C_PANEL
= ::WID_C_PANEL
, ///< Panel where all cheats are shown in.
996 /* automatically generated from ../../widgets/company_widget.h */
997 /** Widgets of the #CompanyWindow class. */
998 enum CompanyWidgets
{
999 WID_C_CAPTION
= ::WID_C_CAPTION
, ///< Caption of the window.
1001 WID_C_FACE
= ::WID_C_FACE
, ///< View of the face.
1002 WID_C_FACE_TITLE
= ::WID_C_FACE_TITLE
, ///< Title for the face.
1004 WID_C_DESC_INAUGURATION
= ::WID_C_DESC_INAUGURATION
, ///< Inauguration.
1005 WID_C_DESC_COLOUR_SCHEME
= ::WID_C_DESC_COLOUR_SCHEME
, ///< Colour scheme.
1006 WID_C_DESC_COLOUR_SCHEME_EXAMPLE
= ::WID_C_DESC_COLOUR_SCHEME_EXAMPLE
, ///< Colour scheme example.
1007 WID_C_DESC_VEHICLE
= ::WID_C_DESC_VEHICLE
, ///< Vehicles.
1008 WID_C_DESC_VEHICLE_COUNTS
= ::WID_C_DESC_VEHICLE_COUNTS
, ///< Vehicle count.
1009 WID_C_DESC_COMPANY_VALUE
= ::WID_C_DESC_COMPANY_VALUE
, ///< Company value.
1010 WID_C_DESC_INFRASTRUCTURE
= ::WID_C_DESC_INFRASTRUCTURE
, ///< Infrastructure.
1011 WID_C_DESC_INFRASTRUCTURE_COUNTS
= ::WID_C_DESC_INFRASTRUCTURE_COUNTS
, ///< Infrastructure count.
1013 WID_C_SELECT_DESC_OWNERS
= ::WID_C_SELECT_DESC_OWNERS
, ///< Owners.
1014 WID_C_DESC_OWNERS
= ::WID_C_DESC_OWNERS
, ///< Owner in Owners.
1016 WID_C_SELECT_BUTTONS
= ::WID_C_SELECT_BUTTONS
, ///< Selection widget for the button bar.
1017 WID_C_NEW_FACE
= ::WID_C_NEW_FACE
, ///< Button to make new face.
1018 WID_C_COLOUR_SCHEME
= ::WID_C_COLOUR_SCHEME
, ///< Button to change colour scheme.
1019 WID_C_PRESIDENT_NAME
= ::WID_C_PRESIDENT_NAME
, ///< Button to change president name.
1020 WID_C_COMPANY_NAME
= ::WID_C_COMPANY_NAME
, ///< Button to change company name.
1021 WID_C_BUY_SHARE
= ::WID_C_BUY_SHARE
, ///< Button to buy a share.
1022 WID_C_SELL_SHARE
= ::WID_C_SELL_SHARE
, ///< Button to sell a share.
1024 WID_C_SELECT_VIEW_BUILD_HQ
= ::WID_C_SELECT_VIEW_BUILD_HQ
, ///< Panel about HQ.
1025 WID_C_VIEW_HQ
= ::WID_C_VIEW_HQ
, ///< Button to view the HQ.
1026 WID_C_BUILD_HQ
= ::WID_C_BUILD_HQ
, ///< Button to build the HQ.
1028 WID_C_SELECT_RELOCATE
= ::WID_C_SELECT_RELOCATE
, ///< Panel about 'Relocate HQ'.
1029 WID_C_RELOCATE_HQ
= ::WID_C_RELOCATE_HQ
, ///< Button to relocate the HQ.
1031 WID_C_VIEW_INFRASTRUCTURE
= ::WID_C_VIEW_INFRASTRUCTURE
, ///< Panel about infrastructure.
1033 WID_C_HAS_PASSWORD
= ::WID_C_HAS_PASSWORD
, ///< Has company password lock.
1034 WID_C_SELECT_MULTIPLAYER
= ::WID_C_SELECT_MULTIPLAYER
, ///< Multiplayer selection panel.
1035 WID_C_COMPANY_PASSWORD
= ::WID_C_COMPANY_PASSWORD
, ///< Button to set company password.
1036 WID_C_COMPANY_JOIN
= ::WID_C_COMPANY_JOIN
, ///< Button to join company.
1039 /** Widgets of the #CompanyFinancesWindow class. */
1040 enum CompanyFinancesWidgets
{
1041 WID_CF_CAPTION
= ::WID_CF_CAPTION
, ///< Caption of the window.
1042 WID_CF_TOGGLE_SIZE
= ::WID_CF_TOGGLE_SIZE
, ///< Toggle windows size.
1043 WID_CF_SEL_PANEL
= ::WID_CF_SEL_PANEL
, ///< Select panel or nothing.
1044 WID_CF_EXPS_CATEGORY
= ::WID_CF_EXPS_CATEGORY
, ///< Column for expenses category strings.
1045 WID_CF_EXPS_PRICE1
= ::WID_CF_EXPS_PRICE1
, ///< Column for year Y-2 expenses.
1046 WID_CF_EXPS_PRICE2
= ::WID_CF_EXPS_PRICE2
, ///< Column for year Y-1 expenses.
1047 WID_CF_EXPS_PRICE3
= ::WID_CF_EXPS_PRICE3
, ///< Column for year Y expenses.
1048 WID_CF_TOTAL_PANEL
= ::WID_CF_TOTAL_PANEL
, ///< Panel for totals.
1049 WID_CF_SEL_MAXLOAN
= ::WID_CF_SEL_MAXLOAN
, ///< Selection of maxloan column.
1050 WID_CF_BALANCE_VALUE
= ::WID_CF_BALANCE_VALUE
, ///< Bank balance value.
1051 WID_CF_LOAN_VALUE
= ::WID_CF_LOAN_VALUE
, ///< Loan.
1052 WID_CF_LOAN_LINE
= ::WID_CF_LOAN_LINE
, ///< Line for summing bank balance and loan.
1053 WID_CF_TOTAL_VALUE
= ::WID_CF_TOTAL_VALUE
, ///< Total.
1054 WID_CF_MAXLOAN_GAP
= ::WID_CF_MAXLOAN_GAP
, ///< Gap above max loan widget.
1055 WID_CF_MAXLOAN_VALUE
= ::WID_CF_MAXLOAN_VALUE
, ///< Max loan widget.
1056 WID_CF_SEL_BUTTONS
= ::WID_CF_SEL_BUTTONS
, ///< Selection of buttons.
1057 WID_CF_INCREASE_LOAN
= ::WID_CF_INCREASE_LOAN
, ///< Increase loan.
1058 WID_CF_REPAY_LOAN
= ::WID_CF_REPAY_LOAN
, ///< Decrease loan..
1059 WID_CF_INFRASTRUCTURE
= ::WID_CF_INFRASTRUCTURE
, ///< View company infrastructure.
1062 /** Widgets of the #SelectCompanyLiveryWindow class. */
1063 enum SelectCompanyLiveryWidgets
{
1064 WID_SCL_CAPTION
= ::WID_SCL_CAPTION
, ///< Caption of window.
1065 WID_SCL_CLASS_GENERAL
= ::WID_SCL_CLASS_GENERAL
, ///< Class general.
1066 WID_SCL_CLASS_RAIL
= ::WID_SCL_CLASS_RAIL
, ///< Class rail.
1067 WID_SCL_CLASS_ROAD
= ::WID_SCL_CLASS_ROAD
, ///< Class road.
1068 WID_SCL_CLASS_SHIP
= ::WID_SCL_CLASS_SHIP
, ///< Class ship.
1069 WID_SCL_CLASS_AIRCRAFT
= ::WID_SCL_CLASS_AIRCRAFT
, ///< Class aircraft.
1070 WID_SCL_SPACER_DROPDOWN
= ::WID_SCL_SPACER_DROPDOWN
, ///< Spacer for dropdown.
1071 WID_SCL_PRI_COL_DROPDOWN
= ::WID_SCL_PRI_COL_DROPDOWN
, ///< Dropdown for primary colour.
1072 WID_SCL_SEC_COL_DROPDOWN
= ::WID_SCL_SEC_COL_DROPDOWN
, ///< Dropdown for secondary colour.
1073 WID_SCL_MATRIX
= ::WID_SCL_MATRIX
, ///< Matrix.
1077 * Widgets of the #SelectCompanyManagerFaceWindow class.
1078 * Do not change the order of the widgets from WID_SCMF_HAS_MOUSTACHE_EARRING to WID_SCMF_GLASSES_R,
1079 * this order is needed for the WE_CLICK event of DrawFaceStringLabel().
1081 enum SelectCompanyManagerFaceWidgets
{
1082 WID_SCMF_CAPTION
= ::WID_SCMF_CAPTION
, ///< Caption of window.
1083 WID_SCMF_TOGGLE_LARGE_SMALL
= ::WID_SCMF_TOGGLE_LARGE_SMALL
, ///< Toggle for large or small.
1084 WID_SCMF_SELECT_FACE
= ::WID_SCMF_SELECT_FACE
, ///< Select face.
1085 WID_SCMF_CANCEL
= ::WID_SCMF_CANCEL
, ///< Cancel.
1086 WID_SCMF_ACCEPT
= ::WID_SCMF_ACCEPT
, ///< Accept.
1087 WID_SCMF_MALE
= ::WID_SCMF_MALE
, ///< Male button in the simple view.
1088 WID_SCMF_FEMALE
= ::WID_SCMF_FEMALE
, ///< Female button in the simple view.
1089 WID_SCMF_MALE2
= ::WID_SCMF_MALE2
, ///< Male button in the advanced view.
1090 WID_SCMF_FEMALE2
= ::WID_SCMF_FEMALE2
, ///< Female button in the advanced view.
1091 WID_SCMF_SEL_LOADSAVE
= ::WID_SCMF_SEL_LOADSAVE
, ///< Selection to display the load/save/number buttons in the advanced view.
1092 WID_SCMF_SEL_MALEFEMALE
= ::WID_SCMF_SEL_MALEFEMALE
, ///< Selection to display the male/female buttons in the simple view.
1093 WID_SCMF_SEL_PARTS
= ::WID_SCMF_SEL_PARTS
, ///< Selection to display the buttons for setting each part of the face in the advanced view.
1094 WID_SCMF_RANDOM_NEW_FACE
= ::WID_SCMF_RANDOM_NEW_FACE
, ///< Create random new face.
1095 WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON
= ::WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON
, ///< Toggle for large or small.
1096 WID_SCMF_FACE
= ::WID_SCMF_FACE
, ///< Current face.
1097 WID_SCMF_LOAD
= ::WID_SCMF_LOAD
, ///< Load face.
1098 WID_SCMF_FACECODE
= ::WID_SCMF_FACECODE
, ///< Get the face code.
1099 WID_SCMF_SAVE
= ::WID_SCMF_SAVE
, ///< Save face.
1100 WID_SCMF_HAS_MOUSTACHE_EARRING_TEXT
= ::WID_SCMF_HAS_MOUSTACHE_EARRING_TEXT
, ///< Text about moustache and earring.
1101 WID_SCMF_TIE_EARRING_TEXT
= ::WID_SCMF_TIE_EARRING_TEXT
, ///< Text about tie and earring.
1102 WID_SCMF_LIPS_MOUSTACHE_TEXT
= ::WID_SCMF_LIPS_MOUSTACHE_TEXT
, ///< Text about lips and moustache.
1103 WID_SCMF_HAS_GLASSES_TEXT
= ::WID_SCMF_HAS_GLASSES_TEXT
, ///< Text about glasses.
1104 WID_SCMF_HAIR_TEXT
= ::WID_SCMF_HAIR_TEXT
, ///< Text about hair.
1105 WID_SCMF_EYEBROWS_TEXT
= ::WID_SCMF_EYEBROWS_TEXT
, ///< Text about eyebrows.
1106 WID_SCMF_EYECOLOUR_TEXT
= ::WID_SCMF_EYECOLOUR_TEXT
, ///< Text about eyecolour.
1107 WID_SCMF_GLASSES_TEXT
= ::WID_SCMF_GLASSES_TEXT
, ///< Text about glasses.
1108 WID_SCMF_NOSE_TEXT
= ::WID_SCMF_NOSE_TEXT
, ///< Text about nose.
1109 WID_SCMF_CHIN_TEXT
= ::WID_SCMF_CHIN_TEXT
, ///< Text about chin.
1110 WID_SCMF_JACKET_TEXT
= ::WID_SCMF_JACKET_TEXT
, ///< Text about jacket.
1111 WID_SCMF_COLLAR_TEXT
= ::WID_SCMF_COLLAR_TEXT
, ///< Text about collar.
1112 WID_SCMF_ETHNICITY_EUR
= ::WID_SCMF_ETHNICITY_EUR
, ///< Text about ethnicity european.
1113 WID_SCMF_ETHNICITY_AFR
= ::WID_SCMF_ETHNICITY_AFR
, ///< Text about ethnicity african.
1114 WID_SCMF_HAS_MOUSTACHE_EARRING
= ::WID_SCMF_HAS_MOUSTACHE_EARRING
, ///< Has moustache or earring.
1115 WID_SCMF_HAS_GLASSES
= ::WID_SCMF_HAS_GLASSES
, ///< Has glasses.
1116 WID_SCMF_EYECOLOUR_L
= ::WID_SCMF_EYECOLOUR_L
, ///< Eyecolour left.
1117 WID_SCMF_EYECOLOUR
= ::WID_SCMF_EYECOLOUR
, ///< Eyecolour.
1118 WID_SCMF_EYECOLOUR_R
= ::WID_SCMF_EYECOLOUR_R
, ///< Eyecolour right.
1119 WID_SCMF_CHIN_L
= ::WID_SCMF_CHIN_L
, ///< Chin left.
1120 WID_SCMF_CHIN
= ::WID_SCMF_CHIN
, ///< Chin.
1121 WID_SCMF_CHIN_R
= ::WID_SCMF_CHIN_R
, ///< Chin right.
1122 WID_SCMF_EYEBROWS_L
= ::WID_SCMF_EYEBROWS_L
, ///< Eyebrows left.
1123 WID_SCMF_EYEBROWS
= ::WID_SCMF_EYEBROWS
, ///< Eyebrows.
1124 WID_SCMF_EYEBROWS_R
= ::WID_SCMF_EYEBROWS_R
, ///< Eyebrows right.
1125 WID_SCMF_LIPS_MOUSTACHE_L
= ::WID_SCMF_LIPS_MOUSTACHE_L
, ///< Lips / Moustache left.
1126 WID_SCMF_LIPS_MOUSTACHE
= ::WID_SCMF_LIPS_MOUSTACHE
, ///< Lips / Moustache.
1127 WID_SCMF_LIPS_MOUSTACHE_R
= ::WID_SCMF_LIPS_MOUSTACHE_R
, ///< Lips / Moustache right.
1128 WID_SCMF_NOSE_L
= ::WID_SCMF_NOSE_L
, ///< Nose left.
1129 WID_SCMF_NOSE
= ::WID_SCMF_NOSE
, ///< Nose.
1130 WID_SCMF_NOSE_R
= ::WID_SCMF_NOSE_R
, ///< Nose right.
1131 WID_SCMF_HAIR_L
= ::WID_SCMF_HAIR_L
, ///< Hair left.
1132 WID_SCMF_HAIR
= ::WID_SCMF_HAIR
, ///< Hair.
1133 WID_SCMF_HAIR_R
= ::WID_SCMF_HAIR_R
, ///< Hair right.
1134 WID_SCMF_JACKET_L
= ::WID_SCMF_JACKET_L
, ///< Jacket left.
1135 WID_SCMF_JACKET
= ::WID_SCMF_JACKET
, ///< Jacket.
1136 WID_SCMF_JACKET_R
= ::WID_SCMF_JACKET_R
, ///< Jacket right.
1137 WID_SCMF_COLLAR_L
= ::WID_SCMF_COLLAR_L
, ///< Collar left.
1138 WID_SCMF_COLLAR
= ::WID_SCMF_COLLAR
, ///< Collar.
1139 WID_SCMF_COLLAR_R
= ::WID_SCMF_COLLAR_R
, ///< Collar right.
1140 WID_SCMF_TIE_EARRING_L
= ::WID_SCMF_TIE_EARRING_L
, ///< Tie / Earring left.
1141 WID_SCMF_TIE_EARRING
= ::WID_SCMF_TIE_EARRING
, ///< Tie / Earring.
1142 WID_SCMF_TIE_EARRING_R
= ::WID_SCMF_TIE_EARRING_R
, ///< Tie / Earring right.
1143 WID_SCMF_GLASSES_L
= ::WID_SCMF_GLASSES_L
, ///< Glasses left.
1144 WID_SCMF_GLASSES
= ::WID_SCMF_GLASSES
, ///< Glasses.
1145 WID_SCMF_GLASSES_R
= ::WID_SCMF_GLASSES_R
, ///< Glasses right.
1148 /** Widgets of the #CompanyInfrastructureWindow class. */
1149 enum CompanyInfrastructureWidgets
{
1150 WID_CI_CAPTION
= ::WID_CI_CAPTION
, ///< Caption of window.
1151 WID_CI_RAIL_DESC
= ::WID_CI_RAIL_DESC
, ///< Description of rail.
1152 WID_CI_RAIL_COUNT
= ::WID_CI_RAIL_COUNT
, ///< Count of rail.
1153 WID_CI_ROAD_DESC
= ::WID_CI_ROAD_DESC
, ///< Description of road.
1154 WID_CI_ROAD_COUNT
= ::WID_CI_ROAD_COUNT
, ///< Count of road.
1155 WID_CI_WATER_DESC
= ::WID_CI_WATER_DESC
, ///< Description of water.
1156 WID_CI_WATER_COUNT
= ::WID_CI_WATER_COUNT
, ///< Count of water.
1157 WID_CI_STATION_DESC
= ::WID_CI_STATION_DESC
, ///< Description of station.
1158 WID_CI_STATION_COUNT
= ::WID_CI_STATION_COUNT
, ///< Count of station.
1159 WID_CI_TOTAL_DESC
= ::WID_CI_TOTAL_DESC
, ///< Description of total.
1160 WID_CI_TOTAL
= ::WID_CI_TOTAL
, ///< Count of total.
1163 /** Widgets of the #BuyCompanyWindow class. */
1164 enum BuyCompanyWidgets
{
1165 WID_BC_CAPTION
= ::WID_BC_CAPTION
, ///< Caption of window.
1166 WID_BC_FACE
= ::WID_BC_FACE
, ///< Face button.
1167 WID_BC_QUESTION
= ::WID_BC_QUESTION
, ///< Question text.
1168 WID_BC_NO
= ::WID_BC_NO
, ///< No button.
1169 WID_BC_YES
= ::WID_BC_YES
, ///< Yes button.
1172 /* automatically generated from ../../widgets/console_widget.h */
1173 /** Widgets of the #IConsoleWindow class. */
1174 enum ConsoleWidgets
{
1175 WID_C_BACKGROUND
= ::WID_C_BACKGROUND
, ///< Background of the console.
1178 /* automatically generated from ../../widgets/date_widget.h */
1179 /** Widgets of the #SetDateWindow class. */
1180 enum SetDateWidgets
{
1181 WID_SD_DAY
= ::WID_SD_DAY
, ///< Dropdown for the day.
1182 WID_SD_MONTH
= ::WID_SD_MONTH
, ///< Dropdown for the month.
1183 WID_SD_YEAR
= ::WID_SD_YEAR
, ///< Dropdown for the year.
1184 WID_SD_SET_DATE
= ::WID_SD_SET_DATE
, ///< Actually set the date.
1187 /* automatically generated from ../../widgets/depot_widget.h */
1188 /** Widgets of the #DepotWindow class. */
1190 WID_D_CAPTION
= ::WID_D_CAPTION
, ///< Caption of window.
1191 WID_D_SELL
= ::WID_D_SELL
, ///< Sell button.
1192 WID_D_SHOW_SELL_CHAIN
= ::WID_D_SHOW_SELL_CHAIN
, ///< Show sell chain panel.
1193 WID_D_SELL_CHAIN
= ::WID_D_SELL_CHAIN
, ///< Sell chain button.
1194 WID_D_SELL_ALL
= ::WID_D_SELL_ALL
, ///< Sell all button.
1195 WID_D_AUTOREPLACE
= ::WID_D_AUTOREPLACE
, ///< Autoreplace button.
1196 WID_D_MATRIX
= ::WID_D_MATRIX
, ///< Matrix of vehicles.
1197 WID_D_V_SCROLL
= ::WID_D_V_SCROLL
, ///< Vertical scrollbar.
1198 WID_D_SHOW_H_SCROLL
= ::WID_D_SHOW_H_SCROLL
, ///< Show horizontal scrollbar panel.
1199 WID_D_H_SCROLL
= ::WID_D_H_SCROLL
, ///< Horizontal scrollbar.
1200 WID_D_BUILD
= ::WID_D_BUILD
, ///< Build button.
1201 WID_D_CLONE
= ::WID_D_CLONE
, ///< Clone button.
1202 WID_D_LOCATION
= ::WID_D_LOCATION
, ///< Location button.
1203 WID_D_SHOW_RENAME
= ::WID_D_SHOW_RENAME
, ///< Show rename panel.
1204 WID_D_RENAME
= ::WID_D_RENAME
, ///< Rename button.
1205 WID_D_VEHICLE_LIST
= ::WID_D_VEHICLE_LIST
, ///< List of vehicles.
1206 WID_D_STOP_ALL
= ::WID_D_STOP_ALL
, ///< Stop all button.
1207 WID_D_START_ALL
= ::WID_D_START_ALL
, ///< Start all button.
1210 /* automatically generated from ../../widgets/dock_widget.h */
1211 /** Widgets of the #BuildDocksDepotWindow class. */
1212 enum BuildDockDepotWidgets
{
1213 WID_BDD_BACKGROUND
= ::WID_BDD_BACKGROUND
, ///< Background of the window.
1214 WID_BDD_X
= ::WID_BDD_X
, ///< X-direction button.
1215 WID_BDD_Y
= ::WID_BDD_Y
, ///< Y-direction button.
1218 /** Widgets of the #BuildDocksToolbarWindow class. */
1219 enum DockToolbarWidgets
{
1220 WID_DT_CANAL
= ::WID_DT_CANAL
, ///< Build canal button.
1221 WID_DT_LOCK
= ::WID_DT_LOCK
, ///< Build lock button.
1222 WID_DT_DEMOLISH
= ::WID_DT_DEMOLISH
, ///< Demolish aka dynamite button.
1223 WID_DT_DEPOT
= ::WID_DT_DEPOT
, ///< Build depot button.
1224 WID_DT_STATION
= ::WID_DT_STATION
, ///< Build station button.
1225 WID_DT_BUOY
= ::WID_DT_BUOY
, ///< Build buoy button.
1226 WID_DT_RIVER
= ::WID_DT_RIVER
, ///< Build river button (in scenario editor).
1227 WID_DT_BUILD_AQUEDUCT
= ::WID_DT_BUILD_AQUEDUCT
, ///< Build aqueduct button.
1229 WID_DT_INVALID
= ::WID_DT_INVALID
, ///< Used to initialize a variable.
1232 /* automatically generated from ../../widgets/dropdown_widget.h */
1233 /** Widgets of the #DropdownWindow class. */
1234 enum DropdownMenuWidgets
{
1235 WID_DM_ITEMS
= ::WID_DM_ITEMS
, ///< Panel showing the dropdown items.
1236 WID_DM_SHOW_SCROLL
= ::WID_DM_SHOW_SCROLL
, ///< Hide scrollbar if too few items.
1237 WID_DM_SCROLL
= ::WID_DM_SCROLL
, ///< Scrollbar.
1240 /* automatically generated from ../../widgets/engine_widget.h */
1241 /** Widgets of the #EnginePreviewWindow class. */
1242 enum EnginePreviewWidgets
{
1243 WID_EP_QUESTION
= ::WID_EP_QUESTION
, ///< The container for the question.
1244 WID_EP_NO
= ::WID_EP_NO
, ///< No button.
1245 WID_EP_YES
= ::WID_EP_YES
, ///< Yes button.
1248 /* automatically generated from ../../widgets/error_widget.h */
1249 /** Widgets of the #ErrmsgWindow class. */
1250 enum ErrorMessageWidgets
{
1251 WID_EM_CAPTION
= ::WID_EM_CAPTION
, ///< Caption of the window.
1252 WID_EM_FACE
= ::WID_EM_FACE
, ///< Error title.
1253 WID_EM_MESSAGE
= ::WID_EM_MESSAGE
, ///< Error message.
1256 /* automatically generated from ../../widgets/fios_widget.h */
1257 /** Widgets of the #SaveLoadWindow class. */
1258 enum SaveLoadWidgets
{
1259 WID_SL_CAPTION
= ::WID_SL_CAPTION
, ///< Caption of the window.
1260 WID_SL_SORT_BYNAME
= ::WID_SL_SORT_BYNAME
, ///< Sort by name button.
1261 WID_SL_SORT_BYDATE
= ::WID_SL_SORT_BYDATE
, ///< Sort by date button.
1262 WID_SL_BACKGROUND
= ::WID_SL_BACKGROUND
, ///< Background of window.
1263 WID_SL_FILE_BACKGROUND
= ::WID_SL_FILE_BACKGROUND
, ///< Background of file selection.
1264 WID_SL_HOME_BUTTON
= ::WID_SL_HOME_BUTTON
, ///< Home button.
1265 WID_SL_DRIVES_DIRECTORIES_LIST
= ::WID_SL_DRIVES_DIRECTORIES_LIST
, ///< Drives list.
1266 WID_SL_SCROLLBAR
= ::WID_SL_SCROLLBAR
, ///< Scrollbar of the file list.
1267 WID_SL_CONTENT_DOWNLOAD
= ::WID_SL_CONTENT_DOWNLOAD
, ///< Content download button, only available for play scenario/heightmap.
1268 WID_SL_SAVE_OSK_TITLE
= ::WID_SL_SAVE_OSK_TITLE
, ///< Title textbox, only available for save operations.
1269 WID_SL_DELETE_SELECTION
= ::WID_SL_DELETE_SELECTION
, ///< Delete button, only available for save operations.
1270 WID_SL_SAVE_GAME
= ::WID_SL_SAVE_GAME
, ///< Save button, only available for save operations.
1271 WID_SL_CONTENT_DOWNLOAD_SEL
= ::WID_SL_CONTENT_DOWNLOAD_SEL
, ///< Selection 'stack' to 'hide' the content download.
1272 WID_SL_DETAILS
= ::WID_SL_DETAILS
, ///< Panel with game details.
1273 WID_SL_NEWGRF_INFO
= ::WID_SL_NEWGRF_INFO
, ///< Button to open NewGgrf configuration.
1274 WID_SL_LOAD_BUTTON
= ::WID_SL_LOAD_BUTTON
, ///< Button to load game/scenario.
1275 WID_SL_MISSING_NEWGRFS
= ::WID_SL_MISSING_NEWGRFS
, ///< Button to find missing NewGRFs online.
1278 /* automatically generated from ../../widgets/genworld_widget.h */
1279 /** Widgets of the #GenerateLandscapeWindow class. */
1280 enum GenerateLandscapeWidgets
{
1281 WID_GL_TEMPERATE
= ::WID_GL_TEMPERATE
, ///< Button with icon "Temperate".
1282 WID_GL_ARCTIC
= ::WID_GL_ARCTIC
, ///< Button with icon "Arctic".
1283 WID_GL_TROPICAL
= ::WID_GL_TROPICAL
, ///< Button with icon "Tropical".
1284 WID_GL_TOYLAND
= ::WID_GL_TOYLAND
, ///< Button with icon "Toyland".
1286 WID_GL_MAPSIZE_X_PULLDOWN
= ::WID_GL_MAPSIZE_X_PULLDOWN
, ///< Dropdown 'map X size'.
1287 WID_GL_MAPSIZE_Y_PULLDOWN
= ::WID_GL_MAPSIZE_Y_PULLDOWN
, ///< Dropdown 'map Y size'.
1289 WID_GL_TOWN_PULLDOWN
= ::WID_GL_TOWN_PULLDOWN
, ///< Dropdown 'No. of towns'.
1290 WID_GL_INDUSTRY_PULLDOWN
= ::WID_GL_INDUSTRY_PULLDOWN
, ///< Dropdown 'No. of industries'.
1292 WID_GL_GENERATE_BUTTON
= ::WID_GL_GENERATE_BUTTON
, ///< 'Generate' button.
1294 WID_GL_MAX_HEIGHTLEVEL_DOWN
= ::WID_GL_MAX_HEIGHTLEVEL_DOWN
, ///< Decrease max. heightlevel
1295 WID_GL_MAX_HEIGHTLEVEL_TEXT
= ::WID_GL_MAX_HEIGHTLEVEL_TEXT
, ///< Max. heightlevel
1296 WID_GL_MAX_HEIGHTLEVEL_UP
= ::WID_GL_MAX_HEIGHTLEVEL_UP
, ///< Increase max. heightlevel
1298 WID_GL_START_DATE_DOWN
= ::WID_GL_START_DATE_DOWN
, ///< Decrease start year.
1299 WID_GL_START_DATE_TEXT
= ::WID_GL_START_DATE_TEXT
, ///< Start year.
1300 WID_GL_START_DATE_UP
= ::WID_GL_START_DATE_UP
, ///< Increase start year.
1302 WID_GL_SNOW_LEVEL_DOWN
= ::WID_GL_SNOW_LEVEL_DOWN
, ///< Decrease snow level.
1303 WID_GL_SNOW_LEVEL_TEXT
= ::WID_GL_SNOW_LEVEL_TEXT
, ///< Snow level.
1304 WID_GL_SNOW_LEVEL_UP
= ::WID_GL_SNOW_LEVEL_UP
, ///< Increase snow level.
1306 WID_GL_TREE_PULLDOWN
= ::WID_GL_TREE_PULLDOWN
, ///< Dropdown 'Tree algorithm'.
1307 WID_GL_LANDSCAPE_PULLDOWN
= ::WID_GL_LANDSCAPE_PULLDOWN
, ///< Dropdown 'Land generator'.
1309 WID_GL_HEIGHTMAP_NAME_TEXT
= ::WID_GL_HEIGHTMAP_NAME_TEXT
, ///< Heightmap name.
1310 WID_GL_HEIGHTMAP_SIZE_TEXT
= ::WID_GL_HEIGHTMAP_SIZE_TEXT
, ///< Size of heightmap.
1311 WID_GL_HEIGHTMAP_ROTATION_PULLDOWN
= ::WID_GL_HEIGHTMAP_ROTATION_PULLDOWN
, ///< Dropdown 'Heightmap rotation'.
1313 WID_GL_TERRAIN_PULLDOWN
= ::WID_GL_TERRAIN_PULLDOWN
, ///< Dropdown 'Terrain type'.
1314 WID_GL_WATER_PULLDOWN
= ::WID_GL_WATER_PULLDOWN
, ///< Dropdown 'Sea level'.
1315 WID_GL_RIVER_PULLDOWN
= ::WID_GL_RIVER_PULLDOWN
, ///< Dropdown 'Rivers'.
1316 WID_GL_SMOOTHNESS_PULLDOWN
= ::WID_GL_SMOOTHNESS_PULLDOWN
, ///< Dropdown 'Smoothness'.
1317 WID_GL_VARIETY_PULLDOWN
= ::WID_GL_VARIETY_PULLDOWN
, ///< Dropdown 'Variety distribution'.
1319 WID_GL_BORDERS_RANDOM
= ::WID_GL_BORDERS_RANDOM
, ///< 'Random'/'Manual' borders.
1320 WID_GL_WATER_NW
= ::WID_GL_WATER_NW
, ///< NW 'Water'/'Freeform'.
1321 WID_GL_WATER_NE
= ::WID_GL_WATER_NE
, ///< NE 'Water'/'Freeform'.
1322 WID_GL_WATER_SE
= ::WID_GL_WATER_SE
, ///< SE 'Water'/'Freeform'.
1323 WID_GL_WATER_SW
= ::WID_GL_WATER_SW
, ///< SW 'Water'/'Freeform'.
1326 /** Widgets of the #CreateScenarioWindow class. */
1327 enum CreateScenarioWidgets
{
1328 WID_CS_TEMPERATE
= ::WID_CS_TEMPERATE
, ///< Select temperate landscape style.
1329 WID_CS_ARCTIC
= ::WID_CS_ARCTIC
, ///< Select arctic landscape style.
1330 WID_CS_TROPICAL
= ::WID_CS_TROPICAL
, ///< Select tropical landscape style.
1331 WID_CS_TOYLAND
= ::WID_CS_TOYLAND
, ///< Select toy-land landscape style.
1332 WID_CS_EMPTY_WORLD
= ::WID_CS_EMPTY_WORLD
, ///< Generate an empty flat world.
1333 WID_CS_RANDOM_WORLD
= ::WID_CS_RANDOM_WORLD
, ///< Generate random land button
1334 WID_CS_MAPSIZE_X_PULLDOWN
= ::WID_CS_MAPSIZE_X_PULLDOWN
, ///< Pull-down arrow for x map size.
1335 WID_CS_MAPSIZE_Y_PULLDOWN
= ::WID_CS_MAPSIZE_Y_PULLDOWN
, ///< Pull-down arrow for y map size.
1336 WID_CS_START_DATE_DOWN
= ::WID_CS_START_DATE_DOWN
, ///< Decrease start year (start earlier).
1337 WID_CS_START_DATE_TEXT
= ::WID_CS_START_DATE_TEXT
, ///< Clickable start date value.
1338 WID_CS_START_DATE_UP
= ::WID_CS_START_DATE_UP
, ///< Increase start year (start later).
1339 WID_CS_FLAT_LAND_HEIGHT_DOWN
= ::WID_CS_FLAT_LAND_HEIGHT_DOWN
, ///< Decrease flat land height.
1340 WID_CS_FLAT_LAND_HEIGHT_TEXT
= ::WID_CS_FLAT_LAND_HEIGHT_TEXT
, ///< Clickable flat land height value.
1341 WID_CS_FLAT_LAND_HEIGHT_UP
= ::WID_CS_FLAT_LAND_HEIGHT_UP
, ///< Increase flat land height.
1344 /** Widgets of the #GenerateProgressWindow class. */
1345 enum GenerationProgressWidgets
{
1346 WID_GP_PROGRESS_BAR
= ::WID_GP_PROGRESS_BAR
, ///< Progress bar.
1347 WID_GP_PROGRESS_TEXT
= ::WID_GP_PROGRESS_TEXT
, ///< Text with the progress bar.
1348 WID_GP_ABORT
= ::WID_GP_ABORT
, ///< Abort button.
1351 /* automatically generated from ../../widgets/goal_widget.h */
1352 /** Widgets of the #GoalListWindow class. */
1353 enum GoalListWidgets
{
1354 WID_GOAL_CAPTION
= ::WID_GOAL_CAPTION
, ///< Caption of the window.
1355 WID_GOAL_LIST
= ::WID_GOAL_LIST
, ///< Goal list.
1356 WID_GOAL_SCROLLBAR
= ::WID_GOAL_SCROLLBAR
, ///< Scrollbar of the goal list.
1359 /** Widgets of the #GoalQuestionWindow class. */
1360 enum GoalQuestionWidgets
{
1361 WID_GQ_CAPTION
= ::WID_GQ_CAPTION
, ///< Caption of the window.
1362 WID_GQ_QUESTION
= ::WID_GQ_QUESTION
, ///< Question text.
1363 WID_GQ_BUTTONS
= ::WID_GQ_BUTTONS
, ///< Buttons selection (between 1, 2 or 3).
1364 WID_GQ_BUTTON_1
= ::WID_GQ_BUTTON_1
, ///< First button.
1365 WID_GQ_BUTTON_2
= ::WID_GQ_BUTTON_2
, ///< Second button.
1366 WID_GQ_BUTTON_3
= ::WID_GQ_BUTTON_3
, ///< Third button.
1369 /* automatically generated from ../../widgets/graph_widget.h */
1370 /** Widgets of the #GraphLegendWindow class. */
1371 enum GraphLegendWidgets
{
1372 WID_GL_BACKGROUND
= ::WID_GL_BACKGROUND
, ///< Background of the window.
1374 WID_GL_FIRST_COMPANY
= ::WID_GL_FIRST_COMPANY
, ///< First company in the legend.
1375 WID_GL_LAST_COMPANY
= ::WID_GL_LAST_COMPANY
, ///< Last company in the legend.
1378 /** Widgets of the #OperatingProfitGraphWindow class, #IncomeGraphWindow class, #DeliveredCargoGraphWindow class, and #CompanyValueGraphWindow class. */
1379 enum CompanyValueWidgets
{
1380 WID_CV_KEY_BUTTON
= ::WID_CV_KEY_BUTTON
, ///< Key button.
1381 WID_CV_BACKGROUND
= ::WID_CV_BACKGROUND
, ///< Background of the window.
1382 WID_CV_GRAPH
= ::WID_CV_GRAPH
, ///< Graph itself.
1383 WID_CV_RESIZE
= ::WID_CV_RESIZE
, ///< Resize button.
1386 /** Widget of the #PerformanceHistoryGraphWindow class. */
1387 enum PerformanceHistoryGraphWidgets
{
1388 WID_PHG_KEY
= ::WID_PHG_KEY
, ///< Key button.
1389 WID_PHG_DETAILED_PERFORMANCE
= ::WID_PHG_DETAILED_PERFORMANCE
, ///< Detailed performance.
1390 WID_PHG_BACKGROUND
= ::WID_PHG_BACKGROUND
, ///< Background of the window.
1391 WID_PHG_GRAPH
= ::WID_PHG_GRAPH
, ///< Graph itself.
1392 WID_PHG_RESIZE
= ::WID_PHG_RESIZE
, ///< Resize button.
1395 /** Widget of the #PaymentRatesGraphWindow class. */
1396 enum CargoPaymentRatesWidgets
{
1397 WID_CPR_BACKGROUND
= ::WID_CPR_BACKGROUND
, ///< Background of the window.
1398 WID_CPR_HEADER
= ::WID_CPR_HEADER
, ///< Header.
1399 WID_CPR_GRAPH
= ::WID_CPR_GRAPH
, ///< Graph itself.
1400 WID_CPR_RESIZE
= ::WID_CPR_RESIZE
, ///< Resize button.
1401 WID_CPR_FOOTER
= ::WID_CPR_FOOTER
, ///< Footer.
1402 WID_CPR_ENABLE_CARGOES
= ::WID_CPR_ENABLE_CARGOES
, ///< Enable cargoes button.
1403 WID_CPR_DISABLE_CARGOES
= ::WID_CPR_DISABLE_CARGOES
, ///< Disable cargoes button.
1404 WID_CPR_CARGO_FIRST
= ::WID_CPR_CARGO_FIRST
, ///< First cargo in the list.
1407 /** Widget of the #CompanyLeagueWindow class. */
1408 enum CompanyLeagueWidgets
{
1409 WID_CL_BACKGROUND
= ::WID_CL_BACKGROUND
, ///< Background of the window.
1412 /** Widget of the #PerformanceRatingDetailWindow class. */
1413 enum PerformanceRatingDetailsWidgets
{
1414 WID_PRD_SCORE_FIRST
= ::WID_PRD_SCORE_FIRST
, ///< First entry in the score list.
1415 WID_PRD_SCORE_LAST
= ::WID_PRD_SCORE_LAST
, ///< Last entry in the score list.
1417 WID_PRD_COMPANY_FIRST
= ::WID_PRD_COMPANY_FIRST
, ///< First company.
1418 WID_PRD_COMPANY_LAST
= ::WID_PRD_COMPANY_LAST
, ///< Last company.
1421 /* automatically generated from ../../widgets/group_widget.h */
1422 /** Widgets of the #VehicleGroupWindow class. */
1423 enum GroupListWidgets
{
1424 WID_GL_CAPTION
= ::WID_GL_CAPTION
, ///< Caption of the window.
1425 WID_GL_SORT_BY_ORDER
= ::WID_GL_SORT_BY_ORDER
, ///< Sort order.
1426 WID_GL_SORT_BY_DROPDOWN
= ::WID_GL_SORT_BY_DROPDOWN
, ///< Sort by dropdown list.
1427 WID_GL_LIST_VEHICLE
= ::WID_GL_LIST_VEHICLE
, ///< List of the vehicles.
1428 WID_GL_LIST_VEHICLE_SCROLLBAR
= ::WID_GL_LIST_VEHICLE_SCROLLBAR
, ///< Scrollbar for the list.
1429 WID_GL_AVAILABLE_VEHICLES
= ::WID_GL_AVAILABLE_VEHICLES
, ///< Available vehicles.
1430 WID_GL_MANAGE_VEHICLES_DROPDOWN
= ::WID_GL_MANAGE_VEHICLES_DROPDOWN
, ///< Manage vehicles dropdown list.
1431 WID_GL_STOP_ALL
= ::WID_GL_STOP_ALL
, ///< Stop all button.
1432 WID_GL_START_ALL
= ::WID_GL_START_ALL
, ///< Start all button.
1434 WID_GL_ALL_VEHICLES
= ::WID_GL_ALL_VEHICLES
, ///< All vehicles entry.
1435 WID_GL_DEFAULT_VEHICLES
= ::WID_GL_DEFAULT_VEHICLES
, ///< Default vehicles entry.
1436 WID_GL_LIST_GROUP
= ::WID_GL_LIST_GROUP
, ///< List of the groups.
1437 WID_GL_LIST_GROUP_SCROLLBAR
= ::WID_GL_LIST_GROUP_SCROLLBAR
, ///< Scrollbar for the list.
1438 WID_GL_CREATE_GROUP
= ::WID_GL_CREATE_GROUP
, ///< Create group button.
1439 WID_GL_DELETE_GROUP
= ::WID_GL_DELETE_GROUP
, ///< Delete group button.
1440 WID_GL_RENAME_GROUP
= ::WID_GL_RENAME_GROUP
, ///< Rename group button.
1441 WID_GL_REPLACE_PROTECTION
= ::WID_GL_REPLACE_PROTECTION
, ///< Replace protection button.
1444 /* automatically generated from ../../widgets/highscore_widget.h */
1445 /** Widgets of the #EndGameHighScoreBaseWindow class and #HighScoreWindow class. */
1446 enum HighscoreWidgets
{
1447 WID_H_BACKGROUND
= ::WID_H_BACKGROUND
, ///< Background of the window.
1450 /* automatically generated from ../../widgets/industry_widget.h */
1451 /** Widgets of the #BuildIndustryWindow class. */
1452 enum DynamicPlaceIndustriesWidgets
{
1453 WID_DPI_MATRIX_WIDGET
= ::WID_DPI_MATRIX_WIDGET
, ///< Matrix of the industries.
1454 WID_DPI_SCROLLBAR
= ::WID_DPI_SCROLLBAR
, ///< Scrollbar of the matrix.
1455 WID_DPI_INFOPANEL
= ::WID_DPI_INFOPANEL
, ///< Info panel about the industry.
1456 WID_DPI_DISPLAY_WIDGET
= ::WID_DPI_DISPLAY_WIDGET
, ///< Display chain button.
1457 WID_DPI_FUND_WIDGET
= ::WID_DPI_FUND_WIDGET
, ///< Fund button.
1460 /** Widgets of the #IndustryViewWindow class. */
1461 enum IndustryViewWidgets
{
1462 WID_IV_CAPTION
= ::WID_IV_CAPTION
, ///< Caption of the window.
1463 WID_IV_VIEWPORT
= ::WID_IV_VIEWPORT
, ///< Viewport of the industry.
1464 WID_IV_INFO
= ::WID_IV_INFO
, ///< Info of the industry.
1465 WID_IV_GOTO
= ::WID_IV_GOTO
, ///< Goto button.
1466 WID_IV_DISPLAY
= ::WID_IV_DISPLAY
, ///< Display chain button.
1469 /** Widgets of the #IndustryDirectoryWindow class. */
1470 enum IndustryDirectoryWidgets
{
1471 WID_ID_DROPDOWN_ORDER
= ::WID_ID_DROPDOWN_ORDER
, ///< Dropdown for the order of the sort.
1472 WID_ID_DROPDOWN_CRITERIA
= ::WID_ID_DROPDOWN_CRITERIA
, ///< Dropdown for the criteria of the sort.
1473 WID_ID_INDUSTRY_LIST
= ::WID_ID_INDUSTRY_LIST
, ///< Industry list.
1474 WID_ID_SCROLLBAR
= ::WID_ID_SCROLLBAR
, ///< Scrollbar of the list.
1477 /** Widgets of the #IndustryCargoesWindow class */
1478 enum IndustryCargoesWidgets
{
1479 WID_IC_CAPTION
= ::WID_IC_CAPTION
, ///< Caption of the window.
1480 WID_IC_NOTIFY
= ::WID_IC_NOTIFY
, ///< Row of buttons at the bottom.
1481 WID_IC_PANEL
= ::WID_IC_PANEL
, ///< Panel that shows the chain.
1482 WID_IC_SCROLLBAR
= ::WID_IC_SCROLLBAR
, ///< Scrollbar of the panel.
1483 WID_IC_CARGO_DROPDOWN
= ::WID_IC_CARGO_DROPDOWN
, ///< Select cargo dropdown.
1484 WID_IC_IND_DROPDOWN
= ::WID_IC_IND_DROPDOWN
, ///< Select industry dropdown.
1487 /* automatically generated from ../../widgets/intro_widget.h */
1488 /** Widgets of the #SelectGameWindow class. */
1489 enum SelectGameIntroWidgets
{
1490 WID_SGI_GENERATE_GAME
= ::WID_SGI_GENERATE_GAME
, ///< Generate game button.
1491 WID_SGI_LOAD_GAME
= ::WID_SGI_LOAD_GAME
, ///< Load game button.
1492 WID_SGI_PLAY_SCENARIO
= ::WID_SGI_PLAY_SCENARIO
, ///< Play scenario button.
1493 WID_SGI_PLAY_HEIGHTMAP
= ::WID_SGI_PLAY_HEIGHTMAP
, ///< Play heightmap button.
1494 WID_SGI_EDIT_SCENARIO
= ::WID_SGI_EDIT_SCENARIO
, ///< Edit scenario button.
1495 WID_SGI_PLAY_NETWORK
= ::WID_SGI_PLAY_NETWORK
, ///< Play network button.
1496 WID_SGI_TEMPERATE_LANDSCAPE
= ::WID_SGI_TEMPERATE_LANDSCAPE
, ///< Select temperate landscape button.
1497 WID_SGI_ARCTIC_LANDSCAPE
= ::WID_SGI_ARCTIC_LANDSCAPE
, ///< Select arctic landscape button.
1498 WID_SGI_TROPIC_LANDSCAPE
= ::WID_SGI_TROPIC_LANDSCAPE
, ///< Select tropic landscape button.
1499 WID_SGI_TOYLAND_LANDSCAPE
= ::WID_SGI_TOYLAND_LANDSCAPE
, ///< Select toyland landscape button.
1500 WID_SGI_BASESET_SELECTION
= ::WID_SGI_BASESET_SELECTION
, ///< Baseset selection.
1501 WID_SGI_BASESET
= ::WID_SGI_BASESET
, ///< Baseset errors.
1502 WID_SGI_TRANSLATION_SELECTION
= ::WID_SGI_TRANSLATION_SELECTION
, ///< Translation selection.
1503 WID_SGI_TRANSLATION
= ::WID_SGI_TRANSLATION
, ///< Translation errors.
1504 WID_SGI_OPTIONS
= ::WID_SGI_OPTIONS
, ///< Options button.
1505 WID_SGI_HIGHSCORE
= ::WID_SGI_HIGHSCORE
, ///< Highscore button.
1506 WID_SGI_SETTINGS_OPTIONS
= ::WID_SGI_SETTINGS_OPTIONS
, ///< Settings button.
1507 WID_SGI_GRF_SETTINGS
= ::WID_SGI_GRF_SETTINGS
, ///< NewGRF button.
1508 WID_SGI_CONTENT_DOWNLOAD
= ::WID_SGI_CONTENT_DOWNLOAD
, ///< Content Download button.
1509 WID_SGI_AI_SETTINGS
= ::WID_SGI_AI_SETTINGS
, ///< AI button.
1510 WID_SGI_EXIT
= ::WID_SGI_EXIT
, ///< Exit button.
1513 /* automatically generated from ../../widgets/link_graph_legend_widget.h */
1514 /** Widgets of the WC_LINKGRAPH_LEGEND. */
1515 enum LinkGraphLegendWidgets
{
1516 WID_LGL_CAPTION
= ::WID_LGL_CAPTION
, ///< Caption widget.
1517 WID_LGL_SATURATION
= ::WID_LGL_SATURATION
, ///< Saturation legend.
1518 WID_LGL_SATURATION_FIRST
= ::WID_LGL_SATURATION_FIRST
,
1519 WID_LGL_SATURATION_LAST
= ::WID_LGL_SATURATION_LAST
,
1520 WID_LGL_COMPANIES
= ::WID_LGL_COMPANIES
, ///< Company selection widget.
1521 WID_LGL_COMPANY_FIRST
= ::WID_LGL_COMPANY_FIRST
,
1522 WID_LGL_COMPANY_LAST
= ::WID_LGL_COMPANY_LAST
,
1523 WID_LGL_COMPANIES_ALL
= ::WID_LGL_COMPANIES_ALL
,
1524 WID_LGL_COMPANIES_NONE
= ::WID_LGL_COMPANIES_NONE
,
1525 WID_LGL_CARGOES
= ::WID_LGL_CARGOES
, ///< Cargo selection widget.
1526 WID_LGL_CARGO_FIRST
= ::WID_LGL_CARGO_FIRST
,
1527 WID_LGL_CARGO_LAST
= ::WID_LGL_CARGO_LAST
,
1528 WID_LGL_CARGOES_ALL
= ::WID_LGL_CARGOES_ALL
,
1529 WID_LGL_CARGOES_NONE
= ::WID_LGL_CARGOES_NONE
,
1532 /* automatically generated from ../../widgets/main_widget.h */
1533 /** Widgets of the #MainWindow class. */
1535 WID_M_VIEWPORT
= ::WID_M_VIEWPORT
, ///< Main window viewport.
1538 /* automatically generated from ../../widgets/misc_widget.h */
1539 /** Widgets of the #LandInfoWindow class. */
1540 enum LandInfoWidgets
{
1541 WID_LI_BACKGROUND
= ::WID_LI_BACKGROUND
, ///< Background of the window.
1544 /** Widgets of the #TooltipsWindow class. */
1545 enum ToolTipsWidgets
{
1546 WID_TT_BACKGROUND
= ::WID_TT_BACKGROUND
, ///< Background of the window.
1549 /** Widgets of the #AboutWindow class. */
1551 WID_A_SCROLLING_TEXT
= ::WID_A_SCROLLING_TEXT
, ///< The actually scrolling text.
1552 WID_A_WEBSITE
= ::WID_A_WEBSITE
, ///< URL of OpenTTD website.
1555 /** Widgets of the #QueryStringWindow class. */
1556 enum QueryStringWidgets
{
1557 WID_QS_CAPTION
= ::WID_QS_CAPTION
, ///< Caption of the window.
1558 WID_QS_TEXT
= ::WID_QS_TEXT
, ///< Text of the query.
1559 WID_QS_DEFAULT
= ::WID_QS_DEFAULT
, ///< Default button.
1560 WID_QS_CANCEL
= ::WID_QS_CANCEL
, ///< Cancel button.
1561 WID_QS_OK
= ::WID_QS_OK
, ///< OK button.
1564 /** Widgets of the #QueryWindow class. */
1566 WID_Q_CAPTION
= ::WID_Q_CAPTION
, ///< Caption of the window.
1567 WID_Q_TEXT
= ::WID_Q_TEXT
, ///< Text of the query.
1568 WID_Q_NO
= ::WID_Q_NO
, ///< Yes button.
1569 WID_Q_YES
= ::WID_Q_YES
, ///< No button.
1572 /** Widgets of the #TextfileWindow class. */
1573 enum TextfileWidgets
{
1574 WID_TF_CAPTION
= ::WID_TF_CAPTION
, ///< The caption of the window.
1575 WID_TF_WRAPTEXT
= ::WID_TF_WRAPTEXT
, ///< Whether or not to wrap the text.
1576 WID_TF_BACKGROUND
= ::WID_TF_BACKGROUND
, ///< Panel to draw the textfile on.
1577 WID_TF_VSCROLLBAR
= ::WID_TF_VSCROLLBAR
, ///< Vertical scrollbar to scroll through the textfile up-and-down.
1578 WID_TF_HSCROLLBAR
= ::WID_TF_HSCROLLBAR
, ///< Horizontal scrollbar to scroll through the textfile left-to-right.
1581 /* automatically generated from ../../widgets/music_widget.h */
1582 /** Widgets of the #MusicTrackSelectionWindow class. */
1583 enum MusicTrackSelectionWidgets
{
1584 WID_MTS_LIST_LEFT
= ::WID_MTS_LIST_LEFT
, ///< Left button.
1585 WID_MTS_PLAYLIST
= ::WID_MTS_PLAYLIST
, ///< Playlist.
1586 WID_MTS_LIST_RIGHT
= ::WID_MTS_LIST_RIGHT
, ///< Right button.
1587 WID_MTS_ALL
= ::WID_MTS_ALL
, ///< All button.
1588 WID_MTS_OLD
= ::WID_MTS_OLD
, ///< Old button.
1589 WID_MTS_NEW
= ::WID_MTS_NEW
, ///< New button.
1590 WID_MTS_EZY
= ::WID_MTS_EZY
, ///< Ezy button.
1591 WID_MTS_CUSTOM1
= ::WID_MTS_CUSTOM1
, ///< Custom1 button.
1592 WID_MTS_CUSTOM2
= ::WID_MTS_CUSTOM2
, ///< Custom2 button.
1593 WID_MTS_CLEAR
= ::WID_MTS_CLEAR
, ///< Clear button.
1596 /** Widgets of the #MusicWindow class. */
1598 WID_M_PREV
= ::WID_M_PREV
, ///< Previous button.
1599 WID_M_NEXT
= ::WID_M_NEXT
, ///< Next button.
1600 WID_M_STOP
= ::WID_M_STOP
, ///< Stop button.
1601 WID_M_PLAY
= ::WID_M_PLAY
, ///< Play button.
1602 WID_M_SLIDERS
= ::WID_M_SLIDERS
, ///< Sliders.
1603 WID_M_MUSIC_VOL
= ::WID_M_MUSIC_VOL
, ///< Music volume.
1604 WID_M_EFFECT_VOL
= ::WID_M_EFFECT_VOL
, ///< Effect volume.
1605 WID_M_BACKGROUND
= ::WID_M_BACKGROUND
, ///< Background of the window.
1606 WID_M_TRACK
= ::WID_M_TRACK
, ///< Track playing.
1607 WID_M_TRACK_NR
= ::WID_M_TRACK_NR
, ///< Track number.
1608 WID_M_TRACK_TITLE
= ::WID_M_TRACK_TITLE
, ///< Track title.
1609 WID_M_TRACK_NAME
= ::WID_M_TRACK_NAME
, ///< Track name.
1610 WID_M_SHUFFLE
= ::WID_M_SHUFFLE
, ///< Shuffle button.
1611 WID_M_PROGRAMME
= ::WID_M_PROGRAMME
, ///< Program button.
1612 WID_M_ALL
= ::WID_M_ALL
, ///< All button.
1613 WID_M_OLD
= ::WID_M_OLD
, ///< Old button.
1614 WID_M_NEW
= ::WID_M_NEW
, ///< New button.
1615 WID_M_EZY
= ::WID_M_EZY
, ///< Ezy button.
1616 WID_M_CUSTOM1
= ::WID_M_CUSTOM1
, ///< Custom1 button.
1617 WID_M_CUSTOM2
= ::WID_M_CUSTOM2
, ///< Custom2 button.
1620 /* automatically generated from ../../widgets/network_chat_widget.h */
1621 /** Widgets of the #NetworkChatWindow class. */
1622 enum NetWorkChatWidgets
{
1623 WID_NC_CLOSE
= ::WID_NC_CLOSE
, ///< Close button.
1624 WID_NC_BACKGROUND
= ::WID_NC_BACKGROUND
, ///< Background of the window.
1625 WID_NC_DESTINATION
= ::WID_NC_DESTINATION
, ///< Destination.
1626 WID_NC_TEXTBOX
= ::WID_NC_TEXTBOX
, ///< Textbox.
1627 WID_NC_SENDBUTTON
= ::WID_NC_SENDBUTTON
, ///< Send button.
1630 /* automatically generated from ../../widgets/network_content_widget.h */
1631 /** Widgets of the #NetworkContentDownloadStatusWindow class. */
1632 enum NetworkContentDownloadStatusWidgets
{
1633 WID_NCDS_BACKGROUND
= ::WID_NCDS_BACKGROUND
, ///< Background of the window.
1634 WID_NCDS_CANCELOK
= ::WID_NCDS_CANCELOK
, ///< (Optional) Cancel/OK button.
1637 /** Widgets of the #NetworkContentListWindow class. */
1638 enum NetworkContentListWidgets
{
1639 WID_NCL_BACKGROUND
= ::WID_NCL_BACKGROUND
, ///< Resize button.
1641 WID_NCL_FILTER_CAPT
= ::WID_NCL_FILTER_CAPT
, ///< Caption for the filter editbox.
1642 WID_NCL_FILTER
= ::WID_NCL_FILTER
, ///< Filter editbox.
1644 WID_NCL_CHECKBOX
= ::WID_NCL_CHECKBOX
, ///< Button above checkboxes.
1645 WID_NCL_TYPE
= ::WID_NCL_TYPE
, ///< 'Type' button.
1646 WID_NCL_NAME
= ::WID_NCL_NAME
, ///< 'Name' button.
1648 WID_NCL_MATRIX
= ::WID_NCL_MATRIX
, ///< Panel with list of content.
1649 WID_NCL_SCROLLBAR
= ::WID_NCL_SCROLLBAR
, ///< Scrollbar of matrix.
1651 WID_NCL_DETAILS
= ::WID_NCL_DETAILS
, ///< Panel with content details.
1652 WID_NCL_TEXTFILE
= ::WID_NCL_TEXTFILE
, ///< Open readme, changelog (+1) or license (+2) of a file in the content window.
1654 WID_NCL_SELECT_ALL
= ::WID_NCL_SELECT_ALL
, ///< 'Select all' button.
1655 WID_NCL_SELECT_UPDATE
= ::WID_NCL_SELECT_UPDATE
, ///< 'Select updates' button.
1656 WID_NCL_UNSELECT
= ::WID_NCL_UNSELECT
, ///< 'Unselect all' button.
1657 WID_NCL_OPEN_URL
= ::WID_NCL_OPEN_URL
, ///< 'Open url' button.
1658 WID_NCL_CANCEL
= ::WID_NCL_CANCEL
, ///< 'Cancel' button.
1659 WID_NCL_DOWNLOAD
= ::WID_NCL_DOWNLOAD
, ///< 'Download' button.
1661 WID_NCL_SEL_ALL_UPDATE
= ::WID_NCL_SEL_ALL_UPDATE
, ///< #NWID_SELECTION widget for select all/update buttons..
1662 WID_NCL_SEARCH_EXTERNAL
= ::WID_NCL_SEARCH_EXTERNAL
, ///< Search external sites for missing NewGRF.
1665 /* automatically generated from ../../widgets/network_widget.h */
1666 /** Widgets of the #NetworkGameWindow class. */
1667 enum NetworkGameWidgets
{
1668 WID_NG_MAIN
= ::WID_NG_MAIN
, ///< Main panel.
1670 WID_NG_CONNECTION
= ::WID_NG_CONNECTION
, ///< Label in front of connection droplist.
1671 WID_NG_CONN_BTN
= ::WID_NG_CONN_BTN
, ///< 'Connection' droplist button.
1672 WID_NG_CLIENT_LABEL
= ::WID_NG_CLIENT_LABEL
, ///< Label in front of client name edit box.
1673 WID_NG_CLIENT
= ::WID_NG_CLIENT
, ///< Panel with editbox to set client name.
1674 WID_NG_FILTER_LABEL
= ::WID_NG_FILTER_LABEL
, ///< Label in front of the filter/search edit box.
1675 WID_NG_FILTER
= ::WID_NG_FILTER
, ///< Panel with the edit box to enter the search text.
1677 WID_NG_HEADER
= ::WID_NG_HEADER
, ///< Header container of the matrix.
1678 WID_NG_NAME
= ::WID_NG_NAME
, ///< 'Name' button.
1679 WID_NG_CLIENTS
= ::WID_NG_CLIENTS
, ///< 'Clients' button.
1680 WID_NG_MAPSIZE
= ::WID_NG_MAPSIZE
, ///< 'Map size' button.
1681 WID_NG_DATE
= ::WID_NG_DATE
, ///< 'Date' button.
1682 WID_NG_YEARS
= ::WID_NG_YEARS
, ///< 'Years' button.
1683 WID_NG_INFO
= ::WID_NG_INFO
, ///< Third button in the game list panel.
1685 WID_NG_MATRIX
= ::WID_NG_MATRIX
, ///< Panel with list of games.
1686 WID_NG_SCROLLBAR
= ::WID_NG_SCROLLBAR
, ///< Scrollbar of matrix.
1688 WID_NG_LASTJOINED_LABEL
= ::WID_NG_LASTJOINED_LABEL
, ///< Label "Last joined server:".
1689 WID_NG_LASTJOINED
= ::WID_NG_LASTJOINED
, ///< Info about the last joined server.
1690 WID_NG_LASTJOINED_SPACER
= ::WID_NG_LASTJOINED_SPACER
, ///< Spacer after last joined server panel.
1692 WID_NG_DETAILS
= ::WID_NG_DETAILS
, ///< Panel with game details.
1693 WID_NG_DETAILS_SPACER
= ::WID_NG_DETAILS_SPACER
, ///< Spacer for game actual details.
1694 WID_NG_JOIN
= ::WID_NG_JOIN
, ///< 'Join game' button.
1695 WID_NG_REFRESH
= ::WID_NG_REFRESH
, ///< 'Refresh server' button.
1696 WID_NG_NEWGRF
= ::WID_NG_NEWGRF
, ///< 'NewGRF Settings' button.
1697 WID_NG_NEWGRF_SEL
= ::WID_NG_NEWGRF_SEL
, ///< Selection 'widget' to hide the NewGRF settings.
1698 WID_NG_NEWGRF_MISSING
= ::WID_NG_NEWGRF_MISSING
, ///< 'Find missing NewGRF online' button.
1699 WID_NG_NEWGRF_MISSING_SEL
= ::WID_NG_NEWGRF_MISSING_SEL
, ///< Selection widget for the above button.
1701 WID_NG_FIND
= ::WID_NG_FIND
, ///< 'Find server' button.
1702 WID_NG_ADD
= ::WID_NG_ADD
, ///< 'Add server' button.
1703 WID_NG_START
= ::WID_NG_START
, ///< 'Start server' button.
1704 WID_NG_CANCEL
= ::WID_NG_CANCEL
, ///< 'Cancel' button.
1707 /** Widgets of the #NetworkStartServerWindow class. */
1708 enum NetworkStartServerWidgets
{
1709 WID_NSS_BACKGROUND
= ::WID_NSS_BACKGROUND
, ///< Background of the window.
1710 WID_NSS_GAMENAME_LABEL
= ::WID_NSS_GAMENAME_LABEL
, ///< Label for the game name.
1711 WID_NSS_GAMENAME
= ::WID_NSS_GAMENAME
, ///< Background for editbox to set game name.
1712 WID_NSS_SETPWD
= ::WID_NSS_SETPWD
, ///< 'Set password' button.
1713 WID_NSS_CONNTYPE_LABEL
= ::WID_NSS_CONNTYPE_LABEL
, ///< Label for 'connection type'.
1714 WID_NSS_CONNTYPE_BTN
= ::WID_NSS_CONNTYPE_BTN
, ///< 'Connection type' droplist button.
1715 WID_NSS_CLIENTS_LABEL
= ::WID_NSS_CLIENTS_LABEL
, ///< Label for 'max clients'.
1716 WID_NSS_CLIENTS_BTND
= ::WID_NSS_CLIENTS_BTND
, ///< 'Max clients' downarrow.
1717 WID_NSS_CLIENTS_TXT
= ::WID_NSS_CLIENTS_TXT
, ///< 'Max clients' text.
1718 WID_NSS_CLIENTS_BTNU
= ::WID_NSS_CLIENTS_BTNU
, ///< 'Max clients' uparrow.
1719 WID_NSS_COMPANIES_LABEL
= ::WID_NSS_COMPANIES_LABEL
, ///< Label for 'max companies'.
1720 WID_NSS_COMPANIES_BTND
= ::WID_NSS_COMPANIES_BTND
, ///< 'Max companies' downarrow.
1721 WID_NSS_COMPANIES_TXT
= ::WID_NSS_COMPANIES_TXT
, ///< 'Max companies' text.
1722 WID_NSS_COMPANIES_BTNU
= ::WID_NSS_COMPANIES_BTNU
, ///< 'Max companies' uparrow.
1723 WID_NSS_SPECTATORS_LABEL
= ::WID_NSS_SPECTATORS_LABEL
, ///< Label for 'max spectators'.
1724 WID_NSS_SPECTATORS_BTND
= ::WID_NSS_SPECTATORS_BTND
, ///< 'Max spectators' downarrow.
1725 WID_NSS_SPECTATORS_TXT
= ::WID_NSS_SPECTATORS_TXT
, ///< 'Max spectators' text.
1726 WID_NSS_SPECTATORS_BTNU
= ::WID_NSS_SPECTATORS_BTNU
, ///< 'Max spectators' uparrow.
1728 WID_NSS_LANGUAGE_LABEL
= ::WID_NSS_LANGUAGE_LABEL
, ///< Label for 'language spoken'.
1729 WID_NSS_LANGUAGE_BTN
= ::WID_NSS_LANGUAGE_BTN
, ///< 'Language spoken' droplist button.
1731 WID_NSS_GENERATE_GAME
= ::WID_NSS_GENERATE_GAME
, ///< New game button.
1732 WID_NSS_LOAD_GAME
= ::WID_NSS_LOAD_GAME
, ///< Load game button.
1733 WID_NSS_PLAY_SCENARIO
= ::WID_NSS_PLAY_SCENARIO
, ///< Play scenario button.
1734 WID_NSS_PLAY_HEIGHTMAP
= ::WID_NSS_PLAY_HEIGHTMAP
, ///< Play heightmap button.
1736 WID_NSS_CANCEL
= ::WID_NSS_CANCEL
, ///< 'Cancel' button.
1739 /** Widgets of the #NetworkLobbyWindow class. */
1740 enum NetworkLobbyWidgets
{
1741 WID_NL_BACKGROUND
= ::WID_NL_BACKGROUND
, ///< Background of the window.
1742 WID_NL_TEXT
= ::WID_NL_TEXT
, ///< Heading text.
1743 WID_NL_HEADER
= ::WID_NL_HEADER
, ///< Header above list of companies.
1744 WID_NL_MATRIX
= ::WID_NL_MATRIX
, ///< List of companies.
1745 WID_NL_SCROLLBAR
= ::WID_NL_SCROLLBAR
, ///< Scroll bar.
1746 WID_NL_DETAILS
= ::WID_NL_DETAILS
, ///< Company details.
1747 WID_NL_JOIN
= ::WID_NL_JOIN
, ///< 'Join company' button.
1748 WID_NL_NEW
= ::WID_NL_NEW
, ///< 'New company' button.
1749 WID_NL_SPECTATE
= ::WID_NL_SPECTATE
, ///< 'Spectate game' button.
1750 WID_NL_REFRESH
= ::WID_NL_REFRESH
, ///< 'Refresh server' button.
1751 WID_NL_CANCEL
= ::WID_NL_CANCEL
, ///< 'Cancel' button.
1754 /** Widgets of the #NetworkClientListWindow class. */
1755 enum ClientListWidgets
{
1756 WID_CL_PANEL
= ::WID_CL_PANEL
, ///< Panel of the window.
1759 /** Widgets of the #NetworkClientListPopupWindow class. */
1760 enum ClientListPopupWidgets
{
1761 WID_CLP_PANEL
= ::WID_CLP_PANEL
, ///< Panel of the window.
1764 /** Widgets of the #NetworkJoinStatusWindow class. */
1765 enum NetworkJoinStatusWidgets
{
1766 WID_NJS_BACKGROUND
= ::WID_NJS_BACKGROUND
, ///< Background of the window.
1767 WID_NJS_CANCELOK
= ::WID_NJS_CANCELOK
, ///< Cancel / OK button.
1770 /** Widgets of the #NetworkCompanyPasswordWindow class. */
1771 enum NetworkCompanyPasswordWidgets
{
1772 WID_NCP_BACKGROUND
= ::WID_NCP_BACKGROUND
, ///< Background of the window.
1773 WID_NCP_LABEL
= ::WID_NCP_LABEL
, ///< Label in front of the password field.
1774 WID_NCP_PASSWORD
= ::WID_NCP_PASSWORD
, ///< Input field for the password.
1775 WID_NCP_SAVE_AS_DEFAULT_PASSWORD
= ::WID_NCP_SAVE_AS_DEFAULT_PASSWORD
, ///< Toggle 'button' for saving the current password as default password.
1776 WID_NCP_CANCEL
= ::WID_NCP_CANCEL
, ///< Close the window without changing anything.
1777 WID_NCP_OK
= ::WID_NCP_OK
, ///< Safe the password etc.
1780 /* automatically generated from ../../widgets/newgrf_debug_widget.h */
1781 /** Widgets of the #NewGRFInspectWindow class. */
1782 enum NewGRFInspectWidgets
{
1783 WID_NGRFI_CAPTION
= ::WID_NGRFI_CAPTION
, ///< The caption bar of course.
1784 WID_NGRFI_PARENT
= ::WID_NGRFI_PARENT
, ///< Inspect the parent.
1785 WID_NGRFI_VEH_PREV
= ::WID_NGRFI_VEH_PREV
, ///< Go to previous vehicle in chain.
1786 WID_NGRFI_VEH_NEXT
= ::WID_NGRFI_VEH_NEXT
, ///< Go to next vehicle in chain.
1787 WID_NGRFI_VEH_CHAIN
= ::WID_NGRFI_VEH_CHAIN
, ///< Display for vehicle chain.
1788 WID_NGRFI_MAINPANEL
= ::WID_NGRFI_MAINPANEL
, ///< Panel widget containing the actual data.
1789 WID_NGRFI_SCROLLBAR
= ::WID_NGRFI_SCROLLBAR
, ///< Scrollbar.
1792 /** Widgets of the #SpriteAlignerWindow class. */
1793 enum SpriteAlignerWidgets
{
1794 WID_SA_CAPTION
= ::WID_SA_CAPTION
, ///< Caption of the window.
1795 WID_SA_PREVIOUS
= ::WID_SA_PREVIOUS
, ///< Skip to the previous sprite.
1796 WID_SA_GOTO
= ::WID_SA_GOTO
, ///< Go to a given sprite.
1797 WID_SA_NEXT
= ::WID_SA_NEXT
, ///< Skip to the next sprite.
1798 WID_SA_UP
= ::WID_SA_UP
, ///< Move the sprite up.
1799 WID_SA_LEFT
= ::WID_SA_LEFT
, ///< Move the sprite to the left.
1800 WID_SA_RIGHT
= ::WID_SA_RIGHT
, ///< Move the sprite to the right.
1801 WID_SA_DOWN
= ::WID_SA_DOWN
, ///< Move the sprite down.
1802 WID_SA_SPRITE
= ::WID_SA_SPRITE
, ///< The actual sprite.
1803 WID_SA_OFFSETS_ABS
= ::WID_SA_OFFSETS_ABS
, ///< The sprite offsets (absolute).
1804 WID_SA_OFFSETS_REL
= ::WID_SA_OFFSETS_REL
, ///< The sprite offsets (relative).
1805 WID_SA_PICKER
= ::WID_SA_PICKER
, ///< Sprite picker.
1806 WID_SA_LIST
= ::WID_SA_LIST
, ///< Queried sprite list.
1807 WID_SA_SCROLLBAR
= ::WID_SA_SCROLLBAR
, ///< Scrollbar for sprite list.
1808 WID_SA_RESET_REL
= ::WID_SA_RESET_REL
, ///< Reset relative sprite offset
1811 /* automatically generated from ../../widgets/newgrf_widget.h */
1812 /** Widgets of the #NewGRFParametersWindow class. */
1813 enum NewGRFParametersWidgets
{
1814 WID_NP_SHOW_NUMPAR
= ::WID_NP_SHOW_NUMPAR
, ///< #NWID_SELECTION to optionally display #WID_NP_NUMPAR.
1815 WID_NP_NUMPAR_DEC
= ::WID_NP_NUMPAR_DEC
, ///< Button to decrease number of parameters.
1816 WID_NP_NUMPAR_INC
= ::WID_NP_NUMPAR_INC
, ///< Button to increase number of parameters.
1817 WID_NP_NUMPAR
= ::WID_NP_NUMPAR
, ///< Optional number of parameters.
1818 WID_NP_NUMPAR_TEXT
= ::WID_NP_NUMPAR_TEXT
, ///< Text description.
1819 WID_NP_BACKGROUND
= ::WID_NP_BACKGROUND
, ///< Panel to draw the settings on.
1820 WID_NP_SCROLLBAR
= ::WID_NP_SCROLLBAR
, ///< Scrollbar to scroll through all settings.
1821 WID_NP_ACCEPT
= ::WID_NP_ACCEPT
, ///< Accept button.
1822 WID_NP_RESET
= ::WID_NP_RESET
, ///< Reset button.
1823 WID_NP_SHOW_DESCRIPTION
= ::WID_NP_SHOW_DESCRIPTION
, ///< #NWID_SELECTION to optionally display parameter descriptions.
1824 WID_NP_DESCRIPTION
= ::WID_NP_DESCRIPTION
, ///< Multi-line description of a parameter.
1827 /** Widgets of the #NewGRFWindow class. */
1828 enum NewGRFStateWidgets
{
1829 WID_NS_PRESET_LIST
= ::WID_NS_PRESET_LIST
, ///< Active NewGRF preset.
1830 WID_NS_PRESET_SAVE
= ::WID_NS_PRESET_SAVE
, ///< Save list of active NewGRFs as presets.
1831 WID_NS_PRESET_DELETE
= ::WID_NS_PRESET_DELETE
, ///< Delete active preset.
1832 WID_NS_ADD
= ::WID_NS_ADD
, ///< Add NewGRF to active list.
1833 WID_NS_REMOVE
= ::WID_NS_REMOVE
, ///< Remove NewGRF from active list.
1834 WID_NS_MOVE_UP
= ::WID_NS_MOVE_UP
, ///< Move NewGRF up in active list.
1835 WID_NS_MOVE_DOWN
= ::WID_NS_MOVE_DOWN
, ///< Move NewGRF down in active list.
1836 WID_NS_UPGRADE
= ::WID_NS_UPGRADE
, ///< Upgrade NewGRFs that have a newer version available.
1837 WID_NS_FILTER
= ::WID_NS_FILTER
, ///< Filter list of available NewGRFs.
1838 WID_NS_FILE_LIST
= ::WID_NS_FILE_LIST
, ///< List window of active NewGRFs.
1839 WID_NS_SCROLLBAR
= ::WID_NS_SCROLLBAR
, ///< Scrollbar for active NewGRF list.
1840 WID_NS_AVAIL_LIST
= ::WID_NS_AVAIL_LIST
, ///< List window of available NewGRFs.
1841 WID_NS_SCROLL2BAR
= ::WID_NS_SCROLL2BAR
, ///< Scrollbar for available NewGRF list.
1842 WID_NS_NEWGRF_INFO_TITLE
= ::WID_NS_NEWGRF_INFO_TITLE
, ///< Title for Info on selected NewGRF.
1843 WID_NS_NEWGRF_INFO
= ::WID_NS_NEWGRF_INFO
, ///< Panel for Info on selected NewGRF.
1844 WID_NS_OPEN_URL
= ::WID_NS_OPEN_URL
, ///< Open URL of NewGRF.
1845 WID_NS_NEWGRF_TEXTFILE
= ::WID_NS_NEWGRF_TEXTFILE
, ///< Open NewGRF readme, changelog (+1) or license (+2).
1846 WID_NS_SET_PARAMETERS
= ::WID_NS_SET_PARAMETERS
, ///< Open Parameters Window for selected NewGRF for editing parameters.
1847 WID_NS_VIEW_PARAMETERS
= ::WID_NS_VIEW_PARAMETERS
, ///< Open Parameters Window for selected NewGRF for viewing parameters.
1848 WID_NS_TOGGLE_PALETTE
= ::WID_NS_TOGGLE_PALETTE
, ///< Toggle Palette of selected, active NewGRF.
1849 WID_NS_APPLY_CHANGES
= ::WID_NS_APPLY_CHANGES
, ///< Apply changes to NewGRF config.
1850 WID_NS_RESCAN_FILES
= ::WID_NS_RESCAN_FILES
, ///< Rescan files (available NewGRFs).
1851 WID_NS_RESCAN_FILES2
= ::WID_NS_RESCAN_FILES2
, ///< Rescan files (active NewGRFs).
1852 WID_NS_CONTENT_DOWNLOAD
= ::WID_NS_CONTENT_DOWNLOAD
, ///< Open content download (available NewGRFs).
1853 WID_NS_CONTENT_DOWNLOAD2
= ::WID_NS_CONTENT_DOWNLOAD2
, ///< Open content download (active NewGRFs).
1854 WID_NS_SHOW_REMOVE
= ::WID_NS_SHOW_REMOVE
, ///< Select active list buttons (0, 1 = simple layout).
1855 WID_NS_SHOW_APPLY
= ::WID_NS_SHOW_APPLY
, ///< Select display of the buttons below the 'details'.
1858 /** Widgets of the #SavePresetWindow class. */
1859 enum SavePresetWidgets
{
1860 WID_SVP_PRESET_LIST
= ::WID_SVP_PRESET_LIST
, ///< List with available preset names.
1861 WID_SVP_SCROLLBAR
= ::WID_SVP_SCROLLBAR
, ///< Scrollbar for the list available preset names.
1862 WID_SVP_EDITBOX
= ::WID_SVP_EDITBOX
, ///< Edit box for changing the preset name.
1863 WID_SVP_CANCEL
= ::WID_SVP_CANCEL
, ///< Button to cancel saving the preset.
1864 WID_SVP_SAVE
= ::WID_SVP_SAVE
, ///< Button to save the preset.
1867 /** Widgets of the #ScanProgressWindow class. */
1868 enum ScanProgressWidgets
{
1869 WID_SP_PROGRESS_BAR
= ::WID_SP_PROGRESS_BAR
, ///< Simple progress bar.
1870 WID_SP_PROGRESS_TEXT
= ::WID_SP_PROGRESS_TEXT
, ///< Text explaining what is happening.
1873 /* automatically generated from ../../widgets/news_widget.h */
1874 /** Widgets of the #NewsWindow class. */
1876 WID_N_PANEL
= ::WID_N_PANEL
, ///< Panel of the window.
1877 WID_N_TITLE
= ::WID_N_TITLE
, ///< Title of the company news.
1878 WID_N_HEADLINE
= ::WID_N_HEADLINE
, ///< The news headline.
1879 WID_N_CLOSEBOX
= ::WID_N_CLOSEBOX
, ///< Close the window.
1880 WID_N_DATE
= ::WID_N_DATE
, ///< Date of the news item.
1881 WID_N_CAPTION
= ::WID_N_CAPTION
, ///< Title bar of the window. Only used in small news items.
1882 WID_N_INSET
= ::WID_N_INSET
, ///< Inset around the viewport in the window. Only used in small news items.
1883 WID_N_VIEWPORT
= ::WID_N_VIEWPORT
, ///< Viewport in the window.
1884 WID_N_COMPANY_MSG
= ::WID_N_COMPANY_MSG
, ///< Message in company news items.
1885 WID_N_MESSAGE
= ::WID_N_MESSAGE
, ///< Space for displaying the message. Only used in small news items.
1886 WID_N_MGR_FACE
= ::WID_N_MGR_FACE
, ///< Face of the manager.
1887 WID_N_MGR_NAME
= ::WID_N_MGR_NAME
, ///< Name of the manager.
1888 WID_N_VEH_TITLE
= ::WID_N_VEH_TITLE
, ///< Vehicle new title.
1889 WID_N_VEH_BKGND
= ::WID_N_VEH_BKGND
, ///< Dark background of new vehicle news.
1890 WID_N_VEH_NAME
= ::WID_N_VEH_NAME
, ///< Name of the new vehicle.
1891 WID_N_VEH_SPR
= ::WID_N_VEH_SPR
, ///< Graphical display of the new vehicle.
1892 WID_N_VEH_INFO
= ::WID_N_VEH_INFO
, ///< Some technical data of the new vehicle.
1895 /** Widgets of the #MessageHistoryWindow class. */
1896 enum MessageHistoryWidgets
{
1897 WID_MH_STICKYBOX
= ::WID_MH_STICKYBOX
, ///< Stickybox.
1898 WID_MH_BACKGROUND
= ::WID_MH_BACKGROUND
, ///< Background of the window.
1899 WID_MH_SCROLLBAR
= ::WID_MH_SCROLLBAR
, ///< Scrollbar for the list.
1902 /* automatically generated from ../../widgets/object_widget.h */
1903 /** Widgets of the #BuildObjectWindow class. */
1904 enum BuildObjectWidgets
{
1905 WID_BO_CLASS_LIST
= ::WID_BO_CLASS_LIST
, ///< The list with classes.
1906 WID_BO_SCROLLBAR
= ::WID_BO_SCROLLBAR
, ///< The scrollbar associated with the list.
1907 WID_BO_OBJECT_MATRIX
= ::WID_BO_OBJECT_MATRIX
, ///< The matrix with preview sprites.
1908 WID_BO_OBJECT_SPRITE
= ::WID_BO_OBJECT_SPRITE
, ///< A preview sprite of the object.
1909 WID_BO_OBJECT_NAME
= ::WID_BO_OBJECT_NAME
, ///< The name of the selected object.
1910 WID_BO_OBJECT_SIZE
= ::WID_BO_OBJECT_SIZE
, ///< The size of the selected object.
1911 WID_BO_INFO
= ::WID_BO_INFO
, ///< Other information about the object (from the NewGRF).
1913 WID_BO_SELECT_MATRIX
= ::WID_BO_SELECT_MATRIX
, ///< Selection preview matrix of objects of a given class.
1914 WID_BO_SELECT_IMAGE
= ::WID_BO_SELECT_IMAGE
, ///< Preview image in the #WID_BO_SELECT_MATRIX.
1915 WID_BO_SELECT_SCROLL
= ::WID_BO_SELECT_SCROLL
, ///< Scrollbar next to the #WID_BO_SELECT_MATRIX.
1918 /* automatically generated from ../../widgets/order_widget.h */
1919 /** Widgets of the #OrdersWindow class. */
1921 WID_O_CAPTION
= ::WID_O_CAPTION
, ///< Caption of the window.
1922 WID_O_TIMETABLE_VIEW
= ::WID_O_TIMETABLE_VIEW
, ///< Toggle timetable view.
1923 WID_O_ORDER_LIST
= ::WID_O_ORDER_LIST
, ///< Order list panel.
1924 WID_O_SCROLLBAR
= ::WID_O_SCROLLBAR
, ///< Order list scrollbar.
1925 WID_O_SKIP
= ::WID_O_SKIP
, ///< Skip current order.
1926 WID_O_DELETE
= ::WID_O_DELETE
, ///< Delete selected order.
1927 WID_O_STOP_SHARING
= ::WID_O_STOP_SHARING
, ///< Stop sharing orders.
1928 WID_O_NON_STOP
= ::WID_O_NON_STOP
, ///< Goto non-stop to destination.
1929 WID_O_GOTO
= ::WID_O_GOTO
, ///< Goto destination.
1930 WID_O_FULL_LOAD
= ::WID_O_FULL_LOAD
, ///< Select full load.
1931 WID_O_UNLOAD
= ::WID_O_UNLOAD
, ///< Select unload.
1932 WID_O_REFIT
= ::WID_O_REFIT
, ///< Select refit.
1933 WID_O_SERVICE
= ::WID_O_SERVICE
, ///< Select service (at depot).
1934 WID_O_EMPTY
= ::WID_O_EMPTY
, ///< Placeholder for refit dropdown when not owner.
1935 WID_O_REFIT_DROPDOWN
= ::WID_O_REFIT_DROPDOWN
, ///< Open refit options.
1936 WID_O_COND_VARIABLE
= ::WID_O_COND_VARIABLE
, ///< Choose condition variable.
1937 WID_O_COND_COMPARATOR
= ::WID_O_COND_COMPARATOR
, ///< Choose condition type.
1938 WID_O_COND_VALUE
= ::WID_O_COND_VALUE
, ///< Choose condition value.
1939 WID_O_SEL_TOP_LEFT
= ::WID_O_SEL_TOP_LEFT
, ///< #NWID_SELECTION widget for left part of the top row of the 'your train' order window.
1940 WID_O_SEL_TOP_MIDDLE
= ::WID_O_SEL_TOP_MIDDLE
, ///< #NWID_SELECTION widget for middle part of the top row of the 'your train' order window.
1941 WID_O_SEL_TOP_RIGHT
= ::WID_O_SEL_TOP_RIGHT
, ///< #NWID_SELECTION widget for right part of the top row of the 'your train' order window.
1942 WID_O_SEL_TOP_ROW_GROUNDVEHICLE
= ::WID_O_SEL_TOP_ROW_GROUNDVEHICLE
, ///< #NWID_SELECTION widget for the top row of the 'your train' order window.
1943 WID_O_SEL_TOP_ROW
= ::WID_O_SEL_TOP_ROW
, ///< #NWID_SELECTION widget for the top row of the 'your non-trains' order window.
1944 WID_O_SEL_BOTTOM_MIDDLE
= ::WID_O_SEL_BOTTOM_MIDDLE
, ///< #NWID_SELECTION widget for the middle part of the bottom row of the 'your train' order window.
1945 WID_O_SHARED_ORDER_LIST
= ::WID_O_SHARED_ORDER_LIST
, ///< Open list of shared vehicles.
1948 /* automatically generated from ../../widgets/osk_widget.h */
1949 /** Widgets of the #OskWindow class. */
1950 enum OnScreenKeyboardWidgets
{
1951 WID_OSK_CAPTION
= ::WID_OSK_CAPTION
, ///< Caption of window.
1952 WID_OSK_TEXT
= ::WID_OSK_TEXT
, ///< Edit box.
1953 WID_OSK_CANCEL
= ::WID_OSK_CANCEL
, ///< Cancel key.
1954 WID_OSK_OK
= ::WID_OSK_OK
, ///< Ok key.
1955 WID_OSK_BACKSPACE
= ::WID_OSK_BACKSPACE
, ///< Backspace key.
1956 WID_OSK_SPECIAL
= ::WID_OSK_SPECIAL
, ///< Special key (at keyboards often used for tab key).
1957 WID_OSK_CAPS
= ::WID_OSK_CAPS
, ///< Capslock key.
1958 WID_OSK_SHIFT
= ::WID_OSK_SHIFT
, ///< Shift(lock) key.
1959 WID_OSK_SPACE
= ::WID_OSK_SPACE
, ///< Space bar.
1960 WID_OSK_LEFT
= ::WID_OSK_LEFT
, ///< Cursor left key.
1961 WID_OSK_RIGHT
= ::WID_OSK_RIGHT
, ///< Cursor right key.
1962 WID_OSK_LETTERS
= ::WID_OSK_LETTERS
, ///< First widget of the 'normal' keys.
1964 WID_OSK_NUMBERS_FIRST
= ::WID_OSK_NUMBERS_FIRST
, ///< First widget of the numbers row.
1965 WID_OSK_NUMBERS_LAST
= ::WID_OSK_NUMBERS_LAST
, ///< Last widget of the numbers row.
1967 WID_OSK_QWERTY_FIRST
= ::WID_OSK_QWERTY_FIRST
, ///< First widget of the qwerty row.
1968 WID_OSK_QWERTY_LAST
= ::WID_OSK_QWERTY_LAST
, ///< Last widget of the qwerty row.
1970 WID_OSK_ASDFG_FIRST
= ::WID_OSK_ASDFG_FIRST
, ///< First widget of the asdfg row.
1971 WID_OSK_ASDFG_LAST
= ::WID_OSK_ASDFG_LAST
, ///< Last widget of the asdfg row.
1973 WID_OSK_ZXCVB_FIRST
= ::WID_OSK_ZXCVB_FIRST
, ///< First widget of the zxcvb row.
1974 WID_OSK_ZXCVB_LAST
= ::WID_OSK_ZXCVB_LAST
, ///< Last widget of the zxcvb row.
1977 /* automatically generated from ../../widgets/rail_widget.h */
1978 /** Widgets of the #BuildRailToolbarWindow class. */
1979 enum RailToolbarWidgets
{
1980 /* Name starts with RA instead of R, because of collision with RoadToolbarWidgets */
1981 WID_RAT_CAPTION
= ::WID_RAT_CAPTION
, ///< Caption of the window.
1982 WID_RAT_BUILD_NS
= ::WID_RAT_BUILD_NS
, ///< Build rail along the game view Y axis.
1983 WID_RAT_BUILD_X
= ::WID_RAT_BUILD_X
, ///< Build rail along the game grid X axis.
1984 WID_RAT_BUILD_EW
= ::WID_RAT_BUILD_EW
, ///< Build rail along the game view X axis.
1985 WID_RAT_BUILD_Y
= ::WID_RAT_BUILD_Y
, ///< Build rail along the game grid Y axis.
1986 WID_RAT_AUTORAIL
= ::WID_RAT_AUTORAIL
, ///< Autorail tool.
1987 WID_RAT_DEMOLISH
= ::WID_RAT_DEMOLISH
, ///< Destroy something with dynamite!
1988 WID_RAT_BUILD_DEPOT
= ::WID_RAT_BUILD_DEPOT
, ///< Build a depot.
1989 WID_RAT_BUILD_WAYPOINT
= ::WID_RAT_BUILD_WAYPOINT
, ///< Build a waypoint.
1990 WID_RAT_BUILD_STATION
= ::WID_RAT_BUILD_STATION
, ///< Build a station.
1991 WID_RAT_BUILD_SIGNALS
= ::WID_RAT_BUILD_SIGNALS
, ///< Build signals.
1992 WID_RAT_BUILD_BRIDGE
= ::WID_RAT_BUILD_BRIDGE
, ///< Build a bridge.
1993 WID_RAT_BUILD_TUNNEL
= ::WID_RAT_BUILD_TUNNEL
, ///< Build a tunnel.
1994 WID_RAT_REMOVE
= ::WID_RAT_REMOVE
, ///< Bulldozer to remove rail.
1995 WID_RAT_CONVERT_RAIL
= ::WID_RAT_CONVERT_RAIL
, ///< Convert other rail to this type.
1998 /** Widgets of the #BuildRailStationWindow class. */
1999 enum BuildRailStationWidgets
{
2000 /* Name starts with BRA instead of BR, because of collision with BuildRoadStationWidgets */
2001 WID_BRAS_PLATFORM_DIR_X
= ::WID_BRAS_PLATFORM_DIR_X
, ///< Button to select '/' view.
2002 WID_BRAS_PLATFORM_DIR_Y
= ::WID_BRAS_PLATFORM_DIR_Y
, ///< Button to select '\' view.
2004 WID_BRAS_PLATFORM_NUM_1
= ::WID_BRAS_PLATFORM_NUM_1
, ///< Button to select stations with a single platform.
2005 WID_BRAS_PLATFORM_NUM_2
= ::WID_BRAS_PLATFORM_NUM_2
, ///< Button to select stations with 2 platforms.
2006 WID_BRAS_PLATFORM_NUM_3
= ::WID_BRAS_PLATFORM_NUM_3
, ///< Button to select stations with 3 platforms.
2007 WID_BRAS_PLATFORM_NUM_4
= ::WID_BRAS_PLATFORM_NUM_4
, ///< Button to select stations with 4 platforms.
2008 WID_BRAS_PLATFORM_NUM_5
= ::WID_BRAS_PLATFORM_NUM_5
, ///< Button to select stations with 5 platforms.
2009 WID_BRAS_PLATFORM_NUM_6
= ::WID_BRAS_PLATFORM_NUM_6
, ///< Button to select stations with 6 platforms.
2010 WID_BRAS_PLATFORM_NUM_7
= ::WID_BRAS_PLATFORM_NUM_7
, ///< Button to select stations with 7 platforms.
2012 WID_BRAS_PLATFORM_LEN_1
= ::WID_BRAS_PLATFORM_LEN_1
, ///< Button to select single tile length station platforms.
2013 WID_BRAS_PLATFORM_LEN_2
= ::WID_BRAS_PLATFORM_LEN_2
, ///< Button to select 2 tiles length station platforms.
2014 WID_BRAS_PLATFORM_LEN_3
= ::WID_BRAS_PLATFORM_LEN_3
, ///< Button to select 3 tiles length station platforms.
2015 WID_BRAS_PLATFORM_LEN_4
= ::WID_BRAS_PLATFORM_LEN_4
, ///< Button to select 4 tiles length station platforms.
2016 WID_BRAS_PLATFORM_LEN_5
= ::WID_BRAS_PLATFORM_LEN_5
, ///< Button to select 5 tiles length station platforms.
2017 WID_BRAS_PLATFORM_LEN_6
= ::WID_BRAS_PLATFORM_LEN_6
, ///< Button to select 6 tiles length station platforms.
2018 WID_BRAS_PLATFORM_LEN_7
= ::WID_BRAS_PLATFORM_LEN_7
, ///< Button to select 7 tiles length station platforms.
2020 WID_BRAS_PLATFORM_DRAG_N_DROP
= ::WID_BRAS_PLATFORM_DRAG_N_DROP
, ///< Button to enable drag and drop type station placement.
2022 WID_BRAS_HIGHLIGHT_OFF
= ::WID_BRAS_HIGHLIGHT_OFF
, ///< Button for turning coverage highlighting off.
2023 WID_BRAS_HIGHLIGHT_ON
= ::WID_BRAS_HIGHLIGHT_ON
, ///< Button for turning coverage highlighting on.
2024 WID_BRAS_COVERAGE_TEXTS
= ::WID_BRAS_COVERAGE_TEXTS
, ///< Empty space for the coverage texts.
2026 WID_BRAS_MATRIX
= ::WID_BRAS_MATRIX
, ///< Matrix widget displaying the available stations.
2027 WID_BRAS_IMAGE
= ::WID_BRAS_IMAGE
, ///< Panel used at each cell of the matrix.
2028 WID_BRAS_MATRIX_SCROLL
= ::WID_BRAS_MATRIX_SCROLL
, ///< Scrollbar of the matrix widget.
2030 WID_BRAS_SHOW_NEWST_DEFSIZE
= ::WID_BRAS_SHOW_NEWST_DEFSIZE
, ///< Selection for default-size button for newstation.
2031 WID_BRAS_SHOW_NEWST_ADDITIONS
= ::WID_BRAS_SHOW_NEWST_ADDITIONS
, ///< Selection for newstation class selection list.
2032 WID_BRAS_SHOW_NEWST_MATRIX
= ::WID_BRAS_SHOW_NEWST_MATRIX
, ///< Selection for newstation image matrix.
2033 WID_BRAS_SHOW_NEWST_RESIZE
= ::WID_BRAS_SHOW_NEWST_RESIZE
, ///< Selection for panel and resize at bottom right for newstation.
2034 WID_BRAS_SHOW_NEWST_TYPE
= ::WID_BRAS_SHOW_NEWST_TYPE
, ///< Display of selected station type.
2035 WID_BRAS_NEWST_LIST
= ::WID_BRAS_NEWST_LIST
, ///< List with available newstation classes.
2036 WID_BRAS_NEWST_SCROLL
= ::WID_BRAS_NEWST_SCROLL
, ///< Scrollbar of the #WID_BRAS_NEWST_LIST.
2038 WID_BRAS_PLATFORM_NUM_BEGIN
= ::WID_BRAS_PLATFORM_NUM_BEGIN
, ///< Helper for determining the chosen platform width.
2039 WID_BRAS_PLATFORM_LEN_BEGIN
= ::WID_BRAS_PLATFORM_LEN_BEGIN
, ///< Helper for determining the chosen platform length.
2042 /** Widgets of the #BuildSignalWindow class. */
2043 enum BuildSignalWidgets
{
2044 WID_BS_SEMAPHORE_NORM
= ::WID_BS_SEMAPHORE_NORM
, ///< Build a semaphore normal block signal
2045 WID_BS_SEMAPHORE_ENTRY
= ::WID_BS_SEMAPHORE_ENTRY
, ///< Build a semaphore entry block signal
2046 WID_BS_SEMAPHORE_EXIT
= ::WID_BS_SEMAPHORE_EXIT
, ///< Build a semaphore exit block signal
2047 WID_BS_SEMAPHORE_COMBO
= ::WID_BS_SEMAPHORE_COMBO
, ///< Build a semaphore combo block signal
2048 WID_BS_SEMAPHORE_PBS
= ::WID_BS_SEMAPHORE_PBS
, ///< Build a semaphore path signal.
2049 WID_BS_SEMAPHORE_PBS_OWAY
= ::WID_BS_SEMAPHORE_PBS_OWAY
, ///< Build a semaphore one way path signal.
2050 WID_BS_ELECTRIC_NORM
= ::WID_BS_ELECTRIC_NORM
, ///< Build an electric normal block signal
2051 WID_BS_ELECTRIC_ENTRY
= ::WID_BS_ELECTRIC_ENTRY
, ///< Build an electric entry block signal
2052 WID_BS_ELECTRIC_EXIT
= ::WID_BS_ELECTRIC_EXIT
, ///< Build an electric exit block signal
2053 WID_BS_ELECTRIC_COMBO
= ::WID_BS_ELECTRIC_COMBO
, ///< Build an electric combo block signal
2054 WID_BS_ELECTRIC_PBS
= ::WID_BS_ELECTRIC_PBS
, ///< Build an electric path signal.
2055 WID_BS_ELECTRIC_PBS_OWAY
= ::WID_BS_ELECTRIC_PBS_OWAY
, ///< Build an electric one way path signal.
2056 WID_BS_CONVERT
= ::WID_BS_CONVERT
, ///< Convert the signal.
2057 WID_BS_DRAG_SIGNALS_DENSITY_LABEL
= ::WID_BS_DRAG_SIGNALS_DENSITY_LABEL
, ///< The current signal density.
2058 WID_BS_DRAG_SIGNALS_DENSITY_DECREASE
= ::WID_BS_DRAG_SIGNALS_DENSITY_DECREASE
, ///< Decrease the signal density.
2059 WID_BS_DRAG_SIGNALS_DENSITY_INCREASE
= ::WID_BS_DRAG_SIGNALS_DENSITY_INCREASE
, ///< Increase the signal density.
2062 /** Widgets of the #BuildRailDepotWindow class. */
2063 enum BuildRailDepotWidgets
{
2064 /* Name starts with BRA instead of BR, because of collision with BuildRoadDepotWidgets */
2065 WID_BRAD_DEPOT_NE
= ::WID_BRAD_DEPOT_NE
, ///< Build a depot with the entrance in the north east.
2066 WID_BRAD_DEPOT_SE
= ::WID_BRAD_DEPOT_SE
, ///< Build a depot with the entrance in the south east.
2067 WID_BRAD_DEPOT_SW
= ::WID_BRAD_DEPOT_SW
, ///< Build a depot with the entrance in the south west.
2068 WID_BRAD_DEPOT_NW
= ::WID_BRAD_DEPOT_NW
, ///< Build a depot with the entrance in the north west.
2071 /** Widgets of the #BuildRailWaypointWindow class. */
2072 enum BuildRailWaypointWidgets
{
2073 WID_BRW_WAYPOINT_MATRIX
= ::WID_BRW_WAYPOINT_MATRIX
, ///< Matrix with waypoints.
2074 WID_BRW_WAYPOINT
= ::WID_BRW_WAYPOINT
, ///< A single waypoint.
2075 WID_BRW_SCROLL
= ::WID_BRW_SCROLL
, ///< Scrollbar for the matrix.
2078 /* automatically generated from ../../widgets/road_widget.h */
2079 /** Widgets of the #BuildRoadToolbarWindow class. */
2080 enum RoadToolbarWidgets
{
2081 /* Name starts with RO instead of R, because of collision with RailToolbarWidgets */
2082 WID_ROT_ROAD_X
= ::WID_ROT_ROAD_X
, ///< Build road in x-direction.
2083 WID_ROT_ROAD_Y
= ::WID_ROT_ROAD_Y
, ///< Build road in y-direction.
2084 WID_ROT_AUTOROAD
= ::WID_ROT_AUTOROAD
, ///< Autorail.
2085 WID_ROT_DEMOLISH
= ::WID_ROT_DEMOLISH
, ///< Demolish.
2086 WID_ROT_DEPOT
= ::WID_ROT_DEPOT
, ///< Build depot.
2087 WID_ROT_BUS_STATION
= ::WID_ROT_BUS_STATION
, ///< Build bus station.
2088 WID_ROT_TRUCK_STATION
= ::WID_ROT_TRUCK_STATION
, ///< Build truck station.
2089 WID_ROT_ONE_WAY
= ::WID_ROT_ONE_WAY
, ///< Build one-way road.
2090 WID_ROT_BUILD_BRIDGE
= ::WID_ROT_BUILD_BRIDGE
, ///< Build bridge.
2091 WID_ROT_BUILD_TUNNEL
= ::WID_ROT_BUILD_TUNNEL
, ///< Build tunnel.
2092 WID_ROT_REMOVE
= ::WID_ROT_REMOVE
, ///< Remove road.
2095 /** Widgets of the #BuildRoadDepotWindow class. */
2096 enum BuildRoadDepotWidgets
{
2097 /* Name starts with BRO instead of BR, because of collision with BuildRailDepotWidgets */
2098 WID_BROD_CAPTION
= ::WID_BROD_CAPTION
, ///< Caption of the window.
2099 WID_BROD_DEPOT_NE
= ::WID_BROD_DEPOT_NE
, ///< Depot with NE entry.
2100 WID_BROD_DEPOT_SE
= ::WID_BROD_DEPOT_SE
, ///< Depot with SE entry.
2101 WID_BROD_DEPOT_SW
= ::WID_BROD_DEPOT_SW
, ///< Depot with SW entry.
2102 WID_BROD_DEPOT_NW
= ::WID_BROD_DEPOT_NW
, ///< Depot with NW entry.
2105 /** Widgets of the #BuildRoadStationWindow class. */
2106 enum BuildRoadStationWidgets
{
2107 /* Name starts with BRO instead of BR, because of collision with BuildRailStationWidgets */
2108 WID_BROS_CAPTION
= ::WID_BROS_CAPTION
, ///< Caption of the window.
2109 WID_BROS_BACKGROUND
= ::WID_BROS_BACKGROUND
, ///< Background of the window.
2110 WID_BROS_STATION_NE
= ::WID_BROS_STATION_NE
, ///< Terminal station with NE entry.
2111 WID_BROS_STATION_SE
= ::WID_BROS_STATION_SE
, ///< Terminal station with SE entry.
2112 WID_BROS_STATION_SW
= ::WID_BROS_STATION_SW
, ///< Terminal station with SW entry.
2113 WID_BROS_STATION_NW
= ::WID_BROS_STATION_NW
, ///< Terminal station with NW entry.
2114 WID_BROS_STATION_X
= ::WID_BROS_STATION_X
, ///< Drive-through station in x-direction.
2115 WID_BROS_STATION_Y
= ::WID_BROS_STATION_Y
, ///< Drive-through station in y-direction.
2116 WID_BROS_LT_OFF
= ::WID_BROS_LT_OFF
, ///< Turn off area highlight.
2117 WID_BROS_LT_ON
= ::WID_BROS_LT_ON
, ///< Turn on area highlight.
2118 WID_BROS_INFO
= ::WID_BROS_INFO
, ///< Station acceptance info.
2121 /* automatically generated from ../../widgets/settings_widget.h */
2122 /** Widgets of the #GameOptionsWindow class. */
2123 enum GameOptionsWidgets
{
2124 WID_GO_BACKGROUND
= ::WID_GO_BACKGROUND
, ///< Background of the window.
2125 WID_GO_CURRENCY_DROPDOWN
= ::WID_GO_CURRENCY_DROPDOWN
, ///< Currency dropdown.
2126 WID_GO_DISTANCE_DROPDOWN
= ::WID_GO_DISTANCE_DROPDOWN
, ///< Measuring unit dropdown.
2127 WID_GO_ROADSIDE_DROPDOWN
= ::WID_GO_ROADSIDE_DROPDOWN
, ///< Dropdown to select the road side (to set the right side ;)).
2128 WID_GO_TOWNNAME_DROPDOWN
= ::WID_GO_TOWNNAME_DROPDOWN
, ///< Town name dropdown.
2129 WID_GO_AUTOSAVE_DROPDOWN
= ::WID_GO_AUTOSAVE_DROPDOWN
, ///< Dropdown to say how often to autosave.
2130 WID_GO_LANG_DROPDOWN
= ::WID_GO_LANG_DROPDOWN
, ///< Language dropdown.
2131 WID_GO_RESOLUTION_DROPDOWN
= ::WID_GO_RESOLUTION_DROPDOWN
, ///< Dropdown for the resolution.
2132 WID_GO_FULLSCREEN_BUTTON
= ::WID_GO_FULLSCREEN_BUTTON
, ///< Toggle fullscreen.
2133 WID_GO_GUI_ZOOM_DROPDOWN
= ::WID_GO_GUI_ZOOM_DROPDOWN
, ///< Dropdown for the GUI zoom level.
2134 WID_GO_BASE_GRF_DROPDOWN
= ::WID_GO_BASE_GRF_DROPDOWN
, ///< Use to select a base GRF.
2135 WID_GO_BASE_GRF_STATUS
= ::WID_GO_BASE_GRF_STATUS
, ///< Info about missing files etc.
2136 WID_GO_BASE_GRF_TEXTFILE
= ::WID_GO_BASE_GRF_TEXTFILE
, ///< Open base GRF readme, changelog (+1) or license (+2).
2137 WID_GO_BASE_GRF_DESCRIPTION
= ::WID_GO_BASE_GRF_DESCRIPTION
, ///< Description of selected base GRF.
2138 WID_GO_BASE_SFX_DROPDOWN
= ::WID_GO_BASE_SFX_DROPDOWN
, ///< Use to select a base SFX.
2139 WID_GO_BASE_SFX_TEXTFILE
= ::WID_GO_BASE_SFX_TEXTFILE
, ///< Open base SFX readme, changelog (+1) or license (+2).
2140 WID_GO_BASE_SFX_DESCRIPTION
= ::WID_GO_BASE_SFX_DESCRIPTION
, ///< Description of selected base SFX.
2141 WID_GO_BASE_MUSIC_DROPDOWN
= ::WID_GO_BASE_MUSIC_DROPDOWN
, ///< Use to select a base music set.
2142 WID_GO_BASE_MUSIC_STATUS
= ::WID_GO_BASE_MUSIC_STATUS
, ///< Info about corrupted files etc.
2143 WID_GO_BASE_MUSIC_TEXTFILE
= ::WID_GO_BASE_MUSIC_TEXTFILE
, ///< Open base music readme, changelog (+1) or license (+2).
2144 WID_GO_BASE_MUSIC_DESCRIPTION
= ::WID_GO_BASE_MUSIC_DESCRIPTION
, ///< Description of selected base music set.
2147 /** Widgets of the #GameSettingsWindow class. */
2148 enum GameSettingsWidgets
{
2149 WID_GS_FILTER
= ::WID_GS_FILTER
, ///< Text filter.
2150 WID_GS_OPTIONSPANEL
= ::WID_GS_OPTIONSPANEL
, ///< Panel widget containing the option lists.
2151 WID_GS_SCROLLBAR
= ::WID_GS_SCROLLBAR
, ///< Scrollbar.
2152 WID_GS_HELP_TEXT
= ::WID_GS_HELP_TEXT
, ///< Information area to display help text of the selected option.
2153 WID_GS_EXPAND_ALL
= ::WID_GS_EXPAND_ALL
, ///< Expand all button.
2154 WID_GS_COLLAPSE_ALL
= ::WID_GS_COLLAPSE_ALL
, ///< Collapse all button.
2155 WID_GS_RESTRICT_CATEGORY
= ::WID_GS_RESTRICT_CATEGORY
, ///< Label upfront to the category drop-down box to restrict the list of settings to show
2156 WID_GS_RESTRICT_TYPE
= ::WID_GS_RESTRICT_TYPE
, ///< Label upfront to the type drop-down box to restrict the list of settings to show
2157 WID_GS_RESTRICT_DROPDOWN
= ::WID_GS_RESTRICT_DROPDOWN
, ///< The drop down box to restrict the list of settings
2158 WID_GS_TYPE_DROPDOWN
= ::WID_GS_TYPE_DROPDOWN
, ///< The drop down box to choose client/game/company/all settings
2161 /** Widgets of the #CustomCurrencyWindow class. */
2162 enum CustomCurrencyWidgets
{
2163 WID_CC_RATE_DOWN
= ::WID_CC_RATE_DOWN
, ///< Down button.
2164 WID_CC_RATE_UP
= ::WID_CC_RATE_UP
, ///< Up button.
2165 WID_CC_RATE
= ::WID_CC_RATE
, ///< Rate of currency.
2166 WID_CC_SEPARATOR_EDIT
= ::WID_CC_SEPARATOR_EDIT
, ///< Separator edit button.
2167 WID_CC_SEPARATOR
= ::WID_CC_SEPARATOR
, ///< Current separator.
2168 WID_CC_PREFIX_EDIT
= ::WID_CC_PREFIX_EDIT
, ///< Prefix edit button.
2169 WID_CC_PREFIX
= ::WID_CC_PREFIX
, ///< Current prefix.
2170 WID_CC_SUFFIX_EDIT
= ::WID_CC_SUFFIX_EDIT
, ///< Suffix edit button.
2171 WID_CC_SUFFIX
= ::WID_CC_SUFFIX
, ///< Current suffix.
2172 WID_CC_YEAR_DOWN
= ::WID_CC_YEAR_DOWN
, ///< Down button.
2173 WID_CC_YEAR_UP
= ::WID_CC_YEAR_UP
, ///< Up button.
2174 WID_CC_YEAR
= ::WID_CC_YEAR
, ///< Year of introduction.
2175 WID_CC_PREVIEW
= ::WID_CC_PREVIEW
, ///< Preview.
2178 /* automatically generated from ../../widgets/sign_widget.h */
2179 /** Widgets of the #SignListWindow class. */
2180 enum SignListWidgets
{
2181 /* Name starts with SI instead of S, because of collision with SaveLoadWidgets */
2182 WID_SIL_CAPTION
= ::WID_SIL_CAPTION
, ///< Caption of the window.
2183 WID_SIL_LIST
= ::WID_SIL_LIST
, ///< List of signs.
2184 WID_SIL_SCROLLBAR
= ::WID_SIL_SCROLLBAR
, ///< Scrollbar of list.
2185 WID_SIL_FILTER_TEXT
= ::WID_SIL_FILTER_TEXT
, ///< Text box for typing a filter string.
2186 WID_SIL_FILTER_MATCH_CASE_BTN
= ::WID_SIL_FILTER_MATCH_CASE_BTN
, ///< Button to toggle if case sensitive filtering should be used.
2187 WID_SIL_FILTER_ENTER_BTN
= ::WID_SIL_FILTER_ENTER_BTN
, ///< Scroll to first sign.
2190 /** Widgets of the #SignWindow class. */
2191 enum QueryEditSignWidgets
{
2192 WID_QES_CAPTION
= ::WID_QES_CAPTION
, ///< Caption of the window.
2193 WID_QES_TEXT
= ::WID_QES_TEXT
, ///< Text of the query.
2194 WID_QES_OK
= ::WID_QES_OK
, ///< OK button.
2195 WID_QES_CANCEL
= ::WID_QES_CANCEL
, ///< Cancel button.
2196 WID_QES_DELETE
= ::WID_QES_DELETE
, ///< Delete button.
2197 WID_QES_PREVIOUS
= ::WID_QES_PREVIOUS
, ///< Previous button.
2198 WID_QES_NEXT
= ::WID_QES_NEXT
, ///< Next button.
2201 /* automatically generated from ../../widgets/smallmap_widget.h */
2202 /** Widgets of the #SmallMapWindow class. */
2203 enum SmallMapWidgets
{
2204 WID_SM_CAPTION
= ::WID_SM_CAPTION
, ///< Caption of the window.
2205 WID_SM_MAP_BORDER
= ::WID_SM_MAP_BORDER
, ///< Border around the smallmap.
2206 WID_SM_MAP
= ::WID_SM_MAP
, ///< Panel containing the smallmap.
2207 WID_SM_LEGEND
= ::WID_SM_LEGEND
, ///< Bottom panel to display smallmap legends.
2208 WID_SM_BLANK
= ::WID_SM_BLANK
, ///< Empty button as placeholder.
2209 WID_SM_ZOOM_IN
= ::WID_SM_ZOOM_IN
, ///< Button to zoom in one step.
2210 WID_SM_ZOOM_OUT
= ::WID_SM_ZOOM_OUT
, ///< Button to zoom out one step.
2211 WID_SM_CONTOUR
= ::WID_SM_CONTOUR
, ///< Button to select the contour view (height map).
2212 WID_SM_VEHICLES
= ::WID_SM_VEHICLES
, ///< Button to select the vehicles view.
2213 WID_SM_INDUSTRIES
= ::WID_SM_INDUSTRIES
, ///< Button to select the industries view.
2214 WID_SM_LINKSTATS
= ::WID_SM_LINKSTATS
, ///< Button to select the link stats view.
2215 WID_SM_ROUTES
= ::WID_SM_ROUTES
, ///< Button to select the routes view.
2216 WID_SM_VEGETATION
= ::WID_SM_VEGETATION
, ///< Button to select the vegetation view.
2217 WID_SM_OWNERS
= ::WID_SM_OWNERS
, ///< Button to select the owners view.
2218 WID_SM_CENTERMAP
= ::WID_SM_CENTERMAP
, ///< Button to move smallmap center to main window center.
2219 WID_SM_TOGGLETOWNNAME
= ::WID_SM_TOGGLETOWNNAME
, ///< Toggle button to display town names.
2220 WID_SM_SELECT_BUTTONS
= ::WID_SM_SELECT_BUTTONS
, ///< Selection widget for the buttons present in some smallmap modes.
2221 WID_SM_ENABLE_ALL
= ::WID_SM_ENABLE_ALL
, ///< Button to enable display of all legend entries.
2222 WID_SM_DISABLE_ALL
= ::WID_SM_DISABLE_ALL
, ///< Button to disable display of all legend entries.
2223 WID_SM_SHOW_HEIGHT
= ::WID_SM_SHOW_HEIGHT
, ///< Show heightmap toggle button.
2226 /* automatically generated from ../../widgets/station_widget.h */
2227 /** Widgets of the #StationViewWindow class. */
2228 enum StationViewWidgets
{
2229 WID_SV_CAPTION
= ::WID_SV_CAPTION
, ///< Caption of the window.
2230 WID_SV_SORT_ORDER
= ::WID_SV_SORT_ORDER
, ///< 'Sort order' button
2231 WID_SV_SORT_BY
= ::WID_SV_SORT_BY
, ///< 'Sort by' button
2232 WID_SV_GROUP
= ::WID_SV_GROUP
, ///< label for "group by"
2233 WID_SV_GROUP_BY
= ::WID_SV_GROUP_BY
, ///< 'Group by' button
2234 WID_SV_WAITING
= ::WID_SV_WAITING
, ///< List of waiting cargo.
2235 WID_SV_SCROLLBAR
= ::WID_SV_SCROLLBAR
, ///< Scrollbar.
2236 WID_SV_ACCEPT_RATING_LIST
= ::WID_SV_ACCEPT_RATING_LIST
, ///< List of accepted cargoes / rating of cargoes.
2237 WID_SV_LOCATION
= ::WID_SV_LOCATION
, ///< 'Location' button.
2238 WID_SV_ACCEPTS_RATINGS
= ::WID_SV_ACCEPTS_RATINGS
, ///< 'Accepts' / 'Ratings' button.
2239 WID_SV_RENAME
= ::WID_SV_RENAME
, ///< 'Rename' button.
2240 WID_SV_CLOSE_AIRPORT
= ::WID_SV_CLOSE_AIRPORT
, ///< 'Close airport' button.
2241 WID_SV_TRAINS
= ::WID_SV_TRAINS
, ///< List of scheduled trains button.
2242 WID_SV_ROADVEHS
= ::WID_SV_ROADVEHS
, ///< List of scheduled road vehs button.
2243 WID_SV_SHIPS
= ::WID_SV_SHIPS
, ///< List of scheduled ships button.
2244 WID_SV_PLANES
= ::WID_SV_PLANES
, ///< List of scheduled planes button.
2247 /** Widgets of the #CompanyStationsWindow class. */
2248 enum StationListWidgets
{
2249 /* Name starts with ST instead of S, because of collision with SaveLoadWidgets */
2250 WID_STL_CAPTION
= ::WID_STL_CAPTION
, ///< Caption of the window.
2251 WID_STL_LIST
= ::WID_STL_LIST
, ///< The main panel, list of stations.
2252 WID_STL_SCROLLBAR
= ::WID_STL_SCROLLBAR
, ///< Scrollbar next to the main panel.
2254 /* Vehicletypes need to be in order of StationFacility due to bit magic */
2255 WID_STL_TRAIN
= ::WID_STL_TRAIN
, ///< 'TRAIN' button - list only facilities where is a railroad station.
2256 WID_STL_TRUCK
= ::WID_STL_TRUCK
, ///< 'TRUCK' button - list only facilities where is a truck stop.
2257 WID_STL_BUS
= ::WID_STL_BUS
, ///< 'BUS' button - list only facilities where is a bus stop.
2258 WID_STL_AIRPLANE
= ::WID_STL_AIRPLANE
, ///< 'AIRPLANE' button - list only facilities where is an airport.
2259 WID_STL_SHIP
= ::WID_STL_SHIP
, ///< 'SHIP' button - list only facilities where is a dock.
2260 WID_STL_FACILALL
= ::WID_STL_FACILALL
, ///< 'ALL' button - list all facilities.
2262 WID_STL_NOCARGOWAITING
= ::WID_STL_NOCARGOWAITING
, ///< 'NO' button - list stations where no cargo is waiting.
2263 WID_STL_CARGOALL
= ::WID_STL_CARGOALL
, ///< 'ALL' button - list all stations.
2265 WID_STL_SORTBY
= ::WID_STL_SORTBY
, ///< 'Sort by' button - reverse sort direction.
2266 WID_STL_SORTDROPBTN
= ::WID_STL_SORTDROPBTN
, ///< Dropdown button.
2268 WID_STL_CARGOSTART
= ::WID_STL_CARGOSTART
, ///< Widget numbers used for list of cargo types (not present in _company_stations_widgets).
2271 /** Widgets of the #SelectStationWindow class. */
2272 enum JoinStationWidgets
{
2273 WID_JS_CAPTION
= ::WID_JS_CAPTION
, // Caption of the window.
2274 WID_JS_PANEL
= ::WID_JS_PANEL
, // Main panel.
2275 WID_JS_SCROLLBAR
= ::WID_JS_SCROLLBAR
, // Scrollbar of the panel.
2278 /* automatically generated from ../../widgets/statusbar_widget.h */
2279 /** Widgets of the #StatusBarWindow class. */
2280 enum StatusbarWidgets
{
2281 WID_S_LEFT
= ::WID_S_LEFT
, ///< Left part of the statusbar; date is shown there.
2282 WID_S_MIDDLE
= ::WID_S_MIDDLE
, ///< Middle part; current news or company name or *** SAVING *** or *** PAUSED ***.
2283 WID_S_RIGHT
= ::WID_S_RIGHT
, ///< Right part; bank balance.
2286 /* automatically generated from ../../widgets/story_widget.h */
2287 /** Widgets of the #GoalListWindow class. */
2288 enum StoryBookWidgets
{
2289 WID_SB_CAPTION
= ::WID_SB_CAPTION
, ///< Caption of the window.
2290 WID_SB_SEL_PAGE
= ::WID_SB_SEL_PAGE
, ///< Page selector.
2291 WID_SB_PAGE_PANEL
= ::WID_SB_PAGE_PANEL
, ///< Page body.
2292 WID_SB_SCROLLBAR
= ::WID_SB_SCROLLBAR
, ///< Scrollbar of the goal list.
2293 WID_SB_PREV_PAGE
= ::WID_SB_PREV_PAGE
, ///< Prev button.
2294 WID_SB_NEXT_PAGE
= ::WID_SB_NEXT_PAGE
, ///< Next button.
2297 /* automatically generated from ../../widgets/subsidy_widget.h */
2298 /** Widgets of the #SubsidyListWindow class. */
2299 enum SubsidyListWidgets
{
2300 /* Name starts with SU instead of S, because of collision with SaveLoadWidgets. */
2301 WID_SUL_PANEL
= ::WID_SUL_PANEL
, ///< Main panel of window.
2302 WID_SUL_SCROLLBAR
= ::WID_SUL_SCROLLBAR
, ///< Scrollbar of panel.
2305 /* automatically generated from ../../widgets/terraform_widget.h */
2306 /** Widgets of the #TerraformToolbarWindow class. */
2307 enum TerraformToolbarWidgets
{
2308 WID_TT_SHOW_PLACE_OBJECT
= ::WID_TT_SHOW_PLACE_OBJECT
, ///< Should the place object button be shown?
2309 WID_TT_BUTTONS_START
= ::WID_TT_BUTTONS_START
, ///< Start of pushable buttons.
2310 WID_TT_LOWER_LAND
= ::WID_TT_LOWER_LAND
, ///< Lower land button.
2311 WID_TT_RAISE_LAND
= ::WID_TT_RAISE_LAND
, ///< Raise land button.
2312 WID_TT_LEVEL_LAND
= ::WID_TT_LEVEL_LAND
, ///< Level land button.
2313 WID_TT_DEMOLISH
= ::WID_TT_DEMOLISH
, ///< Demolish aka dynamite button.
2314 WID_TT_BUY_LAND
= ::WID_TT_BUY_LAND
, ///< Buy land button.
2315 WID_TT_PLANT_TREES
= ::WID_TT_PLANT_TREES
, ///< Plant trees button (note: opens separate window, no place-push-button).
2316 WID_TT_PLACE_SIGN
= ::WID_TT_PLACE_SIGN
, ///< Place sign button.
2317 WID_TT_PLACE_OBJECT
= ::WID_TT_PLACE_OBJECT
, ///< Place object button.
2320 /** Widgets of the #ScenarioEditorLandscapeGenerationWindow class. */
2321 enum EditorTerraformToolbarWidgets
{
2322 WID_ETT_SHOW_PLACE_DESERT
= ::WID_ETT_SHOW_PLACE_DESERT
, ///< Should the place desert button be shown?
2323 WID_ETT_START
= ::WID_ETT_START
, ///< Used for iterations.
2324 WID_ETT_DOTS
= ::WID_ETT_DOTS
, ///< Invisible widget for rendering the terraform size on.
2325 WID_ETT_BUTTONS_START
= ::WID_ETT_BUTTONS_START
, ///< Start of pushable buttons.
2326 WID_ETT_DEMOLISH
= ::WID_ETT_DEMOLISH
, ///< Demolish aka dynamite button.
2327 WID_ETT_LOWER_LAND
= ::WID_ETT_LOWER_LAND
, ///< Lower land button.
2328 WID_ETT_RAISE_LAND
= ::WID_ETT_RAISE_LAND
, ///< Raise land button.
2329 WID_ETT_LEVEL_LAND
= ::WID_ETT_LEVEL_LAND
, ///< Level land button.
2330 WID_ETT_PLACE_ROCKS
= ::WID_ETT_PLACE_ROCKS
, ///< Place rocks button.
2331 WID_ETT_PLACE_DESERT
= ::WID_ETT_PLACE_DESERT
, ///< Place desert button (in tropical climate).
2332 WID_ETT_PLACE_OBJECT
= ::WID_ETT_PLACE_OBJECT
, ///< Place transmitter button.
2333 WID_ETT_BUTTONS_END
= ::WID_ETT_BUTTONS_END
, ///< End of pushable buttons.
2334 WID_ETT_INCREASE_SIZE
= ::WID_ETT_INCREASE_SIZE
, ///< Upwards arrow button to increase terraforming size.
2335 WID_ETT_DECREASE_SIZE
= ::WID_ETT_DECREASE_SIZE
, ///< Downwards arrow button to decrease terraforming size.
2336 WID_ETT_NEW_SCENARIO
= ::WID_ETT_NEW_SCENARIO
, ///< Button for generating a new scenario.
2337 WID_ETT_RESET_LANDSCAPE
= ::WID_ETT_RESET_LANDSCAPE
, ///< Button for removing all company-owned property.
2340 /* automatically generated from ../../widgets/timetable_widget.h */
2341 /** Widgets of the #TimetableWindow class. */
2342 enum VehicleTimetableWidgets
{
2343 WID_VT_CAPTION
= ::WID_VT_CAPTION
, ///< Caption of the window.
2344 WID_VT_ORDER_VIEW
= ::WID_VT_ORDER_VIEW
, ///< Order view.
2345 WID_VT_TIMETABLE_PANEL
= ::WID_VT_TIMETABLE_PANEL
, ///< Timetable panel.
2346 WID_VT_ARRIVAL_DEPARTURE_PANEL
= ::WID_VT_ARRIVAL_DEPARTURE_PANEL
, ///< Panel with the expected/scheduled arrivals.
2347 WID_VT_SCROLLBAR
= ::WID_VT_SCROLLBAR
, ///< Scrollbar for the panel.
2348 WID_VT_SUMMARY_PANEL
= ::WID_VT_SUMMARY_PANEL
, ///< Summary panel.
2349 WID_VT_START_DATE
= ::WID_VT_START_DATE
, ///< Start date button.
2350 WID_VT_CHANGE_TIME
= ::WID_VT_CHANGE_TIME
, ///< Change time button.
2351 WID_VT_CLEAR_TIME
= ::WID_VT_CLEAR_TIME
, ///< Clear time button.
2352 WID_VT_RESET_LATENESS
= ::WID_VT_RESET_LATENESS
, ///< Reset lateness button.
2353 WID_VT_AUTOFILL
= ::WID_VT_AUTOFILL
, ///< Autofill button.
2354 WID_VT_EXPECTED
= ::WID_VT_EXPECTED
, ///< Toggle between expected and scheduled arrivals.
2355 WID_VT_SHARED_ORDER_LIST
= ::WID_VT_SHARED_ORDER_LIST
, ///< Show the shared order list.
2356 WID_VT_ARRIVAL_DEPARTURE_SELECTION
= ::WID_VT_ARRIVAL_DEPARTURE_SELECTION
, ///< Disable/hide the arrival departure panel.
2357 WID_VT_EXPECTED_SELECTION
= ::WID_VT_EXPECTED_SELECTION
, ///< Disable/hide the expected selection button.
2358 WID_VT_CHANGE_SPEED
= ::WID_VT_CHANGE_SPEED
, ///< Change speed limit button.
2359 WID_VT_CLEAR_SPEED
= ::WID_VT_CLEAR_SPEED
, ///< Clear speed limit button.
2362 /* automatically generated from ../../widgets/toolbar_widget.h */
2363 /** Widgets of the #MainToolbarWindow class. */
2364 enum ToolbarNormalWidgets
{
2365 WID_TN_PAUSE
= ::WID_TN_PAUSE
, ///< Pause the game.
2366 WID_TN_FAST_FORWARD
= ::WID_TN_FAST_FORWARD
, ///< Fast forward the game.
2367 WID_TN_SETTINGS
= ::WID_TN_SETTINGS
, ///< Settings menu.
2368 WID_TN_SAVE
= ::WID_TN_SAVE
, ///< Save menu.
2369 WID_TN_SMALL_MAP
= ::WID_TN_SMALL_MAP
, ///< Small map menu.
2370 WID_TN_TOWNS
= ::WID_TN_TOWNS
, ///< Town menu.
2371 WID_TN_SUBSIDIES
= ::WID_TN_SUBSIDIES
, ///< Subsidy menu.
2372 WID_TN_STATIONS
= ::WID_TN_STATIONS
, ///< Station menu.
2373 WID_TN_FINANCES
= ::WID_TN_FINANCES
, ///< Finance menu.
2374 WID_TN_COMPANIES
= ::WID_TN_COMPANIES
, ///< Company menu.
2375 WID_TN_STORY
= ::WID_TN_STORY
, ///< Story menu.
2376 WID_TN_GOAL
= ::WID_TN_GOAL
, ///< Goal menu.
2377 WID_TN_GRAPHS
= ::WID_TN_GRAPHS
, ///< Graph menu.
2378 WID_TN_LEAGUE
= ::WID_TN_LEAGUE
, ///< Company league menu.
2379 WID_TN_INDUSTRIES
= ::WID_TN_INDUSTRIES
, ///< Industry menu.
2380 WID_TN_VEHICLE_START
= ::WID_TN_VEHICLE_START
, ///< Helper for the offset of the vehicle menus.
2381 WID_TN_TRAINS
= ::WID_TN_TRAINS
, ///< Train menu.
2382 WID_TN_ROADVEHS
= ::WID_TN_ROADVEHS
, ///< Road vehicle menu.
2383 WID_TN_SHIPS
= ::WID_TN_SHIPS
, ///< Ship menu.
2384 WID_TN_AIRCRAFTS
= ::WID_TN_AIRCRAFTS
, ///< Aircraft menu.
2385 WID_TN_ZOOM_IN
= ::WID_TN_ZOOM_IN
, ///< Zoom in the main viewport.
2386 WID_TN_ZOOM_OUT
= ::WID_TN_ZOOM_OUT
, ///< Zoom out the main viewport.
2387 WID_TN_BUILDING_TOOLS_START
= ::WID_TN_BUILDING_TOOLS_START
, ///< Helper for the offset of the building tools
2388 WID_TN_RAILS
= ::WID_TN_RAILS
, ///< Rail building menu.
2389 WID_TN_ROADS
= ::WID_TN_ROADS
, ///< Road building menu.
2390 WID_TN_WATER
= ::WID_TN_WATER
, ///< Water building toolbar.
2391 WID_TN_AIR
= ::WID_TN_AIR
, ///< Airport building toolbar.
2392 WID_TN_LANDSCAPE
= ::WID_TN_LANDSCAPE
, ///< Landscaping toolbar.
2393 WID_TN_MUSIC_SOUND
= ::WID_TN_MUSIC_SOUND
, ///< Music/sound configuration menu.
2394 WID_TN_MESSAGES
= ::WID_TN_MESSAGES
, ///< Messages menu.
2395 WID_TN_HELP
= ::WID_TN_HELP
, ///< Help menu.
2396 WID_TN_SWITCH_BAR
= ::WID_TN_SWITCH_BAR
, ///< Only available when toolbar has been split to switch between different subsets.
2397 WID_TN_END
= ::WID_TN_END
, ///< Helper for knowing the amount of widgets.
2400 /** Widgets of the #ScenarioEditorToolbarWindow class. */
2401 enum ToolbarEditorWidgets
{
2402 WID_TE_PAUSE
= ::WID_TE_PAUSE
, ///< Pause the game.
2403 WID_TE_FAST_FORWARD
= ::WID_TE_FAST_FORWARD
, ///< Fast forward the game.
2404 WID_TE_SETTINGS
= ::WID_TE_SETTINGS
, ///< Settings menu.
2405 WID_TE_SAVE
= ::WID_TE_SAVE
, ///< Save menu.
2406 WID_TE_SPACER
= ::WID_TE_SPACER
, ///< Spacer with "scenario editor" text.
2407 WID_TE_DATE
= ::WID_TE_DATE
, ///< The date of the scenario.
2408 WID_TE_DATE_BACKWARD
= ::WID_TE_DATE_BACKWARD
, ///< Reduce the date of the scenario.
2409 WID_TE_DATE_FORWARD
= ::WID_TE_DATE_FORWARD
, ///< Increase the date of the scenario.
2410 WID_TE_SMALL_MAP
= ::WID_TE_SMALL_MAP
, ///< Small map menu.
2411 WID_TE_ZOOM_IN
= ::WID_TE_ZOOM_IN
, ///< Zoom in the main viewport.
2412 WID_TE_ZOOM_OUT
= ::WID_TE_ZOOM_OUT
, ///< Zoom out the main viewport.
2413 WID_TE_LAND_GENERATE
= ::WID_TE_LAND_GENERATE
, ///< Land generation.
2414 WID_TE_TOWN_GENERATE
= ::WID_TE_TOWN_GENERATE
, ///< Town building window.
2415 WID_TE_INDUSTRY
= ::WID_TE_INDUSTRY
, ///< Industry building window.
2416 WID_TE_ROADS
= ::WID_TE_ROADS
, ///< Road building menu.
2417 WID_TE_WATER
= ::WID_TE_WATER
, ///< Water building toolbar.
2418 WID_TE_TREES
= ::WID_TE_TREES
, ///< Tree building toolbar.
2419 WID_TE_SIGNS
= ::WID_TE_SIGNS
, ///< Sign building.
2420 WID_TE_DATE_PANEL
= ::WID_TE_DATE_PANEL
, ///< Container for the date widgets.
2421 /* The following three need to have the same actual widget number as the normal toolbar due to shared code. */
2422 WID_TE_MUSIC_SOUND
= ::WID_TE_MUSIC_SOUND
, ///< Music/sound configuration menu.
2423 WID_TE_HELP
= ::WID_TE_HELP
, ///< Help menu.
2424 WID_TE_SWITCH_BAR
= ::WID_TE_SWITCH_BAR
, ///< Only available when toolbar has been split to switch between different subsets.
2427 /* automatically generated from ../../widgets/town_widget.h */
2428 /** Widgets of the #TownDirectoryWindow class. */
2429 enum TownDirectoryWidgets
{
2430 WID_TD_SORT_ORDER
= ::WID_TD_SORT_ORDER
, ///< Direction of sort dropdown.
2431 WID_TD_SORT_CRITERIA
= ::WID_TD_SORT_CRITERIA
, ///< Criteria of sort dropdown.
2432 WID_TD_LIST
= ::WID_TD_LIST
, ///< List of towns.
2433 WID_TD_SCROLLBAR
= ::WID_TD_SCROLLBAR
, ///< Scrollbar for the town list.
2434 WID_TD_WORLD_POPULATION
= ::WID_TD_WORLD_POPULATION
, ///< The world's population.
2437 /** Widgets of the #TownAuthorityWindow class. */
2438 enum TownAuthorityWidgets
{
2439 WID_TA_CAPTION
= ::WID_TA_CAPTION
, ///< Caption of window.
2440 WID_TA_RATING_INFO
= ::WID_TA_RATING_INFO
, ///< Overview with ratings for each company.
2441 WID_TA_COMMAND_LIST
= ::WID_TA_COMMAND_LIST
, ///< List of commands for the player.
2442 WID_TA_SCROLLBAR
= ::WID_TA_SCROLLBAR
, ///< Scrollbar of the list of commands.
2443 WID_TA_ACTION_INFO
= ::WID_TA_ACTION_INFO
, ///< Additional information about the action.
2444 WID_TA_EXECUTE
= ::WID_TA_EXECUTE
, ///< Do-it button.
2447 /** Widgets of the #TownViewWindow class. */
2448 enum TownViewWidgets
{
2449 WID_TV_CAPTION
= ::WID_TV_CAPTION
, ///< Caption of window.
2450 WID_TV_VIEWPORT
= ::WID_TV_VIEWPORT
, ///< View of the center of the town.
2451 WID_TV_INFO
= ::WID_TV_INFO
, ///< General information about the town.
2452 WID_TV_CENTER_VIEW
= ::WID_TV_CENTER_VIEW
, ///< Center the main view on this town.
2453 WID_TV_SHOW_AUTHORITY
= ::WID_TV_SHOW_AUTHORITY
, ///< Show the town authority window.
2454 WID_TV_CHANGE_NAME
= ::WID_TV_CHANGE_NAME
, ///< Change the name of this town.
2455 WID_TV_EXPAND
= ::WID_TV_EXPAND
, ///< Expand this town (scenario editor only).
2456 WID_TV_DELETE
= ::WID_TV_DELETE
, ///< Delete this town (scenario editor only).
2459 /** Widgets of the #FoundTownWindow class. */
2460 enum TownFoundingWidgets
{
2461 WID_TF_NEW_TOWN
= ::WID_TF_NEW_TOWN
, ///< Create a new town.
2462 WID_TF_RANDOM_TOWN
= ::WID_TF_RANDOM_TOWN
, ///< Randomly place a town.
2463 WID_TF_MANY_RANDOM_TOWNS
= ::WID_TF_MANY_RANDOM_TOWNS
, ///< Randomly place many towns.
2464 WID_TF_TOWN_NAME_EDITBOX
= ::WID_TF_TOWN_NAME_EDITBOX
, ///< Editor for the town name.
2465 WID_TF_TOWN_NAME_RANDOM
= ::WID_TF_TOWN_NAME_RANDOM
, ///< Generate a random town name.
2466 WID_TF_SIZE_SMALL
= ::WID_TF_SIZE_SMALL
, ///< Selection for a small town.
2467 WID_TF_SIZE_MEDIUM
= ::WID_TF_SIZE_MEDIUM
, ///< Selection for a medium town.
2468 WID_TF_SIZE_LARGE
= ::WID_TF_SIZE_LARGE
, ///< Selection for a large town.
2469 WID_TF_SIZE_RANDOM
= ::WID_TF_SIZE_RANDOM
, ///< Selection for a randomly sized town.
2470 WID_TF_CITY
= ::WID_TF_CITY
, ///< Selection for the town's city state.
2471 WID_TF_LAYOUT_ORIGINAL
= ::WID_TF_LAYOUT_ORIGINAL
, ///< Selection for the original town layout.
2472 WID_TF_LAYOUT_BETTER
= ::WID_TF_LAYOUT_BETTER
, ///< Selection for the better town layout.
2473 WID_TF_LAYOUT_GRID2
= ::WID_TF_LAYOUT_GRID2
, ///< Selection for the 2x2 grid town layout.
2474 WID_TF_LAYOUT_GRID3
= ::WID_TF_LAYOUT_GRID3
, ///< Selection for the 3x3 grid town layout.
2475 WID_TF_LAYOUT_RANDOM
= ::WID_TF_LAYOUT_RANDOM
, ///< Selection for a randomly chosen town layout.
2478 /* automatically generated from ../../widgets/transparency_widget.h */
2479 /** Widgets of the #TransparenciesWindow class. */
2480 enum TransparencyToolbarWidgets
{
2482 WID_TT_BEGIN
= ::WID_TT_BEGIN
, ///< First toggle button.
2483 WID_TT_SIGNS
= ::WID_TT_SIGNS
, ///< Signs background transparency toggle button.
2484 WID_TT_TREES
= ::WID_TT_TREES
, ///< Trees transparency toggle button.
2485 WID_TT_HOUSES
= ::WID_TT_HOUSES
, ///< Houses transparency toggle button.
2486 WID_TT_INDUSTRIES
= ::WID_TT_INDUSTRIES
, ///< industries transparency toggle button.
2487 WID_TT_BUILDINGS
= ::WID_TT_BUILDINGS
, ///< Company buildings and structures transparency toggle button.
2488 WID_TT_BRIDGES
= ::WID_TT_BRIDGES
, ///< Bridges transparency toggle button.
2489 WID_TT_STRUCTURES
= ::WID_TT_STRUCTURES
, ///< Object structure transparency toggle button.
2490 WID_TT_CATENARY
= ::WID_TT_CATENARY
, ///< Catenary transparency toggle button.
2491 WID_TT_LOADING
= ::WID_TT_LOADING
, ///< Loading indicators transparency toggle button.
2492 WID_TT_END
= ::WID_TT_END
, ///< End of toggle buttons.
2494 /* Panel with buttons for invisibility */
2495 WID_TT_BUTTONS
= ::WID_TT_BUTTONS
, ///< Panel with 'invisibility' buttons.
2498 /* automatically generated from ../../widgets/tree_widget.h */
2499 /** Widgets of the #BuildTreesWindow class. */
2500 enum BuildTreesWidgets
{
2501 WID_BT_TYPE_11
= ::WID_BT_TYPE_11
, ///< Tree 1st column 1st row.
2502 WID_BT_TYPE_12
= ::WID_BT_TYPE_12
, ///< Tree 1st column 2nd row.
2503 WID_BT_TYPE_13
= ::WID_BT_TYPE_13
, ///< Tree 1st column 3rd row.
2504 WID_BT_TYPE_14
= ::WID_BT_TYPE_14
, ///< Tree 1st column 4th row.
2505 WID_BT_TYPE_21
= ::WID_BT_TYPE_21
, ///< Tree 2st column 1st row.
2506 WID_BT_TYPE_22
= ::WID_BT_TYPE_22
, ///< Tree 2st column 2nd row.
2507 WID_BT_TYPE_23
= ::WID_BT_TYPE_23
, ///< Tree 2st column 3rd row.
2508 WID_BT_TYPE_24
= ::WID_BT_TYPE_24
, ///< Tree 2st column 4th row.
2509 WID_BT_TYPE_31
= ::WID_BT_TYPE_31
, ///< Tree 3st column 1st row.
2510 WID_BT_TYPE_32
= ::WID_BT_TYPE_32
, ///< Tree 3st column 2nd row.
2511 WID_BT_TYPE_33
= ::WID_BT_TYPE_33
, ///< Tree 3st column 3rd row.
2512 WID_BT_TYPE_34
= ::WID_BT_TYPE_34
, ///< Tree 3st column 4th row.
2513 WID_BT_TYPE_RANDOM
= ::WID_BT_TYPE_RANDOM
, ///< Button to build random type of tree.
2514 WID_BT_MANY_RANDOM
= ::WID_BT_MANY_RANDOM
, ///< Button to build many random trees.
2517 /* automatically generated from ../../widgets/vehicle_widget.h */
2518 /** Widgets of the #VehicleViewWindow class. */
2519 enum VehicleViewWidgets
{
2520 WID_VV_CAPTION
= ::WID_VV_CAPTION
, ///< Caption of window.
2521 WID_VV_VIEWPORT
= ::WID_VV_VIEWPORT
, ///< Viewport widget.
2522 WID_VV_START_STOP
= ::WID_VV_START_STOP
, ///< Start or stop this vehicle, and show information about the current state.
2523 WID_VV_CENTER_MAIN_VIEW
= ::WID_VV_CENTER_MAIN_VIEW
, ///< Center the main view on this vehicle.
2524 WID_VV_GOTO_DEPOT
= ::WID_VV_GOTO_DEPOT
, ///< Order this vehicle to go to the depot.
2525 WID_VV_REFIT
= ::WID_VV_REFIT
, ///< Open the refit window.
2526 WID_VV_SHOW_ORDERS
= ::WID_VV_SHOW_ORDERS
, ///< Show the orders of this vehicle.
2527 WID_VV_SHOW_DETAILS
= ::WID_VV_SHOW_DETAILS
, ///< Show details of this vehicle.
2528 WID_VV_CLONE
= ::WID_VV_CLONE
, ///< Clone this vehicle.
2529 WID_VV_SELECT_DEPOT_CLONE
= ::WID_VV_SELECT_DEPOT_CLONE
, ///< Selection widget between 'goto depot', and 'clone vehicle' buttons.
2530 WID_VV_SELECT_REFIT_TURN
= ::WID_VV_SELECT_REFIT_TURN
, ///< Selection widget between 'refit' and 'turn around' buttons.
2531 WID_VV_TURN_AROUND
= ::WID_VV_TURN_AROUND
, ///< Turn this vehicle around.
2532 WID_VV_FORCE_PROCEED
= ::WID_VV_FORCE_PROCEED
, ///< Force this vehicle to pass a signal at danger.
2535 /** Widgets of the #RefitWindow class. */
2536 enum VehicleRefitWidgets
{
2537 WID_VR_CAPTION
= ::WID_VR_CAPTION
, ///< Caption of window.
2538 WID_VR_VEHICLE_PANEL_DISPLAY
= ::WID_VR_VEHICLE_PANEL_DISPLAY
, ///< Display with a representation of the vehicle to refit.
2539 WID_VR_SHOW_HSCROLLBAR
= ::WID_VR_SHOW_HSCROLLBAR
, ///< Selection widget for the horizontal scrollbar.
2540 WID_VR_HSCROLLBAR
= ::WID_VR_HSCROLLBAR
, ///< Horizontal scrollbar or the vehicle display.
2541 WID_VR_SELECT_HEADER
= ::WID_VR_SELECT_HEADER
, ///< Header with question about the cargo to carry.
2542 WID_VR_MATRIX
= ::WID_VR_MATRIX
, ///< Options to refit to.
2543 WID_VR_SCROLLBAR
= ::WID_VR_SCROLLBAR
, ///< Scrollbar for the refit options.
2544 WID_VR_INFO
= ::WID_VR_INFO
, ///< Information about the currently selected refit option.
2545 WID_VR_REFIT
= ::WID_VR_REFIT
, ///< Perform the refit.
2548 /** Widgets of the #VehicleDetailsWindow class. */
2549 enum VehicleDetailsWidgets
{
2550 WID_VD_CAPTION
= ::WID_VD_CAPTION
, ///< Caption of window.
2551 WID_VD_RENAME_VEHICLE
= ::WID_VD_RENAME_VEHICLE
, ///< Rename this vehicle.
2552 WID_VD_TOP_DETAILS
= ::WID_VD_TOP_DETAILS
, ///< Panel with generic details.
2553 WID_VD_INCREASE_SERVICING_INTERVAL
= ::WID_VD_INCREASE_SERVICING_INTERVAL
, ///< Increase the servicing interval.
2554 WID_VD_DECREASE_SERVICING_INTERVAL
= ::WID_VD_DECREASE_SERVICING_INTERVAL
, ///< Decrease the servicing interval.
2555 WID_VD_SERVICE_INTERVAL_DROPDOWN
= ::WID_VD_SERVICE_INTERVAL_DROPDOWN
, ///< Dropdown to select default/days/percent service interval.
2556 WID_VD_SERVICING_INTERVAL
= ::WID_VD_SERVICING_INTERVAL
, ///< Information about the servicing interval.
2557 WID_VD_MIDDLE_DETAILS
= ::WID_VD_MIDDLE_DETAILS
, ///< Details for non-trains.
2558 WID_VD_MATRIX
= ::WID_VD_MATRIX
, ///< List of details for trains.
2559 WID_VD_SCROLLBAR
= ::WID_VD_SCROLLBAR
, ///< Scrollbar for train details.
2560 WID_VD_DETAILS_CARGO_CARRIED
= ::WID_VD_DETAILS_CARGO_CARRIED
, ///< Show carried cargo per part of the train.
2561 WID_VD_DETAILS_TRAIN_VEHICLES
= ::WID_VD_DETAILS_TRAIN_VEHICLES
, ///< Show all parts of the train with their description.
2562 WID_VD_DETAILS_CAPACITY_OF_EACH
= ::WID_VD_DETAILS_CAPACITY_OF_EACH
, ///< Show the capacity of all train parts.
2563 WID_VD_DETAILS_TOTAL_CARGO
= ::WID_VD_DETAILS_TOTAL_CARGO
, ///< Show the capacity and carried cargo amounts aggregated per cargo of the train.
2566 /** Widgets of the #VehicleListWindow class. */
2567 enum VehicleListWidgets
{
2568 WID_VL_CAPTION
= ::WID_VL_CAPTION
, ///< Caption of window.
2569 WID_VL_SORT_ORDER
= ::WID_VL_SORT_ORDER
, ///< Sort order.
2570 WID_VL_SORT_BY_PULLDOWN
= ::WID_VL_SORT_BY_PULLDOWN
, ///< Sort by dropdown list.
2571 WID_VL_LIST
= ::WID_VL_LIST
, ///< List of the vehicles.
2572 WID_VL_SCROLLBAR
= ::WID_VL_SCROLLBAR
, ///< Scrollbar for the list.
2573 WID_VL_HIDE_BUTTONS
= ::WID_VL_HIDE_BUTTONS
, ///< Selection to hide the buttons.
2574 WID_VL_AVAILABLE_VEHICLES
= ::WID_VL_AVAILABLE_VEHICLES
, ///< Available vehicles.
2575 WID_VL_MANAGE_VEHICLES_DROPDOWN
= ::WID_VL_MANAGE_VEHICLES_DROPDOWN
, ///< Manage vehicles dropdown list.
2576 WID_VL_STOP_ALL
= ::WID_VL_STOP_ALL
, ///< Stop all button.
2577 WID_VL_START_ALL
= ::WID_VL_START_ALL
, ///< Start all button.
2580 /* automatically generated from ../../widgets/viewport_widget.h */
2581 /** Widgets of the #ExtraViewportWindow class. */
2582 enum ExtraViewportWidgets
{
2583 WID_EV_CAPTION
= ::WID_EV_CAPTION
, ///< Caption of window.
2584 WID_EV_VIEWPORT
= ::WID_EV_VIEWPORT
, ///< The viewport.
2585 WID_EV_ZOOM_IN
= ::WID_EV_ZOOM_IN
, ///< Zoom in.
2586 WID_EV_ZOOM_OUT
= ::WID_EV_ZOOM_OUT
, ///< Zoom out.
2587 WID_EV_MAIN_TO_VIEW
= ::WID_EV_MAIN_TO_VIEW
, ///< Center the view of this viewport on the main view.
2588 WID_EV_VIEW_TO_MAIN
= ::WID_EV_VIEW_TO_MAIN
, ///< Center the main view on the view of this viewport.
2591 /* automatically generated from ../../widgets/waypoint_widget.h */
2592 /** Widgets of the #WaypointWindow class. */
2593 enum WaypointWidgets
{
2594 WID_W_CAPTION
= ::WID_W_CAPTION
, ///< Caption of window.
2595 WID_W_VIEWPORT
= ::WID_W_VIEWPORT
, ///< The viewport on this waypoint.
2596 WID_W_CENTER_VIEW
= ::WID_W_CENTER_VIEW
, ///< Center the main view on this waypoint.
2597 WID_W_RENAME
= ::WID_W_RENAME
, ///< Rename this waypoint.
2598 WID_W_SHOW_VEHICLES
= ::WID_W_SHOW_VEHICLES
, ///< Show the vehicles visiting this waypoint.
2604 #endif /* SCRIPT_WINDOW_HPP */