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 * Vehicle cargo type load orders; %Window numbers:
294 * - #VehicleID = #CargoTypeOrdersWidgets
296 WC_VEHICLE_CARGO_TYPE_LOAD_ORDERS
= ::WC_VEHICLE_CARGO_TYPE_LOAD_ORDERS
,
299 * Vehicle cargo type unload orders; %Window numbers:
300 * - #VehicleID = #CargoTypeOrdersWidgets
302 WC_VEHICLE_CARGO_TYPE_UNLOAD_ORDERS
= ::WC_VEHICLE_CARGO_TYPE_UNLOAD_ORDERS
,
305 * Replace vehicle window; %Window numbers:
306 * - #VehicleType = #ReplaceVehicleWidgets
308 WC_REPLACE_VEHICLE
= ::WC_REPLACE_VEHICLE
,
311 * Vehicle timetable; %Window numbers:
312 * - #VehicleID = #VehicleTimetableWidgets
314 WC_VEHICLE_TIMETABLE
= ::WC_VEHICLE_TIMETABLE
,
317 * Vehicle trip history; %Window numbers:
318 * - #VehicleID = #VehicleTripHistoryWidgets
320 WC_VEHICLE_TRIP_HISTORY
= ::WC_VEHICLE_TRIP_HISTORY
,
323 * Company colour selection; %Window numbers:
324 * - #CompanyID = #SelectCompanyLiveryWidgets
326 WC_COMPANY_COLOUR
= ::WC_COMPANY_COLOUR
,
329 * Alter company face window; %Window numbers:
330 * - #CompanyID = #SelectCompanyManagerFaceWidgets
332 WC_COMPANY_MANAGER_FACE
= ::WC_COMPANY_MANAGER_FACE
,
335 * Select station (when joining stations); %Window numbers:
336 * - 0 = #JoinStationWidgets
338 WC_SELECT_STATION
= ::WC_SELECT_STATION
,
341 * News window; %Window numbers:
344 WC_NEWS_WINDOW
= ::WC_NEWS_WINDOW
,
347 * Town directory; %Window numbers:
348 * - 0 = #TownDirectoryWidgets
350 WC_TOWN_DIRECTORY
= ::WC_TOWN_DIRECTORY
,
353 * Subsidies list; %Window numbers:
354 * - 0 = #SubsidyListWidgets
356 WC_SUBSIDIES_LIST
= ::WC_SUBSIDIES_LIST
,
359 * Industry directory; %Window numbers:
360 * - 0 = #IndustryDirectoryWidgets
362 WC_INDUSTRY_DIRECTORY
= ::WC_INDUSTRY_DIRECTORY
,
365 * News history list; %Window numbers:
366 * - 0 = #MessageHistoryWidgets
368 WC_MESSAGE_HISTORY
= ::WC_MESSAGE_HISTORY
,
371 * Sign list; %Window numbers:
372 * - 0 = #SignListWidgets
374 WC_SIGN_LIST
= ::WC_SIGN_LIST
,
377 * AI list; %Window numbers:
378 * - 0 = #AIListWidgets
380 WC_AI_LIST
= ::WC_AI_LIST
,
383 * Goals list; %Window numbers:
384 * - 0 ; #GoalListWidgets
386 WC_GOALS_LIST
= ::WC_GOALS_LIST
,
389 * Story book; %Window numbers:
390 * - CompanyID = #StoryBookWidgets
392 WC_STORY_BOOK
= ::WC_STORY_BOOK
,
395 * Station list; %Window numbers:
396 * - #CompanyID = #StationListWidgets
398 WC_STATION_LIST
= ::WC_STATION_LIST
,
401 * Trains list; %Window numbers:
402 * - Packed value = #GroupListWidgets / #VehicleListWidgets
404 WC_TRAINS_LIST
= ::WC_TRAINS_LIST
,
407 * Road vehicle list; %Window numbers:
408 * - Packed value = #GroupListWidgets / #VehicleListWidgets
410 WC_ROADVEH_LIST
= ::WC_ROADVEH_LIST
,
413 * Ships list; %Window numbers:
414 * - Packed value = #GroupListWidgets / #VehicleListWidgets
416 WC_SHIPS_LIST
= ::WC_SHIPS_LIST
,
419 * Aircraft list; %Window numbers:
420 * - Packed value = #GroupListWidgets / #VehicleListWidgets
422 WC_AIRCRAFT_LIST
= ::WC_AIRCRAFT_LIST
,
426 * Town view; %Window numbers:
427 * - #TownID = #TownViewWidgets
429 WC_TOWN_VIEW
= ::WC_TOWN_VIEW
,
432 * Vehicle view; %Window numbers:
433 * - #VehicleID = #VehicleViewWidgets
435 WC_VEHICLE_VIEW
= ::WC_VEHICLE_VIEW
,
438 * Station view; %Window numbers:
439 * - #StationID = #StationViewWidgets
441 WC_STATION_VIEW
= ::WC_STATION_VIEW
,
444 * Depot view; %Window numbers:
445 * - #TileIndex = #DepotWidgets
447 WC_VEHICLE_DEPOT
= ::WC_VEHICLE_DEPOT
,
450 * Waypoint view; %Window numbers:
451 * - #WaypointID = #WaypointWidgets
453 WC_WAYPOINT_VIEW
= ::WC_WAYPOINT_VIEW
,
456 * Industry view; %Window numbers:
457 * - #IndustryID = #IndustryViewWidgets
459 WC_INDUSTRY_VIEW
= ::WC_INDUSTRY_VIEW
,
462 * Company view; %Window numbers:
463 * - #CompanyID = #CompanyWidgets
465 WC_COMPANY
= ::WC_COMPANY
,
469 * Build object; %Window numbers:
470 * - 0 = #BuildObjectWidgets
472 WC_BUILD_OBJECT
= ::WC_BUILD_OBJECT
,
475 * Build vehicle; %Window numbers:
476 * - #VehicleType = #BuildVehicleWidgets
477 * - #TileIndex = #BuildVehicleWidgets
479 WC_BUILD_VEHICLE
= ::WC_BUILD_VEHICLE
,
482 * Build bridge; %Window numbers:
483 * - #TransportType = #BuildBridgeSelectionWidgets
485 WC_BUILD_BRIDGE
= ::WC_BUILD_BRIDGE
,
488 * Build station; %Window numbers:
489 * - #TRANSPORT_AIR = #AirportPickerWidgets
490 * - #TRANSPORT_WATER = #DockToolbarWidgets
491 * - #TRANSPORT_RAIL = #BuildRailStationWidgets
493 WC_BUILD_STATION
= ::WC_BUILD_STATION
,
496 * Build bus station; %Window numbers:
497 * - #TRANSPORT_ROAD = #BuildRoadStationWidgets
499 WC_BUS_STATION
= ::WC_BUS_STATION
,
502 * Build truck station; %Window numbers:
503 * - #TRANSPORT_ROAD = #BuildRoadStationWidgets
505 WC_TRUCK_STATION
= ::WC_TRUCK_STATION
,
508 * Build depot; %Window numbers:
509 * - #TRANSPORT_WATER = #BuildDockDepotWidgets
510 * - #TRANSPORT_RAIL = #BuildRailDepotWidgets
511 * - #TRANSPORT_ROAD = #BuildRoadDepotWidgets
513 WC_BUILD_DEPOT
= ::WC_BUILD_DEPOT
,
516 * Build waypoint; %Window numbers:
517 * - #TRANSPORT_RAIL = #BuildRailWaypointWidgets
519 WC_BUILD_WAYPOINT
= ::WC_BUILD_WAYPOINT
,
522 * Found a town; %Window numbers:
523 * - 0 = #TownFoundingWidgets
525 WC_FOUND_TOWN
= ::WC_FOUND_TOWN
,
528 * Build industry; %Window numbers:
529 * - 0 = #DynamicPlaceIndustriesWidgets
531 WC_BUILD_INDUSTRY
= ::WC_BUILD_INDUSTRY
,
535 * Select game window; %Window numbers:
536 * - 0 = #SelectGameIntroWidgets
538 WC_SELECT_GAME
= ::WC_SELECT_GAME
,
541 * Landscape generation (in Scenario Editor); %Window numbers:
542 * - 0 = #TerraformToolbarWidgets
543 * - 0 = #EditorTerraformToolbarWidgets
545 WC_SCEN_LAND_GEN
= ::WC_SCEN_LAND_GEN
,
548 * Generate landscape (newgame); %Window numbers:
549 * - GLWM_SCENARIO = #CreateScenarioWidgets
550 * - #GenerateLandscapeWindowMode = #GenerateLandscapeWidgets
552 WC_GENERATE_LANDSCAPE
= ::WC_GENERATE_LANDSCAPE
,
555 * Progress report of landscape generation; %Window numbers:
556 * - 0 = #GenerationProgressWidgets
557 * - 1 = #ScanProgressWidgets
559 WC_MODAL_PROGRESS
= ::WC_MODAL_PROGRESS
,
563 * Network window; %Window numbers:
564 * - #WN_NETWORK_WINDOW_GAME = #NetworkGameWidgets
565 * - #WN_NETWORK_WINDOW_LOBBY = #NetworkLobbyWidgets
566 * - #WN_NETWORK_WINDOW_CONTENT_LIST = #NetworkContentListWidgets
567 * - #WN_NETWORK_WINDOW_START = #NetworkStartServerWidgets
569 WC_NETWORK_WINDOW
= ::WC_NETWORK_WINDOW
,
572 * Client list; %Window numbers:
573 * - 0 = #ClientListWidgets
575 WC_CLIENT_LIST
= ::WC_CLIENT_LIST
,
578 * Popup for the client list; %Window numbers:
579 * - #ClientID = #ClientListPopupWidgets
581 WC_CLIENT_LIST_POPUP
= ::WC_CLIENT_LIST_POPUP
,
584 * Network status window; %Window numbers:
585 * - #WN_NETWORK_STATUS_WINDOW_JOIN = #NetworkJoinStatusWidgets
586 * - #WN_NETWORK_STATUS_WINDOW_CONTENT_DOWNLOAD = #NetworkContentDownloadStatusWidgets
588 WC_NETWORK_STATUS_WINDOW
= ::WC_NETWORK_STATUS_WINDOW
,
591 * Chatbox; %Window numbers:
592 * - #DestType = #NetWorkChatWidgets
594 WC_SEND_NETWORK_MSG
= ::WC_SEND_NETWORK_MSG
,
597 * Company password query; %Window numbers:
598 * - 0 = #NetworkCompanyPasswordWidgets
600 WC_COMPANY_PASSWORD_WINDOW
= ::WC_COMPANY_PASSWORD_WINDOW
,
604 * Industry cargoes chain; %Window numbers:
605 * - 0 = #IndustryCargoesWidgets
607 WC_INDUSTRY_CARGOES
= ::WC_INDUSTRY_CARGOES
,
610 * Legend for graphs; %Window numbers:
611 * - 0 = #GraphLegendWidgets
613 WC_GRAPH_LEGEND
= ::WC_GRAPH_LEGEND
,
616 * Finances of a company; %Window numbers:
617 * - #CompanyID = #CompanyWidgets
619 WC_FINANCES
= ::WC_FINANCES
,
622 * Income graph; %Window numbers:
623 * - 0 = #CompanyValueWidgets
625 WC_INCOME_GRAPH
= ::WC_INCOME_GRAPH
,
628 * Operating profit graph; %Window numbers:
629 * - 0 = #CompanyValueWidgets
631 WC_OPERATING_PROFIT
= ::WC_OPERATING_PROFIT
,
634 * Delivered cargo graph; %Window numbers:
635 * - 0 = #CompanyValueWidgets
637 WC_DELIVERED_CARGO
= ::WC_DELIVERED_CARGO
,
640 * Performance history graph; %Window numbers:
641 * - 0 = #PerformanceHistoryGraphWidgets
643 WC_PERFORMANCE_HISTORY
= ::WC_PERFORMANCE_HISTORY
,
646 * Company value graph; %Window numbers:
647 * - 0 = #CompanyValueWidgets
649 WC_COMPANY_VALUE
= ::WC_COMPANY_VALUE
,
652 * Company league window; %Window numbers:
653 * - 0 = #CompanyLeagueWidgets
655 WC_COMPANY_LEAGUE
= ::WC_COMPANY_LEAGUE
,
658 * Payment rates graph; %Window numbers:
659 * - 0 = #CargoPaymentRatesWidgets
661 WC_PAYMENT_RATES
= ::WC_PAYMENT_RATES
,
664 * Performance detail window; %Window numbers:
665 * - 0 = #PerformanceRatingDetailsWidgets
667 WC_PERFORMANCE_DETAIL
= ::WC_PERFORMANCE_DETAIL
,
670 * Company infrastructure overview; %Window numbers:
671 * - #CompanyID = #CompanyInfrastructureWidgets
673 WC_COMPANY_INFRASTRUCTURE
= ::WC_COMPANY_INFRASTRUCTURE
,
677 * Buyout company (merger); %Window numbers:
678 * - #CompanyID = #BuyCompanyWidgets
680 WC_BUY_COMPANY
= ::WC_BUY_COMPANY
,
683 * Engine preview window; %Window numbers:
684 * - #EngineID = #EnginePreviewWidgets
686 WC_ENGINE_PREVIEW
= ::WC_ENGINE_PREVIEW
,
690 * Music window; %Window numbers:
691 * - 0 = #MusicWidgets
693 WC_MUSIC_WINDOW
= ::WC_MUSIC_WINDOW
,
696 * Music track selection; %Window numbers:
697 * - 0 = MusicTrackSelectionWidgets
699 WC_MUSIC_TRACK_SELECTION
= ::WC_MUSIC_TRACK_SELECTION
,
702 * Game options window; %Window numbers:
703 * - #WN_GAME_OPTIONS_AI = #AIConfigWidgets
704 * - #WN_GAME_OPTIONS_ABOUT = #AboutWidgets
705 * - #WN_GAME_OPTIONS_NEWGRF_STATE = #NewGRFStateWidgets
706 * - #WN_GAME_OPTIONS_GAME_OPTIONS = #GameOptionsWidgets
707 * - #WN_GAME_OPTIONS_GAME_SETTINGS = #GameSettingsWidgets
709 WC_GAME_OPTIONS
= ::WC_GAME_OPTIONS
,
712 * Custom currency; %Window numbers:
713 * - 0 = #CustomCurrencyWidgets
715 WC_CUSTOM_CURRENCY
= ::WC_CUSTOM_CURRENCY
,
718 * Cheat window; %Window numbers:
719 * - 0 = #CheatWidgets
721 WC_CHEATS
= ::WC_CHEATS
,
724 * Extra viewport; %Window numbers:
725 * - Ascending value = #ExtraViewportWidgets
727 WC_EXTRA_VIEW_PORT
= ::WC_EXTRA_VIEW_PORT
,
731 * Console; %Window numbers:
732 * - 0 = #ConsoleWidgets
734 WC_CONSOLE
= ::WC_CONSOLE
,
737 * Bootstrap; %Window numbers:
738 * - 0 = #BootstrapBackgroundWidgets
740 WC_BOOTSTRAP
= ::WC_BOOTSTRAP
,
743 * Highscore; %Window numbers:
744 * - 0 = #HighscoreWidgets
746 WC_HIGHSCORE
= ::WC_HIGHSCORE
,
749 * Endscreen; %Window numbers:
750 * - 0 = #HighscoreWidgets
752 WC_ENDSCREEN
= ::WC_ENDSCREEN
,
756 * AI debug window; %Window numbers:
757 * - 0 = #AIDebugWidgets
759 WC_AI_DEBUG
= ::WC_AI_DEBUG
,
762 * NewGRF inspect (debug); %Window numbers:
763 * - Packed value = #NewGRFInspectWidgets
765 WC_NEWGRF_INSPECT
= ::WC_NEWGRF_INSPECT
,
768 * Sprite aligner (debug); %Window numbers:
769 * - 0 = #SpriteAlignerWidgets
771 WC_SPRITE_ALIGNER
= ::WC_SPRITE_ALIGNER
,
774 * Linkgraph legend; %Window numbers:
775 * - 0 = #LinkGraphWidgets
777 WC_LINKGRAPH_LEGEND
= ::WC_LINKGRAPH_LEGEND
,
780 * Save preset; %Window numbers:
781 * - 0 = #SavePresetWidgets
783 WC_SAVE_PRESET
= ::WC_SAVE_PRESET
,
785 WC_INVALID
= ::WC_INVALID
, ///< Invalid window.
791 * The colours in the game which you can use for text and highlights.
794 /* Note: these values represent part of the in-game TextColour enum */
795 TC_BLUE
= ::TC_BLUE
, ///< Blue colour.
796 TC_SILVER
= ::TC_SILVER
, ///< Silver colour.
797 TC_GOLD
= ::TC_GOLD
, ///< Gold colour.
798 TC_RED
= ::TC_RED
, ///< Red colour.
799 TC_PURPLE
= ::TC_PURPLE
, ///< Purple colour.
800 TC_LIGHT_BROWN
= ::TC_LIGHT_BROWN
, ///< Light brown colour.
801 TC_ORANGE
= ::TC_ORANGE
, ///< Orange colour.
802 TC_GREEN
= ::TC_GREEN
, ///< Green colour.
803 TC_YELLOW
= ::TC_YELLOW
, ///< Yellow colour.
804 TC_DARK_GREEN
= ::TC_DARK_GREEN
, ///< Dark green colour.
805 TC_CREAM
= ::TC_CREAM
, ///< Cream colour.
806 TC_BROWN
= ::TC_BROWN
, ///< Brown colour.
807 TC_WHITE
= ::TC_WHITE
, ///< White colour.
808 TC_LIGHT_BLUE
= ::TC_LIGHT_BLUE
, ///< Light blue colour.
809 TC_GREY
= ::TC_GREY
, ///< Grey colour.
810 TC_DARK_BLUE
= ::TC_DARK_BLUE
, ///< Dark blue colour.
811 TC_BLACK
= ::TC_BLACK
, ///< Black colour.
812 TC_INVALID
= ::TC_INVALID
, ///< Invalid colour.
816 * Special number values.
819 NUMBER_ALL
= 0xFFFFFFFF, ///< Value to select all windows of a class.
823 * Special widget values.
826 WIDGET_ALL
= 0xFF, ///< Value to select all widgets of a window.
831 * @param window The class of the window to close.
832 * @param number The number of the window to close, or NUMBER_ALL to close all of this class.
833 * @pre !ScriptGame::IsMultiplayer().
835 static void Close(WindowClass window
, uint32 number
);
838 * Check if a window is open.
839 * @param window The class of the window to check for.
840 * @param number The number of the window to check for, or NUMBER_ALL to check for any in the class.
841 * @pre !ScriptGame::IsMultiplayer().
842 * @return True if the window is open.
844 static bool IsOpen(WindowClass window
, uint32 number
);
847 * Highlight a widget in a window.
848 * @param window The class of the window to highlight a widget in.
849 * @param number The number of the window to highlight a widget in.
850 * @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.
851 * @param colour The colour of the highlight, or TC_INVALID for disabling.
852 * @pre !ScriptGame::IsMultiplayer().
853 * @pre number != NUMBER_ALL.
854 * @pre colour < TC_END || (widget == WIDGET_ALL && colour == TC_INVALID).
855 * @pre IsOpen(window, number).
857 static void Highlight(WindowClass window
, uint32 number
, uint8 widget
, TextColour colour
);
859 // @enum .*Widgets ../../widgets/*_widget.h
860 /* automatically generated from ../../widgets/ai_widget.h */
861 /** Widgets of the #AIListWindow class. */
863 WID_AIL_CAPTION
= ::WID_AIL_CAPTION
, ///< Caption of the window.
864 WID_AIL_LIST
= ::WID_AIL_LIST
, ///< The matrix with all available AIs.
865 WID_AIL_SCROLLBAR
= ::WID_AIL_SCROLLBAR
, ///< Scrollbar next to the AI list.
866 WID_AIL_INFO_BG
= ::WID_AIL_INFO_BG
, ///< Panel to draw some AI information on.
867 WID_AIL_ACCEPT
= ::WID_AIL_ACCEPT
, ///< Accept button.
868 WID_AIL_CANCEL
= ::WID_AIL_CANCEL
, ///< Cancel button.
871 /** Widgets of the #AISettingsWindow class. */
872 enum AISettingsWidgets
{
873 WID_AIS_CAPTION
= ::WID_AIS_CAPTION
, ///< Caption of the window.
874 WID_AIS_BACKGROUND
= ::WID_AIS_BACKGROUND
, ///< Panel to draw the settings on.
875 WID_AIS_SCROLLBAR
= ::WID_AIS_SCROLLBAR
, ///< Scrollbar to scroll through all settings.
876 WID_AIS_ACCEPT
= ::WID_AIS_ACCEPT
, ///< Accept button.
877 WID_AIS_RESET
= ::WID_AIS_RESET
, ///< Reset button.
880 /** Widgets of the #AIConfigWindow class. */
881 enum AIConfigWidgets
{
882 WID_AIC_BACKGROUND
= ::WID_AIC_BACKGROUND
, ///< Window background.
883 WID_AIC_DECREASE
= ::WID_AIC_DECREASE
, ///< Decrease the number of AIs.
884 WID_AIC_INCREASE
= ::WID_AIC_INCREASE
, ///< Increase the number of AIs.
885 WID_AIC_NUMBER
= ::WID_AIC_NUMBER
, ///< Number of AIs.
886 WID_AIC_GAMELIST
= ::WID_AIC_GAMELIST
, ///< List with current selected GameScript.
887 WID_AIC_LIST
= ::WID_AIC_LIST
, ///< List with currently selected AIs.
888 WID_AIC_SCROLLBAR
= ::WID_AIC_SCROLLBAR
, ///< Scrollbar to scroll through the selected AIs.
889 WID_AIC_MOVE_UP
= ::WID_AIC_MOVE_UP
, ///< Move up button.
890 WID_AIC_MOVE_DOWN
= ::WID_AIC_MOVE_DOWN
, ///< Move down button.
891 WID_AIC_CHANGE
= ::WID_AIC_CHANGE
, ///< Select another AI button.
892 WID_AIC_CONFIGURE
= ::WID_AIC_CONFIGURE
, ///< Change AI settings button.
893 WID_AIC_CLOSE
= ::WID_AIC_CLOSE
, ///< Close window button.
894 WID_AIC_TEXTFILE
= ::WID_AIC_TEXTFILE
, ///< Open AI readme, changelog (+1) or license (+2).
895 WID_AIC_CONTENT_DOWNLOAD
= ::WID_AIC_CONTENT_DOWNLOAD
, ///< Download content button.
898 /** Widgets of the #AIDebugWindow class. */
899 enum AIDebugWidgets
{
900 WID_AID_VIEW
= ::WID_AID_VIEW
, ///< The row of company buttons.
901 WID_AID_NAME_TEXT
= ::WID_AID_NAME_TEXT
, ///< Name of the current selected.
902 WID_AID_SETTINGS
= ::WID_AID_SETTINGS
, ///< Settings button.
903 WID_AID_SCRIPT_GAME
= ::WID_AID_SCRIPT_GAME
, ///< Game Script button.
904 WID_AID_RELOAD_TOGGLE
= ::WID_AID_RELOAD_TOGGLE
, ///< Reload button.
905 WID_AID_LOG_PANEL
= ::WID_AID_LOG_PANEL
, ///< Panel where the log is in.
906 WID_AID_SCROLLBAR
= ::WID_AID_SCROLLBAR
, ///< Scrollbar of the log panel.
907 WID_AID_COMPANY_BUTTON_START
= ::WID_AID_COMPANY_BUTTON_START
, ///< Buttons in the VIEW.
908 WID_AID_COMPANY_BUTTON_END
= ::WID_AID_COMPANY_BUTTON_END
, ///< Last possible button in the VIEW.
909 WID_AID_BREAK_STRING_WIDGETS
= ::WID_AID_BREAK_STRING_WIDGETS
, ///< The panel to handle the breaking on string.
910 WID_AID_BREAK_STR_ON_OFF_BTN
= ::WID_AID_BREAK_STR_ON_OFF_BTN
, ///< Enable breaking on string.
911 WID_AID_BREAK_STR_EDIT_BOX
= ::WID_AID_BREAK_STR_EDIT_BOX
, ///< Edit box for the string to break on.
912 WID_AID_MATCH_CASE_BTN
= ::WID_AID_MATCH_CASE_BTN
, ///< Checkbox to use match caching or not.
913 WID_AID_CONTINUE_BTN
= ::WID_AID_CONTINUE_BTN
, ///< Continue button.
916 /* automatically generated from ../../widgets/airport_widget.h */
917 /** Widgets of the #BuildAirToolbarWindow class. */
918 enum AirportToolbarWidgets
{
919 WID_AT_AIRPORT
= ::WID_AT_AIRPORT
, ///< Build airport button.
920 WID_AT_DEMOLISH
= ::WID_AT_DEMOLISH
, ///< Demolish button.
923 /** Widgets of the #BuildAirportWindow class. */
924 enum AirportPickerWidgets
{
925 WID_AP_CLASS_DROPDOWN
= ::WID_AP_CLASS_DROPDOWN
, ///< Dropdown of airport classes.
926 WID_AP_AIRPORT_LIST
= ::WID_AP_AIRPORT_LIST
, ///< List of airports.
927 WID_AP_SCROLLBAR
= ::WID_AP_SCROLLBAR
, ///< Scrollbar of the list.
928 WID_AP_LAYOUT_NUM
= ::WID_AP_LAYOUT_NUM
, ///< Current number of the layout.
929 WID_AP_LAYOUT_DECREASE
= ::WID_AP_LAYOUT_DECREASE
, ///< Decrease the layout number.
930 WID_AP_LAYOUT_INCREASE
= ::WID_AP_LAYOUT_INCREASE
, ///< Increase the layout number.
931 WID_AP_AIRPORT_SPRITE
= ::WID_AP_AIRPORT_SPRITE
, ///< A visual display of the airport currently selected.
932 WID_AP_EXTRA_TEXT
= ::WID_AP_EXTRA_TEXT
, ///< Additional text about the airport.
933 WID_AP_BOTTOMPANEL
= ::WID_AP_BOTTOMPANEL
, ///< Panel at the bottom.
934 WID_AP_COVERAGE_LABEL
= ::WID_AP_COVERAGE_LABEL
, ///< Label if you want to see the coverage.
935 WID_AP_BTN_DONTHILIGHT
= ::WID_AP_BTN_DONTHILIGHT
, ///< Don't show the coverage button.
936 WID_AP_BTN_DOHILIGHT
= ::WID_AP_BTN_DOHILIGHT
, ///< Show the coverage button.
939 /* automatically generated from ../../widgets/autoreplace_widget.h */
940 /** Widgets of the #ReplaceVehicleWindow class. */
941 enum ReplaceVehicleWidgets
{
942 WID_RV_CAPTION
= ::WID_RV_CAPTION
, ///< Caption of the window.
944 /* Sort dropdown at the right. */
945 WID_RV_SORT_ASCENDING_DESCENDING
= ::WID_RV_SORT_ASCENDING_DESCENDING
, ///< Ascending/descending sort order button.
946 WID_RV_SHOW_HIDDEN_ENGINES
= ::WID_RV_SHOW_HIDDEN_ENGINES
, ///< Toggle whether to display the hidden vehicles.
947 WID_RV_SORT_DROPDOWN
= ::WID_RV_SORT_DROPDOWN
, ///< Dropdown for the sort criteria.
949 /* Left and right matrix + details. */
950 WID_RV_LEFT_MATRIX
= ::WID_RV_LEFT_MATRIX
, ///< The matrix on the left.
951 WID_RV_LEFT_SCROLLBAR
= ::WID_RV_LEFT_SCROLLBAR
, ///< The scrollbar for the matrix on the left.
952 WID_RV_RIGHT_MATRIX
= ::WID_RV_RIGHT_MATRIX
, ///< The matrix on the right.
953 WID_RV_RIGHT_SCROLLBAR
= ::WID_RV_RIGHT_SCROLLBAR
, ///< The scrollbar for the matrix on the right.
954 WID_RV_LEFT_DETAILS
= ::WID_RV_LEFT_DETAILS
, ///< Details of the entry on the left.
955 WID_RV_RIGHT_DETAILS
= ::WID_RV_RIGHT_DETAILS
, ///< Details of the entry on the right.
958 WID_RV_START_REPLACE
= ::WID_RV_START_REPLACE
, ///< Start Replacing button.
959 WID_RV_INFO_TAB
= ::WID_RV_INFO_TAB
, ///< Info tab.
960 WID_RV_STOP_REPLACE
= ::WID_RV_STOP_REPLACE
, ///< Stop Replacing button.
962 /* Train only widgets. */
963 WID_RV_TRAIN_ENGINEWAGON_DROPDOWN
= ::WID_RV_TRAIN_ENGINEWAGON_DROPDOWN
, ///< Dropdown to select engines and/or wagons.
964 WID_RV_TRAIN_RAILTYPE_DROPDOWN
= ::WID_RV_TRAIN_RAILTYPE_DROPDOWN
, ///< Dropdown menu about the railtype.
965 WID_RV_TRAIN_WAGONREMOVE_TOGGLE
= ::WID_RV_TRAIN_WAGONREMOVE_TOGGLE
, ///< Button to toggle removing wagons.
968 /* automatically generated from ../../widgets/bootstrap_widget.h */
969 /** Widgets of the #BootstrapBackground class. */
970 enum BootstrapBackgroundWidgets
{
971 WID_BB_BACKGROUND
= ::WID_BB_BACKGROUND
, ///< Background of the window.
974 /** Widgets of the #BootstrapContentDownloadStatusWindow class. */
975 enum BootstrapAskForDownloadWidgets
{
976 WID_BAFD_QUESTION
= ::WID_BAFD_QUESTION
, ///< The question whether to download.
977 WID_BAFD_YES
= ::WID_BAFD_YES
, ///< An affirmative answer to the question.
978 WID_BAFD_NO
= ::WID_BAFD_NO
, ///< An negative answer to the question.
981 /* automatically generated from ../../widgets/bridge_widget.h */
982 /** Widgets of the #BuildBridgeWindow class. */
983 enum BuildBridgeSelectionWidgets
{
984 WID_BBS_CAPTION
= ::WID_BBS_CAPTION
, ///< Caption of the window.
985 WID_BBS_DROPDOWN_ORDER
= ::WID_BBS_DROPDOWN_ORDER
, ///< Direction of sort dropdown.
986 WID_BBS_DROPDOWN_CRITERIA
= ::WID_BBS_DROPDOWN_CRITERIA
, ///< Criteria of sort dropdown.
987 WID_BBS_BRIDGE_LIST
= ::WID_BBS_BRIDGE_LIST
, ///< List of bridges.
988 WID_BBS_SCROLLBAR
= ::WID_BBS_SCROLLBAR
, ///< Scrollbar of the list.
991 /* automatically generated from ../../widgets/build_vehicle_widget.h */
992 /** Widgets of the #BuildVehicleWindow class. */
993 enum BuildVehicleWidgets
{
994 WID_BV_CAPTION
= ::WID_BV_CAPTION
, ///< Caption of window.
995 WID_BV_SORT_ASCENDING_DESCENDING
= ::WID_BV_SORT_ASCENDING_DESCENDING
, ///< Sort direction.
996 WID_BV_SORT_DROPDOWN
= ::WID_BV_SORT_DROPDOWN
, ///< Criteria of sorting dropdown.
997 WID_BV_CARGO_FILTER_DROPDOWN
= ::WID_BV_CARGO_FILTER_DROPDOWN
, ///< Cargo filter dropdown.
998 WID_BV_SHOW_HIDDEN_ENGINES
= ::WID_BV_SHOW_HIDDEN_ENGINES
, ///< Toggle whether to display the hidden vehicles.
999 WID_BV_LIST
= ::WID_BV_LIST
, ///< List of vehicles.
1000 WID_BV_SCROLLBAR
= ::WID_BV_SCROLLBAR
, ///< Scrollbar of list.
1001 WID_BV_PANEL
= ::WID_BV_PANEL
, ///< Button panel.
1002 WID_BV_BUILD
= ::WID_BV_BUILD
, ///< Build panel.
1003 WID_BV_SHOW_HIDE
= ::WID_BV_SHOW_HIDE
, ///< Button to hide or show the selected engine.
1004 WID_BV_BUILD_SEL
= ::WID_BV_BUILD_SEL
, ///< Build button.
1005 WID_BV_RENAME
= ::WID_BV_RENAME
, ///< Rename button.
1008 /* automatically generated from ../../widgets/cheat_widget.h */
1009 /** Widgets of the #CheatWindow class.. */
1011 WID_C_PANEL
= ::WID_C_PANEL
, ///< Panel where all cheats are shown in.
1014 /* automatically generated from ../../widgets/company_widget.h */
1015 /** Widgets of the #CompanyWindow class. */
1016 enum CompanyWidgets
{
1017 WID_C_CAPTION
= ::WID_C_CAPTION
, ///< Caption of the window.
1019 WID_C_FACE
= ::WID_C_FACE
, ///< View of the face.
1020 WID_C_FACE_TITLE
= ::WID_C_FACE_TITLE
, ///< Title for the face.
1022 WID_C_DESC_INAUGURATION
= ::WID_C_DESC_INAUGURATION
, ///< Inauguration.
1023 WID_C_DESC_COLOUR_SCHEME
= ::WID_C_DESC_COLOUR_SCHEME
, ///< Colour scheme.
1024 WID_C_DESC_COLOUR_SCHEME_EXAMPLE
= ::WID_C_DESC_COLOUR_SCHEME_EXAMPLE
, ///< Colour scheme example.
1025 WID_C_DESC_VEHICLE
= ::WID_C_DESC_VEHICLE
, ///< Vehicles.
1026 WID_C_DESC_VEHICLE_COUNTS
= ::WID_C_DESC_VEHICLE_COUNTS
, ///< Vehicle count.
1027 WID_C_DESC_COMPANY_VALUE
= ::WID_C_DESC_COMPANY_VALUE
, ///< Company value.
1028 WID_C_DESC_INFRASTRUCTURE
= ::WID_C_DESC_INFRASTRUCTURE
, ///< Infrastructure.
1029 WID_C_DESC_INFRASTRUCTURE_COUNTS
= ::WID_C_DESC_INFRASTRUCTURE_COUNTS
, ///< Infrastructure count.
1031 WID_C_SELECT_DESC_OWNERS
= ::WID_C_SELECT_DESC_OWNERS
, ///< Owners.
1032 WID_C_DESC_OWNERS
= ::WID_C_DESC_OWNERS
, ///< Owner in Owners.
1034 WID_C_SELECT_BUTTONS
= ::WID_C_SELECT_BUTTONS
, ///< Selection widget for the button bar.
1035 WID_C_NEW_FACE
= ::WID_C_NEW_FACE
, ///< Button to make new face.
1036 WID_C_COLOUR_SCHEME
= ::WID_C_COLOUR_SCHEME
, ///< Button to change colour scheme.
1037 WID_C_PRESIDENT_NAME
= ::WID_C_PRESIDENT_NAME
, ///< Button to change president name.
1038 WID_C_COMPANY_NAME
= ::WID_C_COMPANY_NAME
, ///< Button to change company name.
1039 WID_C_BUY_SHARE
= ::WID_C_BUY_SHARE
, ///< Button to buy a share.
1040 WID_C_SELL_SHARE
= ::WID_C_SELL_SHARE
, ///< Button to sell a share.
1042 WID_C_SELECT_VIEW_BUILD_HQ
= ::WID_C_SELECT_VIEW_BUILD_HQ
, ///< Panel about HQ.
1043 WID_C_VIEW_HQ
= ::WID_C_VIEW_HQ
, ///< Button to view the HQ.
1044 WID_C_BUILD_HQ
= ::WID_C_BUILD_HQ
, ///< Button to build the HQ.
1046 WID_C_SELECT_RELOCATE
= ::WID_C_SELECT_RELOCATE
, ///< Panel about 'Relocate HQ'.
1047 WID_C_RELOCATE_HQ
= ::WID_C_RELOCATE_HQ
, ///< Button to relocate the HQ.
1049 WID_C_VIEW_INFRASTRUCTURE
= ::WID_C_VIEW_INFRASTRUCTURE
, ///< Panel about infrastructure.
1051 WID_C_HAS_PASSWORD
= ::WID_C_HAS_PASSWORD
, ///< Has company password lock.
1052 WID_C_SELECT_MULTIPLAYER
= ::WID_C_SELECT_MULTIPLAYER
, ///< Multiplayer selection panel.
1053 WID_C_COMPANY_PASSWORD
= ::WID_C_COMPANY_PASSWORD
, ///< Button to set company password.
1054 WID_C_COMPANY_JOIN
= ::WID_C_COMPANY_JOIN
, ///< Button to join company.
1057 /** Widgets of the #CompanyFinancesWindow class. */
1058 enum CompanyFinancesWidgets
{
1059 WID_CF_CAPTION
= ::WID_CF_CAPTION
, ///< Caption of the window.
1060 WID_CF_TOGGLE_SIZE
= ::WID_CF_TOGGLE_SIZE
, ///< Toggle windows size.
1061 WID_CF_SEL_PANEL
= ::WID_CF_SEL_PANEL
, ///< Select panel or nothing.
1062 WID_CF_EXPS_CATEGORY
= ::WID_CF_EXPS_CATEGORY
, ///< Column for expenses category strings.
1063 WID_CF_EXPS_PRICE1
= ::WID_CF_EXPS_PRICE1
, ///< Column for year Y-2 expenses.
1064 WID_CF_EXPS_PRICE2
= ::WID_CF_EXPS_PRICE2
, ///< Column for year Y-1 expenses.
1065 WID_CF_EXPS_PRICE3
= ::WID_CF_EXPS_PRICE3
, ///< Column for year Y expenses.
1066 WID_CF_TOTAL_PANEL
= ::WID_CF_TOTAL_PANEL
, ///< Panel for totals.
1067 WID_CF_SEL_MAXLOAN
= ::WID_CF_SEL_MAXLOAN
, ///< Selection of maxloan column.
1068 WID_CF_BALANCE_VALUE
= ::WID_CF_BALANCE_VALUE
, ///< Bank balance value.
1069 WID_CF_LOAN_VALUE
= ::WID_CF_LOAN_VALUE
, ///< Loan.
1070 WID_CF_LOAN_LINE
= ::WID_CF_LOAN_LINE
, ///< Line for summing bank balance and loan.
1071 WID_CF_TOTAL_VALUE
= ::WID_CF_TOTAL_VALUE
, ///< Total.
1072 WID_CF_MAXLOAN_GAP
= ::WID_CF_MAXLOAN_GAP
, ///< Gap above max loan widget.
1073 WID_CF_MAXLOAN_VALUE
= ::WID_CF_MAXLOAN_VALUE
, ///< Max loan widget.
1074 WID_CF_SEL_BUTTONS
= ::WID_CF_SEL_BUTTONS
, ///< Selection of buttons.
1075 WID_CF_INCREASE_LOAN
= ::WID_CF_INCREASE_LOAN
, ///< Increase loan.
1076 WID_CF_REPAY_LOAN
= ::WID_CF_REPAY_LOAN
, ///< Decrease loan..
1077 WID_CF_INFRASTRUCTURE
= ::WID_CF_INFRASTRUCTURE
, ///< View company infrastructure.
1080 /** Widgets of the #SelectCompanyLiveryWindow class. */
1081 enum SelectCompanyLiveryWidgets
{
1082 WID_SCL_CAPTION
= ::WID_SCL_CAPTION
, ///< Caption of window.
1083 WID_SCL_CLASS_GENERAL
= ::WID_SCL_CLASS_GENERAL
, ///< Class general.
1084 WID_SCL_CLASS_RAIL
= ::WID_SCL_CLASS_RAIL
, ///< Class rail.
1085 WID_SCL_CLASS_ROAD
= ::WID_SCL_CLASS_ROAD
, ///< Class road.
1086 WID_SCL_CLASS_SHIP
= ::WID_SCL_CLASS_SHIP
, ///< Class ship.
1087 WID_SCL_CLASS_AIRCRAFT
= ::WID_SCL_CLASS_AIRCRAFT
, ///< Class aircraft.
1088 WID_SCL_SPACER_DROPDOWN
= ::WID_SCL_SPACER_DROPDOWN
, ///< Spacer for dropdown.
1089 WID_SCL_PRI_COL_DROPDOWN
= ::WID_SCL_PRI_COL_DROPDOWN
, ///< Dropdown for primary colour.
1090 WID_SCL_SEC_COL_DROPDOWN
= ::WID_SCL_SEC_COL_DROPDOWN
, ///< Dropdown for secondary colour.
1091 WID_SCL_MATRIX
= ::WID_SCL_MATRIX
, ///< Matrix.
1095 * Widgets of the #SelectCompanyManagerFaceWindow class.
1096 * Do not change the order of the widgets from WID_SCMF_HAS_MOUSTACHE_EARRING to WID_SCMF_GLASSES_R,
1097 * this order is needed for the WE_CLICK event of DrawFaceStringLabel().
1099 enum SelectCompanyManagerFaceWidgets
{
1100 WID_SCMF_CAPTION
= ::WID_SCMF_CAPTION
, ///< Caption of window.
1101 WID_SCMF_TOGGLE_LARGE_SMALL
= ::WID_SCMF_TOGGLE_LARGE_SMALL
, ///< Toggle for large or small.
1102 WID_SCMF_SELECT_FACE
= ::WID_SCMF_SELECT_FACE
, ///< Select face.
1103 WID_SCMF_CANCEL
= ::WID_SCMF_CANCEL
, ///< Cancel.
1104 WID_SCMF_ACCEPT
= ::WID_SCMF_ACCEPT
, ///< Accept.
1105 WID_SCMF_MALE
= ::WID_SCMF_MALE
, ///< Male button in the simple view.
1106 WID_SCMF_FEMALE
= ::WID_SCMF_FEMALE
, ///< Female button in the simple view.
1107 WID_SCMF_MALE2
= ::WID_SCMF_MALE2
, ///< Male button in the advanced view.
1108 WID_SCMF_FEMALE2
= ::WID_SCMF_FEMALE2
, ///< Female button in the advanced view.
1109 WID_SCMF_SEL_LOADSAVE
= ::WID_SCMF_SEL_LOADSAVE
, ///< Selection to display the load/save/number buttons in the advanced view.
1110 WID_SCMF_SEL_MALEFEMALE
= ::WID_SCMF_SEL_MALEFEMALE
, ///< Selection to display the male/female buttons in the simple view.
1111 WID_SCMF_SEL_PARTS
= ::WID_SCMF_SEL_PARTS
, ///< Selection to display the buttons for setting each part of the face in the advanced view.
1112 WID_SCMF_RANDOM_NEW_FACE
= ::WID_SCMF_RANDOM_NEW_FACE
, ///< Create random new face.
1113 WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON
= ::WID_SCMF_TOGGLE_LARGE_SMALL_BUTTON
, ///< Toggle for large or small.
1114 WID_SCMF_FACE
= ::WID_SCMF_FACE
, ///< Current face.
1115 WID_SCMF_LOAD
= ::WID_SCMF_LOAD
, ///< Load face.
1116 WID_SCMF_FACECODE
= ::WID_SCMF_FACECODE
, ///< Get the face code.
1117 WID_SCMF_SAVE
= ::WID_SCMF_SAVE
, ///< Save face.
1118 WID_SCMF_HAS_MOUSTACHE_EARRING_TEXT
= ::WID_SCMF_HAS_MOUSTACHE_EARRING_TEXT
, ///< Text about moustache and earring.
1119 WID_SCMF_TIE_EARRING_TEXT
= ::WID_SCMF_TIE_EARRING_TEXT
, ///< Text about tie and earring.
1120 WID_SCMF_LIPS_MOUSTACHE_TEXT
= ::WID_SCMF_LIPS_MOUSTACHE_TEXT
, ///< Text about lips and moustache.
1121 WID_SCMF_HAS_GLASSES_TEXT
= ::WID_SCMF_HAS_GLASSES_TEXT
, ///< Text about glasses.
1122 WID_SCMF_HAIR_TEXT
= ::WID_SCMF_HAIR_TEXT
, ///< Text about hair.
1123 WID_SCMF_EYEBROWS_TEXT
= ::WID_SCMF_EYEBROWS_TEXT
, ///< Text about eyebrows.
1124 WID_SCMF_EYECOLOUR_TEXT
= ::WID_SCMF_EYECOLOUR_TEXT
, ///< Text about eyecolour.
1125 WID_SCMF_GLASSES_TEXT
= ::WID_SCMF_GLASSES_TEXT
, ///< Text about glasses.
1126 WID_SCMF_NOSE_TEXT
= ::WID_SCMF_NOSE_TEXT
, ///< Text about nose.
1127 WID_SCMF_CHIN_TEXT
= ::WID_SCMF_CHIN_TEXT
, ///< Text about chin.
1128 WID_SCMF_JACKET_TEXT
= ::WID_SCMF_JACKET_TEXT
, ///< Text about jacket.
1129 WID_SCMF_COLLAR_TEXT
= ::WID_SCMF_COLLAR_TEXT
, ///< Text about collar.
1130 WID_SCMF_ETHNICITY_EUR
= ::WID_SCMF_ETHNICITY_EUR
, ///< Text about ethnicity european.
1131 WID_SCMF_ETHNICITY_AFR
= ::WID_SCMF_ETHNICITY_AFR
, ///< Text about ethnicity african.
1132 WID_SCMF_HAS_MOUSTACHE_EARRING
= ::WID_SCMF_HAS_MOUSTACHE_EARRING
, ///< Has moustache or earring.
1133 WID_SCMF_HAS_GLASSES
= ::WID_SCMF_HAS_GLASSES
, ///< Has glasses.
1134 WID_SCMF_EYECOLOUR_L
= ::WID_SCMF_EYECOLOUR_L
, ///< Eyecolour left.
1135 WID_SCMF_EYECOLOUR
= ::WID_SCMF_EYECOLOUR
, ///< Eyecolour.
1136 WID_SCMF_EYECOLOUR_R
= ::WID_SCMF_EYECOLOUR_R
, ///< Eyecolour right.
1137 WID_SCMF_CHIN_L
= ::WID_SCMF_CHIN_L
, ///< Chin left.
1138 WID_SCMF_CHIN
= ::WID_SCMF_CHIN
, ///< Chin.
1139 WID_SCMF_CHIN_R
= ::WID_SCMF_CHIN_R
, ///< Chin right.
1140 WID_SCMF_EYEBROWS_L
= ::WID_SCMF_EYEBROWS_L
, ///< Eyebrows left.
1141 WID_SCMF_EYEBROWS
= ::WID_SCMF_EYEBROWS
, ///< Eyebrows.
1142 WID_SCMF_EYEBROWS_R
= ::WID_SCMF_EYEBROWS_R
, ///< Eyebrows right.
1143 WID_SCMF_LIPS_MOUSTACHE_L
= ::WID_SCMF_LIPS_MOUSTACHE_L
, ///< Lips / Moustache left.
1144 WID_SCMF_LIPS_MOUSTACHE
= ::WID_SCMF_LIPS_MOUSTACHE
, ///< Lips / Moustache.
1145 WID_SCMF_LIPS_MOUSTACHE_R
= ::WID_SCMF_LIPS_MOUSTACHE_R
, ///< Lips / Moustache right.
1146 WID_SCMF_NOSE_L
= ::WID_SCMF_NOSE_L
, ///< Nose left.
1147 WID_SCMF_NOSE
= ::WID_SCMF_NOSE
, ///< Nose.
1148 WID_SCMF_NOSE_R
= ::WID_SCMF_NOSE_R
, ///< Nose right.
1149 WID_SCMF_HAIR_L
= ::WID_SCMF_HAIR_L
, ///< Hair left.
1150 WID_SCMF_HAIR
= ::WID_SCMF_HAIR
, ///< Hair.
1151 WID_SCMF_HAIR_R
= ::WID_SCMF_HAIR_R
, ///< Hair right.
1152 WID_SCMF_JACKET_L
= ::WID_SCMF_JACKET_L
, ///< Jacket left.
1153 WID_SCMF_JACKET
= ::WID_SCMF_JACKET
, ///< Jacket.
1154 WID_SCMF_JACKET_R
= ::WID_SCMF_JACKET_R
, ///< Jacket right.
1155 WID_SCMF_COLLAR_L
= ::WID_SCMF_COLLAR_L
, ///< Collar left.
1156 WID_SCMF_COLLAR
= ::WID_SCMF_COLLAR
, ///< Collar.
1157 WID_SCMF_COLLAR_R
= ::WID_SCMF_COLLAR_R
, ///< Collar right.
1158 WID_SCMF_TIE_EARRING_L
= ::WID_SCMF_TIE_EARRING_L
, ///< Tie / Earring left.
1159 WID_SCMF_TIE_EARRING
= ::WID_SCMF_TIE_EARRING
, ///< Tie / Earring.
1160 WID_SCMF_TIE_EARRING_R
= ::WID_SCMF_TIE_EARRING_R
, ///< Tie / Earring right.
1161 WID_SCMF_GLASSES_L
= ::WID_SCMF_GLASSES_L
, ///< Glasses left.
1162 WID_SCMF_GLASSES
= ::WID_SCMF_GLASSES
, ///< Glasses.
1163 WID_SCMF_GLASSES_R
= ::WID_SCMF_GLASSES_R
, ///< Glasses right.
1166 /** Widgets of the #CompanyInfrastructureWindow class. */
1167 enum CompanyInfrastructureWidgets
{
1168 WID_CI_CAPTION
= ::WID_CI_CAPTION
, ///< Caption of window.
1169 WID_CI_RAIL_DESC
= ::WID_CI_RAIL_DESC
, ///< Description of rail.
1170 WID_CI_RAIL_COUNT
= ::WID_CI_RAIL_COUNT
, ///< Count of rail.
1171 WID_CI_ROAD_DESC
= ::WID_CI_ROAD_DESC
, ///< Description of road.
1172 WID_CI_ROAD_COUNT
= ::WID_CI_ROAD_COUNT
, ///< Count of road.
1173 WID_CI_WATER_DESC
= ::WID_CI_WATER_DESC
, ///< Description of water.
1174 WID_CI_WATER_COUNT
= ::WID_CI_WATER_COUNT
, ///< Count of water.
1175 WID_CI_STATION_DESC
= ::WID_CI_STATION_DESC
, ///< Description of station.
1176 WID_CI_STATION_COUNT
= ::WID_CI_STATION_COUNT
, ///< Count of station.
1177 WID_CI_TOTAL_DESC
= ::WID_CI_TOTAL_DESC
, ///< Description of total.
1178 WID_CI_TOTAL
= ::WID_CI_TOTAL
, ///< Count of total.
1181 /** Widgets of the #BuyCompanyWindow class. */
1182 enum BuyCompanyWidgets
{
1183 WID_BC_CAPTION
= ::WID_BC_CAPTION
, ///< Caption of window.
1184 WID_BC_FACE
= ::WID_BC_FACE
, ///< Face button.
1185 WID_BC_QUESTION
= ::WID_BC_QUESTION
, ///< Question text.
1186 WID_BC_NO
= ::WID_BC_NO
, ///< No button.
1187 WID_BC_YES
= ::WID_BC_YES
, ///< Yes button.
1190 /* automatically generated from ../../widgets/console_widget.h */
1191 /** Widgets of the #IConsoleWindow class. */
1192 enum ConsoleWidgets
{
1193 WID_C_BACKGROUND
= ::WID_C_BACKGROUND
, ///< Background of the console.
1196 /* automatically generated from ../../widgets/date_widget.h */
1197 /** Widgets of the #SetDateWindow class. */
1198 enum SetDateWidgets
{
1199 WID_SD_DAY
= ::WID_SD_DAY
, ///< Dropdown for the day.
1200 WID_SD_MONTH
= ::WID_SD_MONTH
, ///< Dropdown for the month.
1201 WID_SD_YEAR
= ::WID_SD_YEAR
, ///< Dropdown for the year.
1202 WID_SD_SET_DATE
= ::WID_SD_SET_DATE
, ///< Actually set the date.
1205 /* automatically generated from ../../widgets/depot_widget.h */
1206 /** Widgets of the #DepotWindow class. */
1208 WID_D_CAPTION
= ::WID_D_CAPTION
, ///< Caption of window.
1209 WID_D_SELL
= ::WID_D_SELL
, ///< Sell button.
1210 WID_D_SHOW_SELL_CHAIN
= ::WID_D_SHOW_SELL_CHAIN
, ///< Show sell chain panel.
1211 WID_D_SELL_CHAIN
= ::WID_D_SELL_CHAIN
, ///< Sell chain button.
1212 WID_D_SELL_ALL
= ::WID_D_SELL_ALL
, ///< Sell all button.
1213 WID_D_AUTOREPLACE
= ::WID_D_AUTOREPLACE
, ///< Autoreplace button.
1214 WID_D_MATRIX
= ::WID_D_MATRIX
, ///< Matrix of vehicles.
1215 WID_D_V_SCROLL
= ::WID_D_V_SCROLL
, ///< Vertical scrollbar.
1216 WID_D_SHOW_H_SCROLL
= ::WID_D_SHOW_H_SCROLL
, ///< Show horizontal scrollbar panel.
1217 WID_D_H_SCROLL
= ::WID_D_H_SCROLL
, ///< Horizontal scrollbar.
1218 WID_D_BUILD
= ::WID_D_BUILD
, ///< Build button.
1219 WID_D_CLONE
= ::WID_D_CLONE
, ///< Clone button.
1220 WID_D_LOCATION
= ::WID_D_LOCATION
, ///< Location button.
1221 WID_D_SHOW_RENAME
= ::WID_D_SHOW_RENAME
, ///< Show rename panel.
1222 WID_D_RENAME
= ::WID_D_RENAME
, ///< Rename button.
1223 WID_D_VEHICLE_LIST
= ::WID_D_VEHICLE_LIST
, ///< List of vehicles.
1224 WID_D_STOP_ALL
= ::WID_D_STOP_ALL
, ///< Stop all button.
1225 WID_D_START_ALL
= ::WID_D_START_ALL
, ///< Start all button.
1228 /* automatically generated from ../../widgets/dock_widget.h */
1229 /** Widgets of the #BuildDocksDepotWindow class. */
1230 enum BuildDockDepotWidgets
{
1231 WID_BDD_BACKGROUND
= ::WID_BDD_BACKGROUND
, ///< Background of the window.
1232 WID_BDD_X
= ::WID_BDD_X
, ///< X-direction button.
1233 WID_BDD_Y
= ::WID_BDD_Y
, ///< Y-direction button.
1236 /** Widgets of the #BuildDocksToolbarWindow class. */
1237 enum DockToolbarWidgets
{
1238 WID_DT_CANAL
= ::WID_DT_CANAL
, ///< Build canal button.
1239 WID_DT_LOCK
= ::WID_DT_LOCK
, ///< Build lock button.
1240 WID_DT_DEMOLISH
= ::WID_DT_DEMOLISH
, ///< Demolish aka dynamite button.
1241 WID_DT_DEPOT
= ::WID_DT_DEPOT
, ///< Build depot button.
1242 WID_DT_STATION
= ::WID_DT_STATION
, ///< Build station button.
1243 WID_DT_BUOY
= ::WID_DT_BUOY
, ///< Build buoy button.
1244 WID_DT_RIVER
= ::WID_DT_RIVER
, ///< Build river button (in scenario editor).
1245 WID_DT_BUILD_AQUEDUCT
= ::WID_DT_BUILD_AQUEDUCT
, ///< Build aqueduct button.
1247 WID_DT_INVALID
= ::WID_DT_INVALID
, ///< Used to initialize a variable.
1250 /* automatically generated from ../../widgets/dropdown_widget.h */
1251 /** Widgets of the #DropdownWindow class. */
1252 enum DropdownMenuWidgets
{
1253 WID_DM_ITEMS
= ::WID_DM_ITEMS
, ///< Panel showing the dropdown items.
1254 WID_DM_SHOW_SCROLL
= ::WID_DM_SHOW_SCROLL
, ///< Hide scrollbar if too few items.
1255 WID_DM_SCROLL
= ::WID_DM_SCROLL
, ///< Scrollbar.
1258 /* automatically generated from ../../widgets/engine_widget.h */
1259 /** Widgets of the #EnginePreviewWindow class. */
1260 enum EnginePreviewWidgets
{
1261 WID_EP_QUESTION
= ::WID_EP_QUESTION
, ///< The container for the question.
1262 WID_EP_NO
= ::WID_EP_NO
, ///< No button.
1263 WID_EP_YES
= ::WID_EP_YES
, ///< Yes button.
1266 /* automatically generated from ../../widgets/error_widget.h */
1267 /** Widgets of the #ErrmsgWindow class. */
1268 enum ErrorMessageWidgets
{
1269 WID_EM_CAPTION
= ::WID_EM_CAPTION
, ///< Caption of the window.
1270 WID_EM_FACE
= ::WID_EM_FACE
, ///< Error title.
1271 WID_EM_MESSAGE
= ::WID_EM_MESSAGE
, ///< Error message.
1274 /* automatically generated from ../../widgets/fios_widget.h */
1275 /** Widgets of the #SaveLoadWindow class. */
1276 enum SaveLoadWidgets
{
1277 WID_SL_CAPTION
= ::WID_SL_CAPTION
, ///< Caption of the window.
1278 WID_SL_SORT_BYNAME
= ::WID_SL_SORT_BYNAME
, ///< Sort by name button.
1279 WID_SL_SORT_BYDATE
= ::WID_SL_SORT_BYDATE
, ///< Sort by date button.
1280 WID_SL_BACKGROUND
= ::WID_SL_BACKGROUND
, ///< Background of window.
1281 WID_SL_FILE_BACKGROUND
= ::WID_SL_FILE_BACKGROUND
, ///< Background of file selection.
1282 WID_SL_HOME_BUTTON
= ::WID_SL_HOME_BUTTON
, ///< Home button.
1283 WID_SL_DRIVES_DIRECTORIES_LIST
= ::WID_SL_DRIVES_DIRECTORIES_LIST
, ///< Drives list.
1284 WID_SL_SCROLLBAR
= ::WID_SL_SCROLLBAR
, ///< Scrollbar of the file list.
1285 WID_SL_CONTENT_DOWNLOAD
= ::WID_SL_CONTENT_DOWNLOAD
, ///< Content download button, only available for play scenario/heightmap.
1286 WID_SL_SAVE_OSK_TITLE
= ::WID_SL_SAVE_OSK_TITLE
, ///< Title textbox, only available for save operations.
1287 WID_SL_DELETE_SELECTION
= ::WID_SL_DELETE_SELECTION
, ///< Delete button, only available for save operations.
1288 WID_SL_SAVE_GAME
= ::WID_SL_SAVE_GAME
, ///< Save button, only available for save operations.
1289 WID_SL_CONTENT_DOWNLOAD_SEL
= ::WID_SL_CONTENT_DOWNLOAD_SEL
, ///< Selection 'stack' to 'hide' the content download.
1290 WID_SL_DETAILS
= ::WID_SL_DETAILS
, ///< Panel with game details.
1291 WID_SL_NEWGRF_INFO
= ::WID_SL_NEWGRF_INFO
, ///< Button to open NewGgrf configuration.
1292 WID_SL_LOAD_BUTTON
= ::WID_SL_LOAD_BUTTON
, ///< Button to load game/scenario.
1293 WID_SL_MISSING_NEWGRFS
= ::WID_SL_MISSING_NEWGRFS
, ///< Button to find missing NewGRFs online.
1296 /* automatically generated from ../../widgets/genworld_widget.h */
1297 /** Widgets of the #GenerateLandscapeWindow class. */
1298 enum GenerateLandscapeWidgets
{
1299 WID_GL_TEMPERATE
= ::WID_GL_TEMPERATE
, ///< Button with icon "Temperate".
1300 WID_GL_ARCTIC
= ::WID_GL_ARCTIC
, ///< Button with icon "Arctic".
1301 WID_GL_TROPICAL
= ::WID_GL_TROPICAL
, ///< Button with icon "Tropical".
1302 WID_GL_TOYLAND
= ::WID_GL_TOYLAND
, ///< Button with icon "Toyland".
1304 WID_GL_MAPSIZE_X_PULLDOWN
= ::WID_GL_MAPSIZE_X_PULLDOWN
, ///< Dropdown 'map X size'.
1305 WID_GL_MAPSIZE_Y_PULLDOWN
= ::WID_GL_MAPSIZE_Y_PULLDOWN
, ///< Dropdown 'map Y size'.
1307 WID_GL_TOWN_PULLDOWN
= ::WID_GL_TOWN_PULLDOWN
, ///< Dropdown 'No. of towns'.
1308 WID_GL_INDUSTRY_PULLDOWN
= ::WID_GL_INDUSTRY_PULLDOWN
, ///< Dropdown 'No. of industries'.
1310 WID_GL_GENERATE_BUTTON
= ::WID_GL_GENERATE_BUTTON
, ///< 'Generate' button.
1312 WID_GL_MAX_HEIGHTLEVEL_DOWN
= ::WID_GL_MAX_HEIGHTLEVEL_DOWN
, ///< Decrease max. heightlevel
1313 WID_GL_MAX_HEIGHTLEVEL_TEXT
= ::WID_GL_MAX_HEIGHTLEVEL_TEXT
, ///< Max. heightlevel
1314 WID_GL_MAX_HEIGHTLEVEL_UP
= ::WID_GL_MAX_HEIGHTLEVEL_UP
, ///< Increase max. heightlevel
1316 WID_GL_START_DATE_DOWN
= ::WID_GL_START_DATE_DOWN
, ///< Decrease start year.
1317 WID_GL_START_DATE_TEXT
= ::WID_GL_START_DATE_TEXT
, ///< Start year.
1318 WID_GL_START_DATE_UP
= ::WID_GL_START_DATE_UP
, ///< Increase start year.
1320 WID_GL_SNOW_LEVEL_DOWN
= ::WID_GL_SNOW_LEVEL_DOWN
, ///< Decrease snow level.
1321 WID_GL_SNOW_LEVEL_TEXT
= ::WID_GL_SNOW_LEVEL_TEXT
, ///< Snow level.
1322 WID_GL_SNOW_LEVEL_UP
= ::WID_GL_SNOW_LEVEL_UP
, ///< Increase snow level.
1324 WID_GL_TREE_PULLDOWN
= ::WID_GL_TREE_PULLDOWN
, ///< Dropdown 'Tree algorithm'.
1325 WID_GL_LANDSCAPE_PULLDOWN
= ::WID_GL_LANDSCAPE_PULLDOWN
, ///< Dropdown 'Land generator'.
1327 WID_GL_HEIGHTMAP_NAME_TEXT
= ::WID_GL_HEIGHTMAP_NAME_TEXT
, ///< Heightmap name.
1328 WID_GL_HEIGHTMAP_SIZE_TEXT
= ::WID_GL_HEIGHTMAP_SIZE_TEXT
, ///< Size of heightmap.
1329 WID_GL_HEIGHTMAP_ROTATION_PULLDOWN
= ::WID_GL_HEIGHTMAP_ROTATION_PULLDOWN
, ///< Dropdown 'Heightmap rotation'.
1331 WID_GL_TERRAIN_PULLDOWN
= ::WID_GL_TERRAIN_PULLDOWN
, ///< Dropdown 'Terrain type'.
1332 WID_GL_WATER_PULLDOWN
= ::WID_GL_WATER_PULLDOWN
, ///< Dropdown 'Sea level'.
1333 WID_GL_RIVER_PULLDOWN
= ::WID_GL_RIVER_PULLDOWN
, ///< Dropdown 'Rivers'.
1334 WID_GL_SMOOTHNESS_PULLDOWN
= ::WID_GL_SMOOTHNESS_PULLDOWN
, ///< Dropdown 'Smoothness'.
1335 WID_GL_VARIETY_PULLDOWN
= ::WID_GL_VARIETY_PULLDOWN
, ///< Dropdown 'Variety distribution'.
1337 WID_GL_BORDERS_RANDOM
= ::WID_GL_BORDERS_RANDOM
, ///< 'Random'/'Manual' borders.
1338 WID_GL_WATER_NW
= ::WID_GL_WATER_NW
, ///< NW 'Water'/'Freeform'.
1339 WID_GL_WATER_NE
= ::WID_GL_WATER_NE
, ///< NE 'Water'/'Freeform'.
1340 WID_GL_WATER_SE
= ::WID_GL_WATER_SE
, ///< SE 'Water'/'Freeform'.
1341 WID_GL_WATER_SW
= ::WID_GL_WATER_SW
, ///< SW 'Water'/'Freeform'.
1344 /** Widgets of the #CreateScenarioWindow class. */
1345 enum CreateScenarioWidgets
{
1346 WID_CS_TEMPERATE
= ::WID_CS_TEMPERATE
, ///< Select temperate landscape style.
1347 WID_CS_ARCTIC
= ::WID_CS_ARCTIC
, ///< Select arctic landscape style.
1348 WID_CS_TROPICAL
= ::WID_CS_TROPICAL
, ///< Select tropical landscape style.
1349 WID_CS_TOYLAND
= ::WID_CS_TOYLAND
, ///< Select toy-land landscape style.
1350 WID_CS_EMPTY_WORLD
= ::WID_CS_EMPTY_WORLD
, ///< Generate an empty flat world.
1351 WID_CS_RANDOM_WORLD
= ::WID_CS_RANDOM_WORLD
, ///< Generate random land button
1352 WID_CS_MAPSIZE_X_PULLDOWN
= ::WID_CS_MAPSIZE_X_PULLDOWN
, ///< Pull-down arrow for x map size.
1353 WID_CS_MAPSIZE_Y_PULLDOWN
= ::WID_CS_MAPSIZE_Y_PULLDOWN
, ///< Pull-down arrow for y map size.
1354 WID_CS_START_DATE_DOWN
= ::WID_CS_START_DATE_DOWN
, ///< Decrease start year (start earlier).
1355 WID_CS_START_DATE_TEXT
= ::WID_CS_START_DATE_TEXT
, ///< Clickable start date value.
1356 WID_CS_START_DATE_UP
= ::WID_CS_START_DATE_UP
, ///< Increase start year (start later).
1357 WID_CS_FLAT_LAND_HEIGHT_DOWN
= ::WID_CS_FLAT_LAND_HEIGHT_DOWN
, ///< Decrease flat land height.
1358 WID_CS_FLAT_LAND_HEIGHT_TEXT
= ::WID_CS_FLAT_LAND_HEIGHT_TEXT
, ///< Clickable flat land height value.
1359 WID_CS_FLAT_LAND_HEIGHT_UP
= ::WID_CS_FLAT_LAND_HEIGHT_UP
, ///< Increase flat land height.
1362 /** Widgets of the #GenerateProgressWindow class. */
1363 enum GenerationProgressWidgets
{
1364 WID_GP_PROGRESS_BAR
= ::WID_GP_PROGRESS_BAR
, ///< Progress bar.
1365 WID_GP_PROGRESS_TEXT
= ::WID_GP_PROGRESS_TEXT
, ///< Text with the progress bar.
1366 WID_GP_ABORT
= ::WID_GP_ABORT
, ///< Abort button.
1369 /* automatically generated from ../../widgets/goal_widget.h */
1370 /** Widgets of the #GoalListWindow class. */
1371 enum GoalListWidgets
{
1372 WID_GOAL_CAPTION
= ::WID_GOAL_CAPTION
, ///< Caption of the window.
1373 WID_GOAL_LIST
= ::WID_GOAL_LIST
, ///< Goal list.
1374 WID_GOAL_SCROLLBAR
= ::WID_GOAL_SCROLLBAR
, ///< Scrollbar of the goal list.
1377 /** Widgets of the #GoalQuestionWindow class. */
1378 enum GoalQuestionWidgets
{
1379 WID_GQ_CAPTION
= ::WID_GQ_CAPTION
, ///< Caption of the window.
1380 WID_GQ_QUESTION
= ::WID_GQ_QUESTION
, ///< Question text.
1381 WID_GQ_BUTTONS
= ::WID_GQ_BUTTONS
, ///< Buttons selection (between 1, 2 or 3).
1382 WID_GQ_BUTTON_1
= ::WID_GQ_BUTTON_1
, ///< First button.
1383 WID_GQ_BUTTON_2
= ::WID_GQ_BUTTON_2
, ///< Second button.
1384 WID_GQ_BUTTON_3
= ::WID_GQ_BUTTON_3
, ///< Third button.
1387 /* automatically generated from ../../widgets/graph_widget.h */
1388 /** Widgets of the #GraphLegendWindow class. */
1389 enum GraphLegendWidgets
{
1390 WID_GL_BACKGROUND
= ::WID_GL_BACKGROUND
, ///< Background of the window.
1392 WID_GL_FIRST_COMPANY
= ::WID_GL_FIRST_COMPANY
, ///< First company in the legend.
1393 WID_GL_LAST_COMPANY
= ::WID_GL_LAST_COMPANY
, ///< Last company in the legend.
1396 /** Widgets of the #OperatingProfitGraphWindow class, #IncomeGraphWindow class, #DeliveredCargoGraphWindow class, and #CompanyValueGraphWindow class. */
1397 enum CompanyValueWidgets
{
1398 WID_CV_KEY_BUTTON
= ::WID_CV_KEY_BUTTON
, ///< Key button.
1399 WID_CV_BACKGROUND
= ::WID_CV_BACKGROUND
, ///< Background of the window.
1400 WID_CV_GRAPH
= ::WID_CV_GRAPH
, ///< Graph itself.
1401 WID_CV_RESIZE
= ::WID_CV_RESIZE
, ///< Resize button.
1404 /** Widget of the #PerformanceHistoryGraphWindow class. */
1405 enum PerformanceHistoryGraphWidgets
{
1406 WID_PHG_KEY
= ::WID_PHG_KEY
, ///< Key button.
1407 WID_PHG_DETAILED_PERFORMANCE
= ::WID_PHG_DETAILED_PERFORMANCE
, ///< Detailed performance.
1408 WID_PHG_BACKGROUND
= ::WID_PHG_BACKGROUND
, ///< Background of the window.
1409 WID_PHG_GRAPH
= ::WID_PHG_GRAPH
, ///< Graph itself.
1410 WID_PHG_RESIZE
= ::WID_PHG_RESIZE
, ///< Resize button.
1413 /** Widget of the #PaymentRatesGraphWindow class. */
1414 enum CargoPaymentRatesWidgets
{
1415 WID_CPR_BACKGROUND
= ::WID_CPR_BACKGROUND
, ///< Background of the window.
1416 WID_CPR_HEADER
= ::WID_CPR_HEADER
, ///< Header.
1417 WID_CPR_GRAPH
= ::WID_CPR_GRAPH
, ///< Graph itself.
1418 WID_CPR_RESIZE
= ::WID_CPR_RESIZE
, ///< Resize button.
1419 WID_CPR_FOOTER
= ::WID_CPR_FOOTER
, ///< Footer.
1420 WID_CPR_ENABLE_CARGOES
= ::WID_CPR_ENABLE_CARGOES
, ///< Enable cargoes button.
1421 WID_CPR_DISABLE_CARGOES
= ::WID_CPR_DISABLE_CARGOES
, ///< Disable cargoes button.
1422 WID_CPR_CARGO_FIRST
= ::WID_CPR_CARGO_FIRST
, ///< First cargo in the list.
1425 /** Widget of the #CompanyLeagueWindow class. */
1426 enum CompanyLeagueWidgets
{
1427 WID_CL_BACKGROUND
= ::WID_CL_BACKGROUND
, ///< Background of the window.
1430 /** Widget of the #PerformanceRatingDetailWindow class. */
1431 enum PerformanceRatingDetailsWidgets
{
1432 WID_PRD_SCORE_FIRST
= ::WID_PRD_SCORE_FIRST
, ///< First entry in the score list.
1433 WID_PRD_SCORE_LAST
= ::WID_PRD_SCORE_LAST
, ///< Last entry in the score list.
1435 WID_PRD_COMPANY_FIRST
= ::WID_PRD_COMPANY_FIRST
, ///< First company.
1436 WID_PRD_COMPANY_LAST
= ::WID_PRD_COMPANY_LAST
, ///< Last company.
1439 /* automatically generated from ../../widgets/group_widget.h */
1440 /** Widgets of the #VehicleGroupWindow class. */
1441 enum GroupListWidgets
{
1442 WID_GL_CAPTION
= ::WID_GL_CAPTION
, ///< Caption of the window.
1443 WID_GL_SORT_BY_ORDER
= ::WID_GL_SORT_BY_ORDER
, ///< Sort order.
1444 WID_GL_SORT_BY_DROPDOWN
= ::WID_GL_SORT_BY_DROPDOWN
, ///< Sort by dropdown list.
1445 WID_GL_LIST_VEHICLE
= ::WID_GL_LIST_VEHICLE
, ///< List of the vehicles.
1446 WID_GL_LIST_VEHICLE_SCROLLBAR
= ::WID_GL_LIST_VEHICLE_SCROLLBAR
, ///< Scrollbar for the list.
1447 WID_GL_AVAILABLE_VEHICLES
= ::WID_GL_AVAILABLE_VEHICLES
, ///< Available vehicles.
1448 WID_GL_MANAGE_VEHICLES_DROPDOWN
= ::WID_GL_MANAGE_VEHICLES_DROPDOWN
, ///< Manage vehicles dropdown list.
1449 WID_GL_STOP_ALL
= ::WID_GL_STOP_ALL
, ///< Stop all button.
1450 WID_GL_START_ALL
= ::WID_GL_START_ALL
, ///< Start all button.
1452 WID_GL_ALL_VEHICLES
= ::WID_GL_ALL_VEHICLES
, ///< All vehicles entry.
1453 WID_GL_DEFAULT_VEHICLES
= ::WID_GL_DEFAULT_VEHICLES
, ///< Default vehicles entry.
1454 WID_GL_LIST_GROUP
= ::WID_GL_LIST_GROUP
, ///< List of the groups.
1455 WID_GL_LIST_GROUP_SCROLLBAR
= ::WID_GL_LIST_GROUP_SCROLLBAR
, ///< Scrollbar for the list.
1456 WID_GL_CREATE_GROUP
= ::WID_GL_CREATE_GROUP
, ///< Create group button.
1457 WID_GL_DELETE_GROUP
= ::WID_GL_DELETE_GROUP
, ///< Delete group button.
1458 WID_GL_RENAME_GROUP
= ::WID_GL_RENAME_GROUP
, ///< Rename group button.
1459 WID_GL_REPLACE_PROTECTION
= ::WID_GL_REPLACE_PROTECTION
, ///< Replace protection button.
1462 /* automatically generated from ../../widgets/highscore_widget.h */
1463 /** Widgets of the #EndGameHighScoreBaseWindow class and #HighScoreWindow class. */
1464 enum HighscoreWidgets
{
1465 WID_H_BACKGROUND
= ::WID_H_BACKGROUND
, ///< Background of the window.
1468 /* automatically generated from ../../widgets/industry_widget.h */
1469 /** Widgets of the #BuildIndustryWindow class. */
1470 enum DynamicPlaceIndustriesWidgets
{
1471 WID_DPI_MATRIX_WIDGET
= ::WID_DPI_MATRIX_WIDGET
, ///< Matrix of the industries.
1472 WID_DPI_SCROLLBAR
= ::WID_DPI_SCROLLBAR
, ///< Scrollbar of the matrix.
1473 WID_DPI_INFOPANEL
= ::WID_DPI_INFOPANEL
, ///< Info panel about the industry.
1474 WID_DPI_DISPLAY_WIDGET
= ::WID_DPI_DISPLAY_WIDGET
, ///< Display chain button.
1475 WID_DPI_FUND_WIDGET
= ::WID_DPI_FUND_WIDGET
, ///< Fund button.
1478 /** Widgets of the #IndustryViewWindow class. */
1479 enum IndustryViewWidgets
{
1480 WID_IV_CAPTION
= ::WID_IV_CAPTION
, ///< Caption of the window.
1481 WID_IV_VIEWPORT
= ::WID_IV_VIEWPORT
, ///< Viewport of the industry.
1482 WID_IV_INFO
= ::WID_IV_INFO
, ///< Info of the industry.
1483 WID_IV_GOTO
= ::WID_IV_GOTO
, ///< Goto button.
1484 WID_IV_DISPLAY
= ::WID_IV_DISPLAY
, ///< Display chain button.
1487 /** Widgets of the #IndustryDirectoryWindow class. */
1488 enum IndustryDirectoryWidgets
{
1489 WID_ID_DROPDOWN_ORDER
= ::WID_ID_DROPDOWN_ORDER
, ///< Dropdown for the order of the sort.
1490 WID_ID_DROPDOWN_CRITERIA
= ::WID_ID_DROPDOWN_CRITERIA
, ///< Dropdown for the criteria of the sort.
1491 WID_ID_INDUSTRY_LIST
= ::WID_ID_INDUSTRY_LIST
, ///< Industry list.
1492 WID_ID_SCROLLBAR
= ::WID_ID_SCROLLBAR
, ///< Scrollbar of the list.
1495 /** Widgets of the #IndustryCargoesWindow class */
1496 enum IndustryCargoesWidgets
{
1497 WID_IC_CAPTION
= ::WID_IC_CAPTION
, ///< Caption of the window.
1498 WID_IC_NOTIFY
= ::WID_IC_NOTIFY
, ///< Row of buttons at the bottom.
1499 WID_IC_PANEL
= ::WID_IC_PANEL
, ///< Panel that shows the chain.
1500 WID_IC_SCROLLBAR
= ::WID_IC_SCROLLBAR
, ///< Scrollbar of the panel.
1501 WID_IC_CARGO_DROPDOWN
= ::WID_IC_CARGO_DROPDOWN
, ///< Select cargo dropdown.
1502 WID_IC_IND_DROPDOWN
= ::WID_IC_IND_DROPDOWN
, ///< Select industry dropdown.
1505 /* automatically generated from ../../widgets/intro_widget.h */
1506 /** Widgets of the #SelectGameWindow class. */
1507 enum SelectGameIntroWidgets
{
1508 WID_SGI_GENERATE_GAME
= ::WID_SGI_GENERATE_GAME
, ///< Generate game button.
1509 WID_SGI_LOAD_GAME
= ::WID_SGI_LOAD_GAME
, ///< Load game button.
1510 WID_SGI_PLAY_SCENARIO
= ::WID_SGI_PLAY_SCENARIO
, ///< Play scenario button.
1511 WID_SGI_PLAY_HEIGHTMAP
= ::WID_SGI_PLAY_HEIGHTMAP
, ///< Play heightmap button.
1512 WID_SGI_EDIT_SCENARIO
= ::WID_SGI_EDIT_SCENARIO
, ///< Edit scenario button.
1513 WID_SGI_PLAY_NETWORK
= ::WID_SGI_PLAY_NETWORK
, ///< Play network button.
1514 WID_SGI_TEMPERATE_LANDSCAPE
= ::WID_SGI_TEMPERATE_LANDSCAPE
, ///< Select temperate landscape button.
1515 WID_SGI_ARCTIC_LANDSCAPE
= ::WID_SGI_ARCTIC_LANDSCAPE
, ///< Select arctic landscape button.
1516 WID_SGI_TROPIC_LANDSCAPE
= ::WID_SGI_TROPIC_LANDSCAPE
, ///< Select tropic landscape button.
1517 WID_SGI_TOYLAND_LANDSCAPE
= ::WID_SGI_TOYLAND_LANDSCAPE
, ///< Select toyland landscape button.
1518 WID_SGI_BASESET_SELECTION
= ::WID_SGI_BASESET_SELECTION
, ///< Baseset selection.
1519 WID_SGI_BASESET
= ::WID_SGI_BASESET
, ///< Baseset errors.
1520 WID_SGI_TRANSLATION_SELECTION
= ::WID_SGI_TRANSLATION_SELECTION
, ///< Translation selection.
1521 WID_SGI_TRANSLATION
= ::WID_SGI_TRANSLATION
, ///< Translation errors.
1522 WID_SGI_OPTIONS
= ::WID_SGI_OPTIONS
, ///< Options button.
1523 WID_SGI_HIGHSCORE
= ::WID_SGI_HIGHSCORE
, ///< Highscore button.
1524 WID_SGI_SETTINGS_OPTIONS
= ::WID_SGI_SETTINGS_OPTIONS
, ///< Settings button.
1525 WID_SGI_GRF_SETTINGS
= ::WID_SGI_GRF_SETTINGS
, ///< NewGRF button.
1526 WID_SGI_CONTENT_DOWNLOAD
= ::WID_SGI_CONTENT_DOWNLOAD
, ///< Content Download button.
1527 WID_SGI_AI_SETTINGS
= ::WID_SGI_AI_SETTINGS
, ///< AI button.
1528 WID_SGI_EXIT
= ::WID_SGI_EXIT
, ///< Exit button.
1531 /* automatically generated from ../../widgets/link_graph_legend_widget.h */
1532 /** Widgets of the WC_LINKGRAPH_LEGEND. */
1533 enum LinkGraphLegendWidgets
{
1534 WID_LGL_CAPTION
= ::WID_LGL_CAPTION
, ///< Caption widget.
1535 WID_LGL_SATURATION
= ::WID_LGL_SATURATION
, ///< Saturation legend.
1536 WID_LGL_SATURATION_FIRST
= ::WID_LGL_SATURATION_FIRST
,
1537 WID_LGL_SATURATION_LAST
= ::WID_LGL_SATURATION_LAST
,
1538 WID_LGL_COMPANIES
= ::WID_LGL_COMPANIES
, ///< Company selection widget.
1539 WID_LGL_COMPANY_FIRST
= ::WID_LGL_COMPANY_FIRST
,
1540 WID_LGL_COMPANY_LAST
= ::WID_LGL_COMPANY_LAST
,
1541 WID_LGL_COMPANIES_ALL
= ::WID_LGL_COMPANIES_ALL
,
1542 WID_LGL_COMPANIES_NONE
= ::WID_LGL_COMPANIES_NONE
,
1543 WID_LGL_CARGOES
= ::WID_LGL_CARGOES
, ///< Cargo selection widget.
1544 WID_LGL_CARGO_FIRST
= ::WID_LGL_CARGO_FIRST
,
1545 WID_LGL_CARGO_LAST
= ::WID_LGL_CARGO_LAST
,
1546 WID_LGL_CARGOES_ALL
= ::WID_LGL_CARGOES_ALL
,
1547 WID_LGL_CARGOES_NONE
= ::WID_LGL_CARGOES_NONE
,
1550 /* automatically generated from ../../widgets/main_widget.h */
1551 /** Widgets of the #MainWindow class. */
1553 WID_M_VIEWPORT
= ::WID_M_VIEWPORT
, ///< Main window viewport.
1556 /* automatically generated from ../../widgets/misc_widget.h */
1557 /** Widgets of the #LandInfoWindow class. */
1558 enum LandInfoWidgets
{
1559 WID_LI_BACKGROUND
= ::WID_LI_BACKGROUND
, ///< Background of the window.
1562 /** Widgets of the #TooltipsWindow class. */
1563 enum ToolTipsWidgets
{
1564 WID_TT_BACKGROUND
= ::WID_TT_BACKGROUND
, ///< Background of the window.
1567 /** Widgets of the #AboutWindow class. */
1569 WID_A_SCROLLING_TEXT
= ::WID_A_SCROLLING_TEXT
, ///< The actually scrolling text.
1570 WID_A_WEBSITE
= ::WID_A_WEBSITE
, ///< URL of OpenTTD website.
1573 /** Widgets of the #QueryStringWindow class. */
1574 enum QueryStringWidgets
{
1575 WID_QS_CAPTION
= ::WID_QS_CAPTION
, ///< Caption of the window.
1576 WID_QS_TEXT
= ::WID_QS_TEXT
, ///< Text of the query.
1577 WID_QS_DEFAULT
= ::WID_QS_DEFAULT
, ///< Default button.
1578 WID_QS_CANCEL
= ::WID_QS_CANCEL
, ///< Cancel button.
1579 WID_QS_OK
= ::WID_QS_OK
, ///< OK button.
1582 /** Widgets of the #QueryWindow class. */
1584 WID_Q_CAPTION
= ::WID_Q_CAPTION
, ///< Caption of the window.
1585 WID_Q_TEXT
= ::WID_Q_TEXT
, ///< Text of the query.
1586 WID_Q_NO
= ::WID_Q_NO
, ///< Yes button.
1587 WID_Q_YES
= ::WID_Q_YES
, ///< No button.
1590 /** Widgets of the #TextfileWindow class. */
1591 enum TextfileWidgets
{
1592 WID_TF_CAPTION
= ::WID_TF_CAPTION
, ///< The caption of the window.
1593 WID_TF_WRAPTEXT
= ::WID_TF_WRAPTEXT
, ///< Whether or not to wrap the text.
1594 WID_TF_BACKGROUND
= ::WID_TF_BACKGROUND
, ///< Panel to draw the textfile on.
1595 WID_TF_VSCROLLBAR
= ::WID_TF_VSCROLLBAR
, ///< Vertical scrollbar to scroll through the textfile up-and-down.
1596 WID_TF_HSCROLLBAR
= ::WID_TF_HSCROLLBAR
, ///< Horizontal scrollbar to scroll through the textfile left-to-right.
1599 /* automatically generated from ../../widgets/music_widget.h */
1600 /** Widgets of the #MusicTrackSelectionWindow class. */
1601 enum MusicTrackSelectionWidgets
{
1602 WID_MTS_LIST_LEFT
= ::WID_MTS_LIST_LEFT
, ///< Left button.
1603 WID_MTS_PLAYLIST
= ::WID_MTS_PLAYLIST
, ///< Playlist.
1604 WID_MTS_LIST_RIGHT
= ::WID_MTS_LIST_RIGHT
, ///< Right button.
1605 WID_MTS_ALL
= ::WID_MTS_ALL
, ///< All button.
1606 WID_MTS_OLD
= ::WID_MTS_OLD
, ///< Old button.
1607 WID_MTS_NEW
= ::WID_MTS_NEW
, ///< New button.
1608 WID_MTS_EZY
= ::WID_MTS_EZY
, ///< Ezy button.
1609 WID_MTS_CUSTOM1
= ::WID_MTS_CUSTOM1
, ///< Custom1 button.
1610 WID_MTS_CUSTOM2
= ::WID_MTS_CUSTOM2
, ///< Custom2 button.
1611 WID_MTS_CLEAR
= ::WID_MTS_CLEAR
, ///< Clear button.
1614 /** Widgets of the #MusicWindow class. */
1616 WID_M_PREV
= ::WID_M_PREV
, ///< Previous button.
1617 WID_M_NEXT
= ::WID_M_NEXT
, ///< Next button.
1618 WID_M_STOP
= ::WID_M_STOP
, ///< Stop button.
1619 WID_M_PLAY
= ::WID_M_PLAY
, ///< Play button.
1620 WID_M_SLIDERS
= ::WID_M_SLIDERS
, ///< Sliders.
1621 WID_M_MUSIC_VOL
= ::WID_M_MUSIC_VOL
, ///< Music volume.
1622 WID_M_EFFECT_VOL
= ::WID_M_EFFECT_VOL
, ///< Effect volume.
1623 WID_M_BACKGROUND
= ::WID_M_BACKGROUND
, ///< Background of the window.
1624 WID_M_TRACK
= ::WID_M_TRACK
, ///< Track playing.
1625 WID_M_TRACK_NR
= ::WID_M_TRACK_NR
, ///< Track number.
1626 WID_M_TRACK_TITLE
= ::WID_M_TRACK_TITLE
, ///< Track title.
1627 WID_M_TRACK_NAME
= ::WID_M_TRACK_NAME
, ///< Track name.
1628 WID_M_SHUFFLE
= ::WID_M_SHUFFLE
, ///< Shuffle button.
1629 WID_M_PROGRAMME
= ::WID_M_PROGRAMME
, ///< Program button.
1630 WID_M_ALL
= ::WID_M_ALL
, ///< All button.
1631 WID_M_OLD
= ::WID_M_OLD
, ///< Old button.
1632 WID_M_NEW
= ::WID_M_NEW
, ///< New button.
1633 WID_M_EZY
= ::WID_M_EZY
, ///< Ezy button.
1634 WID_M_CUSTOM1
= ::WID_M_CUSTOM1
, ///< Custom1 button.
1635 WID_M_CUSTOM2
= ::WID_M_CUSTOM2
, ///< Custom2 button.
1638 /* automatically generated from ../../widgets/network_chat_widget.h */
1639 /** Widgets of the #NetworkChatWindow class. */
1640 enum NetWorkChatWidgets
{
1641 WID_NC_CLOSE
= ::WID_NC_CLOSE
, ///< Close button.
1642 WID_NC_BACKGROUND
= ::WID_NC_BACKGROUND
, ///< Background of the window.
1643 WID_NC_DESTINATION
= ::WID_NC_DESTINATION
, ///< Destination.
1644 WID_NC_TEXTBOX
= ::WID_NC_TEXTBOX
, ///< Textbox.
1645 WID_NC_SENDBUTTON
= ::WID_NC_SENDBUTTON
, ///< Send button.
1648 /* automatically generated from ../../widgets/network_content_widget.h */
1649 /** Widgets of the #NetworkContentDownloadStatusWindow class. */
1650 enum NetworkContentDownloadStatusWidgets
{
1651 WID_NCDS_BACKGROUND
= ::WID_NCDS_BACKGROUND
, ///< Background of the window.
1652 WID_NCDS_CANCELOK
= ::WID_NCDS_CANCELOK
, ///< (Optional) Cancel/OK button.
1655 /** Widgets of the #NetworkContentListWindow class. */
1656 enum NetworkContentListWidgets
{
1657 WID_NCL_BACKGROUND
= ::WID_NCL_BACKGROUND
, ///< Resize button.
1659 WID_NCL_FILTER_CAPT
= ::WID_NCL_FILTER_CAPT
, ///< Caption for the filter editbox.
1660 WID_NCL_FILTER
= ::WID_NCL_FILTER
, ///< Filter editbox.
1662 WID_NCL_CHECKBOX
= ::WID_NCL_CHECKBOX
, ///< Button above checkboxes.
1663 WID_NCL_TYPE
= ::WID_NCL_TYPE
, ///< 'Type' button.
1664 WID_NCL_NAME
= ::WID_NCL_NAME
, ///< 'Name' button.
1666 WID_NCL_MATRIX
= ::WID_NCL_MATRIX
, ///< Panel with list of content.
1667 WID_NCL_SCROLLBAR
= ::WID_NCL_SCROLLBAR
, ///< Scrollbar of matrix.
1669 WID_NCL_DETAILS
= ::WID_NCL_DETAILS
, ///< Panel with content details.
1670 WID_NCL_TEXTFILE
= ::WID_NCL_TEXTFILE
, ///< Open readme, changelog (+1) or license (+2) of a file in the content window.
1672 WID_NCL_SELECT_ALL
= ::WID_NCL_SELECT_ALL
, ///< 'Select all' button.
1673 WID_NCL_SELECT_UPDATE
= ::WID_NCL_SELECT_UPDATE
, ///< 'Select updates' button.
1674 WID_NCL_UNSELECT
= ::WID_NCL_UNSELECT
, ///< 'Unselect all' button.
1675 WID_NCL_OPEN_URL
= ::WID_NCL_OPEN_URL
, ///< 'Open url' button.
1676 WID_NCL_CANCEL
= ::WID_NCL_CANCEL
, ///< 'Cancel' button.
1677 WID_NCL_DOWNLOAD
= ::WID_NCL_DOWNLOAD
, ///< 'Download' button.
1679 WID_NCL_SEL_ALL_UPDATE
= ::WID_NCL_SEL_ALL_UPDATE
, ///< #NWID_SELECTION widget for select all/update buttons..
1680 WID_NCL_SEARCH_EXTERNAL
= ::WID_NCL_SEARCH_EXTERNAL
, ///< Search external sites for missing NewGRF.
1683 /* automatically generated from ../../widgets/network_widget.h */
1684 /** Widgets of the #NetworkGameWindow class. */
1685 enum NetworkGameWidgets
{
1686 WID_NG_MAIN
= ::WID_NG_MAIN
, ///< Main panel.
1688 WID_NG_CONNECTION
= ::WID_NG_CONNECTION
, ///< Label in front of connection droplist.
1689 WID_NG_CONN_BTN
= ::WID_NG_CONN_BTN
, ///< 'Connection' droplist button.
1690 WID_NG_CLIENT_LABEL
= ::WID_NG_CLIENT_LABEL
, ///< Label in front of client name edit box.
1691 WID_NG_CLIENT
= ::WID_NG_CLIENT
, ///< Panel with editbox to set client name.
1692 WID_NG_FILTER_LABEL
= ::WID_NG_FILTER_LABEL
, ///< Label in front of the filter/search edit box.
1693 WID_NG_FILTER
= ::WID_NG_FILTER
, ///< Panel with the edit box to enter the search text.
1695 WID_NG_HEADER
= ::WID_NG_HEADER
, ///< Header container of the matrix.
1696 WID_NG_NAME
= ::WID_NG_NAME
, ///< 'Name' button.
1697 WID_NG_CLIENTS
= ::WID_NG_CLIENTS
, ///< 'Clients' button.
1698 WID_NG_MAPSIZE
= ::WID_NG_MAPSIZE
, ///< 'Map size' button.
1699 WID_NG_DATE
= ::WID_NG_DATE
, ///< 'Date' button.
1700 WID_NG_YEARS
= ::WID_NG_YEARS
, ///< 'Years' button.
1701 WID_NG_INFO
= ::WID_NG_INFO
, ///< Third button in the game list panel.
1703 WID_NG_MATRIX
= ::WID_NG_MATRIX
, ///< Panel with list of games.
1704 WID_NG_SCROLLBAR
= ::WID_NG_SCROLLBAR
, ///< Scrollbar of matrix.
1706 WID_NG_LASTJOINED_LABEL
= ::WID_NG_LASTJOINED_LABEL
, ///< Label "Last joined server:".
1707 WID_NG_LASTJOINED
= ::WID_NG_LASTJOINED
, ///< Info about the last joined server.
1708 WID_NG_LASTJOINED_SPACER
= ::WID_NG_LASTJOINED_SPACER
, ///< Spacer after last joined server panel.
1710 WID_NG_DETAILS
= ::WID_NG_DETAILS
, ///< Panel with game details.
1711 WID_NG_DETAILS_SPACER
= ::WID_NG_DETAILS_SPACER
, ///< Spacer for game actual details.
1712 WID_NG_JOIN
= ::WID_NG_JOIN
, ///< 'Join game' button.
1713 WID_NG_REFRESH
= ::WID_NG_REFRESH
, ///< 'Refresh server' button.
1714 WID_NG_NEWGRF
= ::WID_NG_NEWGRF
, ///< 'NewGRF Settings' button.
1715 WID_NG_NEWGRF_SEL
= ::WID_NG_NEWGRF_SEL
, ///< Selection 'widget' to hide the NewGRF settings.
1716 WID_NG_NEWGRF_MISSING
= ::WID_NG_NEWGRF_MISSING
, ///< 'Find missing NewGRF online' button.
1717 WID_NG_NEWGRF_MISSING_SEL
= ::WID_NG_NEWGRF_MISSING_SEL
, ///< Selection widget for the above button.
1719 WID_NG_FIND
= ::WID_NG_FIND
, ///< 'Find server' button.
1720 WID_NG_ADD
= ::WID_NG_ADD
, ///< 'Add server' button.
1721 WID_NG_START
= ::WID_NG_START
, ///< 'Start server' button.
1722 WID_NG_CANCEL
= ::WID_NG_CANCEL
, ///< 'Cancel' button.
1725 /** Widgets of the #NetworkStartServerWindow class. */
1726 enum NetworkStartServerWidgets
{
1727 WID_NSS_BACKGROUND
= ::WID_NSS_BACKGROUND
, ///< Background of the window.
1728 WID_NSS_GAMENAME_LABEL
= ::WID_NSS_GAMENAME_LABEL
, ///< Label for the game name.
1729 WID_NSS_GAMENAME
= ::WID_NSS_GAMENAME
, ///< Background for editbox to set game name.
1730 WID_NSS_SETPWD
= ::WID_NSS_SETPWD
, ///< 'Set password' button.
1731 WID_NSS_CONNTYPE_LABEL
= ::WID_NSS_CONNTYPE_LABEL
, ///< Label for 'connection type'.
1732 WID_NSS_CONNTYPE_BTN
= ::WID_NSS_CONNTYPE_BTN
, ///< 'Connection type' droplist button.
1733 WID_NSS_CLIENTS_LABEL
= ::WID_NSS_CLIENTS_LABEL
, ///< Label for 'max clients'.
1734 WID_NSS_CLIENTS_BTND
= ::WID_NSS_CLIENTS_BTND
, ///< 'Max clients' downarrow.
1735 WID_NSS_CLIENTS_TXT
= ::WID_NSS_CLIENTS_TXT
, ///< 'Max clients' text.
1736 WID_NSS_CLIENTS_BTNU
= ::WID_NSS_CLIENTS_BTNU
, ///< 'Max clients' uparrow.
1737 WID_NSS_COMPANIES_LABEL
= ::WID_NSS_COMPANIES_LABEL
, ///< Label for 'max companies'.
1738 WID_NSS_COMPANIES_BTND
= ::WID_NSS_COMPANIES_BTND
, ///< 'Max companies' downarrow.
1739 WID_NSS_COMPANIES_TXT
= ::WID_NSS_COMPANIES_TXT
, ///< 'Max companies' text.
1740 WID_NSS_COMPANIES_BTNU
= ::WID_NSS_COMPANIES_BTNU
, ///< 'Max companies' uparrow.
1741 WID_NSS_SPECTATORS_LABEL
= ::WID_NSS_SPECTATORS_LABEL
, ///< Label for 'max spectators'.
1742 WID_NSS_SPECTATORS_BTND
= ::WID_NSS_SPECTATORS_BTND
, ///< 'Max spectators' downarrow.
1743 WID_NSS_SPECTATORS_TXT
= ::WID_NSS_SPECTATORS_TXT
, ///< 'Max spectators' text.
1744 WID_NSS_SPECTATORS_BTNU
= ::WID_NSS_SPECTATORS_BTNU
, ///< 'Max spectators' uparrow.
1746 WID_NSS_LANGUAGE_LABEL
= ::WID_NSS_LANGUAGE_LABEL
, ///< Label for 'language spoken'.
1747 WID_NSS_LANGUAGE_BTN
= ::WID_NSS_LANGUAGE_BTN
, ///< 'Language spoken' droplist button.
1749 WID_NSS_GENERATE_GAME
= ::WID_NSS_GENERATE_GAME
, ///< New game button.
1750 WID_NSS_LOAD_GAME
= ::WID_NSS_LOAD_GAME
, ///< Load game button.
1751 WID_NSS_PLAY_SCENARIO
= ::WID_NSS_PLAY_SCENARIO
, ///< Play scenario button.
1752 WID_NSS_PLAY_HEIGHTMAP
= ::WID_NSS_PLAY_HEIGHTMAP
, ///< Play heightmap button.
1754 WID_NSS_CANCEL
= ::WID_NSS_CANCEL
, ///< 'Cancel' button.
1757 /** Widgets of the #NetworkLobbyWindow class. */
1758 enum NetworkLobbyWidgets
{
1759 WID_NL_BACKGROUND
= ::WID_NL_BACKGROUND
, ///< Background of the window.
1760 WID_NL_TEXT
= ::WID_NL_TEXT
, ///< Heading text.
1761 WID_NL_HEADER
= ::WID_NL_HEADER
, ///< Header above list of companies.
1762 WID_NL_MATRIX
= ::WID_NL_MATRIX
, ///< List of companies.
1763 WID_NL_SCROLLBAR
= ::WID_NL_SCROLLBAR
, ///< Scroll bar.
1764 WID_NL_DETAILS
= ::WID_NL_DETAILS
, ///< Company details.
1765 WID_NL_JOIN
= ::WID_NL_JOIN
, ///< 'Join company' button.
1766 WID_NL_NEW
= ::WID_NL_NEW
, ///< 'New company' button.
1767 WID_NL_SPECTATE
= ::WID_NL_SPECTATE
, ///< 'Spectate game' button.
1768 WID_NL_REFRESH
= ::WID_NL_REFRESH
, ///< 'Refresh server' button.
1769 WID_NL_CANCEL
= ::WID_NL_CANCEL
, ///< 'Cancel' button.
1772 /** Widgets of the #NetworkClientListWindow class. */
1773 enum ClientListWidgets
{
1774 WID_CL_PANEL
= ::WID_CL_PANEL
, ///< Panel of the window.
1777 /** Widgets of the #NetworkClientListPopupWindow class. */
1778 enum ClientListPopupWidgets
{
1779 WID_CLP_PANEL
= ::WID_CLP_PANEL
, ///< Panel of the window.
1782 /** Widgets of the #NetworkJoinStatusWindow class. */
1783 enum NetworkJoinStatusWidgets
{
1784 WID_NJS_BACKGROUND
= ::WID_NJS_BACKGROUND
, ///< Background of the window.
1785 WID_NJS_CANCELOK
= ::WID_NJS_CANCELOK
, ///< Cancel / OK button.
1788 /** Widgets of the #NetworkCompanyPasswordWindow class. */
1789 enum NetworkCompanyPasswordWidgets
{
1790 WID_NCP_BACKGROUND
= ::WID_NCP_BACKGROUND
, ///< Background of the window.
1791 WID_NCP_LABEL
= ::WID_NCP_LABEL
, ///< Label in front of the password field.
1792 WID_NCP_PASSWORD
= ::WID_NCP_PASSWORD
, ///< Input field for the password.
1793 WID_NCP_SAVE_AS_DEFAULT_PASSWORD
= ::WID_NCP_SAVE_AS_DEFAULT_PASSWORD
, ///< Toggle 'button' for saving the current password as default password.
1794 WID_NCP_CANCEL
= ::WID_NCP_CANCEL
, ///< Close the window without changing anything.
1795 WID_NCP_OK
= ::WID_NCP_OK
, ///< Safe the password etc.
1798 /* automatically generated from ../../widgets/newgrf_debug_widget.h */
1799 /** Widgets of the #NewGRFInspectWindow class. */
1800 enum NewGRFInspectWidgets
{
1801 WID_NGRFI_CAPTION
= ::WID_NGRFI_CAPTION
, ///< The caption bar of course.
1802 WID_NGRFI_PARENT
= ::WID_NGRFI_PARENT
, ///< Inspect the parent.
1803 WID_NGRFI_VEH_PREV
= ::WID_NGRFI_VEH_PREV
, ///< Go to previous vehicle in chain.
1804 WID_NGRFI_VEH_NEXT
= ::WID_NGRFI_VEH_NEXT
, ///< Go to next vehicle in chain.
1805 WID_NGRFI_VEH_CHAIN
= ::WID_NGRFI_VEH_CHAIN
, ///< Display for vehicle chain.
1806 WID_NGRFI_MAINPANEL
= ::WID_NGRFI_MAINPANEL
, ///< Panel widget containing the actual data.
1807 WID_NGRFI_SCROLLBAR
= ::WID_NGRFI_SCROLLBAR
, ///< Scrollbar.
1810 /** Widgets of the #SpriteAlignerWindow class. */
1811 enum SpriteAlignerWidgets
{
1812 WID_SA_CAPTION
= ::WID_SA_CAPTION
, ///< Caption of the window.
1813 WID_SA_PREVIOUS
= ::WID_SA_PREVIOUS
, ///< Skip to the previous sprite.
1814 WID_SA_GOTO
= ::WID_SA_GOTO
, ///< Go to a given sprite.
1815 WID_SA_NEXT
= ::WID_SA_NEXT
, ///< Skip to the next sprite.
1816 WID_SA_UP
= ::WID_SA_UP
, ///< Move the sprite up.
1817 WID_SA_LEFT
= ::WID_SA_LEFT
, ///< Move the sprite to the left.
1818 WID_SA_RIGHT
= ::WID_SA_RIGHT
, ///< Move the sprite to the right.
1819 WID_SA_DOWN
= ::WID_SA_DOWN
, ///< Move the sprite down.
1820 WID_SA_SPRITE
= ::WID_SA_SPRITE
, ///< The actual sprite.
1821 WID_SA_OFFSETS_ABS
= ::WID_SA_OFFSETS_ABS
, ///< The sprite offsets (absolute).
1822 WID_SA_OFFSETS_REL
= ::WID_SA_OFFSETS_REL
, ///< The sprite offsets (relative).
1823 WID_SA_PICKER
= ::WID_SA_PICKER
, ///< Sprite picker.
1824 WID_SA_LIST
= ::WID_SA_LIST
, ///< Queried sprite list.
1825 WID_SA_SCROLLBAR
= ::WID_SA_SCROLLBAR
, ///< Scrollbar for sprite list.
1826 WID_SA_RESET_REL
= ::WID_SA_RESET_REL
, ///< Reset relative sprite offset
1829 /* automatically generated from ../../widgets/newgrf_widget.h */
1830 /** Widgets of the #NewGRFParametersWindow class. */
1831 enum NewGRFParametersWidgets
{
1832 WID_NP_SHOW_NUMPAR
= ::WID_NP_SHOW_NUMPAR
, ///< #NWID_SELECTION to optionally display #WID_NP_NUMPAR.
1833 WID_NP_NUMPAR_DEC
= ::WID_NP_NUMPAR_DEC
, ///< Button to decrease number of parameters.
1834 WID_NP_NUMPAR_INC
= ::WID_NP_NUMPAR_INC
, ///< Button to increase number of parameters.
1835 WID_NP_NUMPAR
= ::WID_NP_NUMPAR
, ///< Optional number of parameters.
1836 WID_NP_NUMPAR_TEXT
= ::WID_NP_NUMPAR_TEXT
, ///< Text description.
1837 WID_NP_BACKGROUND
= ::WID_NP_BACKGROUND
, ///< Panel to draw the settings on.
1838 WID_NP_SCROLLBAR
= ::WID_NP_SCROLLBAR
, ///< Scrollbar to scroll through all settings.
1839 WID_NP_ACCEPT
= ::WID_NP_ACCEPT
, ///< Accept button.
1840 WID_NP_RESET
= ::WID_NP_RESET
, ///< Reset button.
1841 WID_NP_SHOW_DESCRIPTION
= ::WID_NP_SHOW_DESCRIPTION
, ///< #NWID_SELECTION to optionally display parameter descriptions.
1842 WID_NP_DESCRIPTION
= ::WID_NP_DESCRIPTION
, ///< Multi-line description of a parameter.
1845 /** Widgets of the #NewGRFWindow class. */
1846 enum NewGRFStateWidgets
{
1847 WID_NS_PRESET_LIST
= ::WID_NS_PRESET_LIST
, ///< Active NewGRF preset.
1848 WID_NS_PRESET_SAVE
= ::WID_NS_PRESET_SAVE
, ///< Save list of active NewGRFs as presets.
1849 WID_NS_PRESET_DELETE
= ::WID_NS_PRESET_DELETE
, ///< Delete active preset.
1850 WID_NS_ADD
= ::WID_NS_ADD
, ///< Add NewGRF to active list.
1851 WID_NS_REMOVE
= ::WID_NS_REMOVE
, ///< Remove NewGRF from active list.
1852 WID_NS_MOVE_UP
= ::WID_NS_MOVE_UP
, ///< Move NewGRF up in active list.
1853 WID_NS_MOVE_DOWN
= ::WID_NS_MOVE_DOWN
, ///< Move NewGRF down in active list.
1854 WID_NS_UPGRADE
= ::WID_NS_UPGRADE
, ///< Upgrade NewGRFs that have a newer version available.
1855 WID_NS_FILTER
= ::WID_NS_FILTER
, ///< Filter list of available NewGRFs.
1856 WID_NS_FILE_LIST
= ::WID_NS_FILE_LIST
, ///< List window of active NewGRFs.
1857 WID_NS_SCROLLBAR
= ::WID_NS_SCROLLBAR
, ///< Scrollbar for active NewGRF list.
1858 WID_NS_AVAIL_LIST
= ::WID_NS_AVAIL_LIST
, ///< List window of available NewGRFs.
1859 WID_NS_SCROLL2BAR
= ::WID_NS_SCROLL2BAR
, ///< Scrollbar for available NewGRF list.
1860 WID_NS_NEWGRF_INFO_TITLE
= ::WID_NS_NEWGRF_INFO_TITLE
, ///< Title for Info on selected NewGRF.
1861 WID_NS_NEWGRF_INFO
= ::WID_NS_NEWGRF_INFO
, ///< Panel for Info on selected NewGRF.
1862 WID_NS_OPEN_URL
= ::WID_NS_OPEN_URL
, ///< Open URL of NewGRF.
1863 WID_NS_NEWGRF_TEXTFILE
= ::WID_NS_NEWGRF_TEXTFILE
, ///< Open NewGRF readme, changelog (+1) or license (+2).
1864 WID_NS_SET_PARAMETERS
= ::WID_NS_SET_PARAMETERS
, ///< Open Parameters Window for selected NewGRF for editing parameters.
1865 WID_NS_VIEW_PARAMETERS
= ::WID_NS_VIEW_PARAMETERS
, ///< Open Parameters Window for selected NewGRF for viewing parameters.
1866 WID_NS_TOGGLE_PALETTE
= ::WID_NS_TOGGLE_PALETTE
, ///< Toggle Palette of selected, active NewGRF.
1867 WID_NS_APPLY_CHANGES
= ::WID_NS_APPLY_CHANGES
, ///< Apply changes to NewGRF config.
1868 WID_NS_RESCAN_FILES
= ::WID_NS_RESCAN_FILES
, ///< Rescan files (available NewGRFs).
1869 WID_NS_RESCAN_FILES2
= ::WID_NS_RESCAN_FILES2
, ///< Rescan files (active NewGRFs).
1870 WID_NS_CONTENT_DOWNLOAD
= ::WID_NS_CONTENT_DOWNLOAD
, ///< Open content download (available NewGRFs).
1871 WID_NS_CONTENT_DOWNLOAD2
= ::WID_NS_CONTENT_DOWNLOAD2
, ///< Open content download (active NewGRFs).
1872 WID_NS_SHOW_REMOVE
= ::WID_NS_SHOW_REMOVE
, ///< Select active list buttons (0, 1 = simple layout).
1873 WID_NS_SHOW_APPLY
= ::WID_NS_SHOW_APPLY
, ///< Select display of the buttons below the 'details'.
1876 /** Widgets of the #SavePresetWindow class. */
1877 enum SavePresetWidgets
{
1878 WID_SVP_PRESET_LIST
= ::WID_SVP_PRESET_LIST
, ///< List with available preset names.
1879 WID_SVP_SCROLLBAR
= ::WID_SVP_SCROLLBAR
, ///< Scrollbar for the list available preset names.
1880 WID_SVP_EDITBOX
= ::WID_SVP_EDITBOX
, ///< Edit box for changing the preset name.
1881 WID_SVP_CANCEL
= ::WID_SVP_CANCEL
, ///< Button to cancel saving the preset.
1882 WID_SVP_SAVE
= ::WID_SVP_SAVE
, ///< Button to save the preset.
1885 /** Widgets of the #ScanProgressWindow class. */
1886 enum ScanProgressWidgets
{
1887 WID_SP_PROGRESS_BAR
= ::WID_SP_PROGRESS_BAR
, ///< Simple progress bar.
1888 WID_SP_PROGRESS_TEXT
= ::WID_SP_PROGRESS_TEXT
, ///< Text explaining what is happening.
1891 /* automatically generated from ../../widgets/news_widget.h */
1892 /** Widgets of the #NewsWindow class. */
1894 WID_N_PANEL
= ::WID_N_PANEL
, ///< Panel of the window.
1895 WID_N_TITLE
= ::WID_N_TITLE
, ///< Title of the company news.
1896 WID_N_HEADLINE
= ::WID_N_HEADLINE
, ///< The news headline.
1897 WID_N_CLOSEBOX
= ::WID_N_CLOSEBOX
, ///< Close the window.
1898 WID_N_DATE
= ::WID_N_DATE
, ///< Date of the news item.
1899 WID_N_CAPTION
= ::WID_N_CAPTION
, ///< Title bar of the window. Only used in small news items.
1900 WID_N_INSET
= ::WID_N_INSET
, ///< Inset around the viewport in the window. Only used in small news items.
1901 WID_N_VIEWPORT
= ::WID_N_VIEWPORT
, ///< Viewport in the window.
1902 WID_N_COMPANY_MSG
= ::WID_N_COMPANY_MSG
, ///< Message in company news items.
1903 WID_N_MESSAGE
= ::WID_N_MESSAGE
, ///< Space for displaying the message. Only used in small news items.
1904 WID_N_MGR_FACE
= ::WID_N_MGR_FACE
, ///< Face of the manager.
1905 WID_N_MGR_NAME
= ::WID_N_MGR_NAME
, ///< Name of the manager.
1906 WID_N_VEH_TITLE
= ::WID_N_VEH_TITLE
, ///< Vehicle new title.
1907 WID_N_VEH_BKGND
= ::WID_N_VEH_BKGND
, ///< Dark background of new vehicle news.
1908 WID_N_VEH_NAME
= ::WID_N_VEH_NAME
, ///< Name of the new vehicle.
1909 WID_N_VEH_SPR
= ::WID_N_VEH_SPR
, ///< Graphical display of the new vehicle.
1910 WID_N_VEH_INFO
= ::WID_N_VEH_INFO
, ///< Some technical data of the new vehicle.
1913 /** Widgets of the #MessageHistoryWindow class. */
1914 enum MessageHistoryWidgets
{
1915 WID_MH_STICKYBOX
= ::WID_MH_STICKYBOX
, ///< Stickybox.
1916 WID_MH_BACKGROUND
= ::WID_MH_BACKGROUND
, ///< Background of the window.
1917 WID_MH_SCROLLBAR
= ::WID_MH_SCROLLBAR
, ///< Scrollbar for the list.
1920 /* automatically generated from ../../widgets/object_widget.h */
1921 /** Widgets of the #BuildObjectWindow class. */
1922 enum BuildObjectWidgets
{
1923 WID_BO_CLASS_LIST
= ::WID_BO_CLASS_LIST
, ///< The list with classes.
1924 WID_BO_SCROLLBAR
= ::WID_BO_SCROLLBAR
, ///< The scrollbar associated with the list.
1925 WID_BO_OBJECT_MATRIX
= ::WID_BO_OBJECT_MATRIX
, ///< The matrix with preview sprites.
1926 WID_BO_OBJECT_SPRITE
= ::WID_BO_OBJECT_SPRITE
, ///< A preview sprite of the object.
1927 WID_BO_OBJECT_NAME
= ::WID_BO_OBJECT_NAME
, ///< The name of the selected object.
1928 WID_BO_OBJECT_SIZE
= ::WID_BO_OBJECT_SIZE
, ///< The size of the selected object.
1929 WID_BO_INFO
= ::WID_BO_INFO
, ///< Other information about the object (from the NewGRF).
1931 WID_BO_SELECT_MATRIX
= ::WID_BO_SELECT_MATRIX
, ///< Selection preview matrix of objects of a given class.
1932 WID_BO_SELECT_IMAGE
= ::WID_BO_SELECT_IMAGE
, ///< Preview image in the #WID_BO_SELECT_MATRIX.
1933 WID_BO_SELECT_SCROLL
= ::WID_BO_SELECT_SCROLL
, ///< Scrollbar next to the #WID_BO_SELECT_MATRIX.
1936 /* automatically generated from ../../widgets/order_widget.h */
1937 /** Widgets of the #OrdersWindow class. */
1939 WID_O_CAPTION
= ::WID_O_CAPTION
, ///< Caption of the window.
1940 WID_O_TIMETABLE_VIEW
= ::WID_O_TIMETABLE_VIEW
, ///< Toggle timetable view.
1941 WID_O_ORDER_LIST
= ::WID_O_ORDER_LIST
, ///< Order list panel.
1942 WID_O_SCROLLBAR
= ::WID_O_SCROLLBAR
, ///< Order list scrollbar.
1943 WID_O_SKIP
= ::WID_O_SKIP
, ///< Skip current order.
1944 WID_O_DELETE
= ::WID_O_DELETE
, ///< Delete selected order.
1945 WID_O_STOP_SHARING
= ::WID_O_STOP_SHARING
, ///< Stop sharing orders.
1946 WID_O_NON_STOP
= ::WID_O_NON_STOP
, ///< Goto non-stop to destination.
1947 WID_O_GOTO
= ::WID_O_GOTO
, ///< Goto destination.
1948 WID_O_FULL_LOAD
= ::WID_O_FULL_LOAD
, ///< Select full load.
1949 WID_O_UNLOAD
= ::WID_O_UNLOAD
, ///< Select unload.
1950 WID_O_REFIT
= ::WID_O_REFIT
, ///< Select refit.
1951 WID_O_SERVICE
= ::WID_O_SERVICE
, ///< Select service (at depot).
1952 WID_O_EMPTY
= ::WID_O_EMPTY
, ///< Placeholder for refit dropdown when not owner.
1953 WID_O_REFIT_DROPDOWN
= ::WID_O_REFIT_DROPDOWN
, ///< Open refit options.
1954 WID_O_COND_VARIABLE
= ::WID_O_COND_VARIABLE
, ///< Choose condition variable.
1955 WID_O_COND_COMPARATOR
= ::WID_O_COND_COMPARATOR
, ///< Choose condition type.
1956 WID_O_COND_VALUE
= ::WID_O_COND_VALUE
, ///< Choose condition value.
1957 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.
1958 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.
1959 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.
1960 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.
1961 WID_O_SEL_TOP_ROW
= ::WID_O_SEL_TOP_ROW
, ///< #NWID_SELECTION widget for the top row of the 'your non-trains' order window.
1962 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.
1963 WID_O_SHARED_ORDER_LIST
= ::WID_O_SHARED_ORDER_LIST
, ///< Open list of shared vehicles.
1966 /** Widgets of the #CargoTypeOrdersWindow class. */
1967 enum CargoTypeOrdersWidgets
{
1968 WID_CTO_CAPTION
= ::WID_CTO_CAPTION
, ///< Caption of the window.
1969 WID_CTO_HEADER
= ::WID_CTO_HEADER
, ///< Window header.
1970 WID_CTO_CLOSEBTN
= ::WID_CTO_CLOSEBTN
, ///< Close button.
1971 WID_CTO_SET_TO_ALL_LABEL
= ::WID_CTO_SET_TO_ALL_LABEL
, ///< 'Set to all' dropdown label
1972 WID_CTO_SET_TO_ALL_DROPDOWN
= ::WID_CTO_SET_TO_ALL_DROPDOWN
, ///< 'Set to all' dropdown
1973 WID_CTO_CARGO_ROW_FIRST
= ::WID_CTO_CARGO_ROW_FIRST
, ///< First cargo type order row.
1974 WID_CTO_CARGO_ROW_LAST
= ::WID_CTO_CARGO_ROW_LAST
, ///< Last cargo type order row.
1975 WID_CTO_CARGO_LABEL_FIRST
= ::WID_CTO_CARGO_LABEL_FIRST
, ///< First cargo label.
1976 WID_CTO_CARGO_LABEL_LAST
= ::WID_CTO_CARGO_LABEL_LAST
, ///< Last cargo label.
1977 WID_CTO_CARGO_DROPDOWN_FIRST
= ::WID_CTO_CARGO_DROPDOWN_FIRST
, ///< First order dropdown.
1978 WID_CTO_CARGO_DROPDOWN_LAST
= ::WID_CTO_CARGO_DROPDOWN_LAST
, ///< Last order dropdown.
1981 /* automatically generated from ../../widgets/osk_widget.h */
1982 /** Widgets of the #OskWindow class. */
1983 enum OnScreenKeyboardWidgets
{
1984 WID_OSK_CAPTION
= ::WID_OSK_CAPTION
, ///< Caption of window.
1985 WID_OSK_TEXT
= ::WID_OSK_TEXT
, ///< Edit box.
1986 WID_OSK_CANCEL
= ::WID_OSK_CANCEL
, ///< Cancel key.
1987 WID_OSK_OK
= ::WID_OSK_OK
, ///< Ok key.
1988 WID_OSK_BACKSPACE
= ::WID_OSK_BACKSPACE
, ///< Backspace key.
1989 WID_OSK_SPECIAL
= ::WID_OSK_SPECIAL
, ///< Special key (at keyboards often used for tab key).
1990 WID_OSK_CAPS
= ::WID_OSK_CAPS
, ///< Capslock key.
1991 WID_OSK_SHIFT
= ::WID_OSK_SHIFT
, ///< Shift(lock) key.
1992 WID_OSK_SPACE
= ::WID_OSK_SPACE
, ///< Space bar.
1993 WID_OSK_LEFT
= ::WID_OSK_LEFT
, ///< Cursor left key.
1994 WID_OSK_RIGHT
= ::WID_OSK_RIGHT
, ///< Cursor right key.
1995 WID_OSK_LETTERS
= ::WID_OSK_LETTERS
, ///< First widget of the 'normal' keys.
1997 WID_OSK_NUMBERS_FIRST
= ::WID_OSK_NUMBERS_FIRST
, ///< First widget of the numbers row.
1998 WID_OSK_NUMBERS_LAST
= ::WID_OSK_NUMBERS_LAST
, ///< Last widget of the numbers row.
2000 WID_OSK_QWERTY_FIRST
= ::WID_OSK_QWERTY_FIRST
, ///< First widget of the qwerty row.
2001 WID_OSK_QWERTY_LAST
= ::WID_OSK_QWERTY_LAST
, ///< Last widget of the qwerty row.
2003 WID_OSK_ASDFG_FIRST
= ::WID_OSK_ASDFG_FIRST
, ///< First widget of the asdfg row.
2004 WID_OSK_ASDFG_LAST
= ::WID_OSK_ASDFG_LAST
, ///< Last widget of the asdfg row.
2006 WID_OSK_ZXCVB_FIRST
= ::WID_OSK_ZXCVB_FIRST
, ///< First widget of the zxcvb row.
2007 WID_OSK_ZXCVB_LAST
= ::WID_OSK_ZXCVB_LAST
, ///< Last widget of the zxcvb row.
2010 /* automatically generated from ../../widgets/rail_widget.h */
2011 /** Widgets of the #BuildRailToolbarWindow class. */
2012 enum RailToolbarWidgets
{
2013 /* Name starts with RA instead of R, because of collision with RoadToolbarWidgets */
2014 WID_RAT_CAPTION
= ::WID_RAT_CAPTION
, ///< Caption of the window.
2015 WID_RAT_BUILD_NS
= ::WID_RAT_BUILD_NS
, ///< Build rail along the game view Y axis.
2016 WID_RAT_BUILD_X
= ::WID_RAT_BUILD_X
, ///< Build rail along the game grid X axis.
2017 WID_RAT_BUILD_EW
= ::WID_RAT_BUILD_EW
, ///< Build rail along the game view X axis.
2018 WID_RAT_BUILD_Y
= ::WID_RAT_BUILD_Y
, ///< Build rail along the game grid Y axis.
2019 WID_RAT_AUTORAIL
= ::WID_RAT_AUTORAIL
, ///< Autorail tool.
2020 WID_RAT_POLYRAIL
= ::WID_RAT_POLYRAIL
, ///< Polyline rail tool.
2021 WID_RAT_DEMOLISH
= ::WID_RAT_DEMOLISH
, ///< Destroy something with dynamite!
2022 WID_RAT_BUILD_DEPOT
= ::WID_RAT_BUILD_DEPOT
, ///< Build a depot.
2023 WID_RAT_BUILD_WAYPOINT
= ::WID_RAT_BUILD_WAYPOINT
, ///< Build a waypoint.
2024 WID_RAT_BUILD_STATION
= ::WID_RAT_BUILD_STATION
, ///< Build a station.
2025 WID_RAT_BUILD_SIGNALS
= ::WID_RAT_BUILD_SIGNALS
, ///< Build signals.
2026 WID_RAT_BUILD_BRIDGE
= ::WID_RAT_BUILD_BRIDGE
, ///< Build a bridge.
2027 WID_RAT_BUILD_TUNNEL
= ::WID_RAT_BUILD_TUNNEL
, ///< Build a tunnel.
2028 WID_RAT_REMOVE
= ::WID_RAT_REMOVE
, ///< Bulldozer to remove rail.
2029 WID_RAT_CONVERT_RAIL
= ::WID_RAT_CONVERT_RAIL
, ///< Convert other rail to this type.
2032 /** Widgets of the #BuildRailStationWindow class. */
2033 enum BuildRailStationWidgets
{
2034 /* Name starts with BRA instead of BR, because of collision with BuildRoadStationWidgets */
2035 WID_BRAS_PLATFORM_DIR_X
= ::WID_BRAS_PLATFORM_DIR_X
, ///< Button to select '/' view.
2036 WID_BRAS_PLATFORM_DIR_Y
= ::WID_BRAS_PLATFORM_DIR_Y
, ///< Button to select '\' view.
2038 WID_BRAS_PLATFORM_NUM_1
= ::WID_BRAS_PLATFORM_NUM_1
, ///< Button to select stations with a single platform.
2039 WID_BRAS_PLATFORM_NUM_2
= ::WID_BRAS_PLATFORM_NUM_2
, ///< Button to select stations with 2 platforms.
2040 WID_BRAS_PLATFORM_NUM_3
= ::WID_BRAS_PLATFORM_NUM_3
, ///< Button to select stations with 3 platforms.
2041 WID_BRAS_PLATFORM_NUM_4
= ::WID_BRAS_PLATFORM_NUM_4
, ///< Button to select stations with 4 platforms.
2042 WID_BRAS_PLATFORM_NUM_5
= ::WID_BRAS_PLATFORM_NUM_5
, ///< Button to select stations with 5 platforms.
2043 WID_BRAS_PLATFORM_NUM_6
= ::WID_BRAS_PLATFORM_NUM_6
, ///< Button to select stations with 6 platforms.
2044 WID_BRAS_PLATFORM_NUM_7
= ::WID_BRAS_PLATFORM_NUM_7
, ///< Button to select stations with 7 platforms.
2046 WID_BRAS_PLATFORM_LEN_1
= ::WID_BRAS_PLATFORM_LEN_1
, ///< Button to select single tile length station platforms.
2047 WID_BRAS_PLATFORM_LEN_2
= ::WID_BRAS_PLATFORM_LEN_2
, ///< Button to select 2 tiles length station platforms.
2048 WID_BRAS_PLATFORM_LEN_3
= ::WID_BRAS_PLATFORM_LEN_3
, ///< Button to select 3 tiles length station platforms.
2049 WID_BRAS_PLATFORM_LEN_4
= ::WID_BRAS_PLATFORM_LEN_4
, ///< Button to select 4 tiles length station platforms.
2050 WID_BRAS_PLATFORM_LEN_5
= ::WID_BRAS_PLATFORM_LEN_5
, ///< Button to select 5 tiles length station platforms.
2051 WID_BRAS_PLATFORM_LEN_6
= ::WID_BRAS_PLATFORM_LEN_6
, ///< Button to select 6 tiles length station platforms.
2052 WID_BRAS_PLATFORM_LEN_7
= ::WID_BRAS_PLATFORM_LEN_7
, ///< Button to select 7 tiles length station platforms.
2054 WID_BRAS_PLATFORM_DRAG_N_DROP
= ::WID_BRAS_PLATFORM_DRAG_N_DROP
, ///< Button to enable drag and drop type station placement.
2056 WID_BRAS_HIGHLIGHT_OFF
= ::WID_BRAS_HIGHLIGHT_OFF
, ///< Button for turning coverage highlighting off.
2057 WID_BRAS_HIGHLIGHT_ON
= ::WID_BRAS_HIGHLIGHT_ON
, ///< Button for turning coverage highlighting on.
2058 WID_BRAS_COVERAGE_TEXTS
= ::WID_BRAS_COVERAGE_TEXTS
, ///< Empty space for the coverage texts.
2060 WID_BRAS_MATRIX
= ::WID_BRAS_MATRIX
, ///< Matrix widget displaying the available stations.
2061 WID_BRAS_IMAGE
= ::WID_BRAS_IMAGE
, ///< Panel used at each cell of the matrix.
2062 WID_BRAS_MATRIX_SCROLL
= ::WID_BRAS_MATRIX_SCROLL
, ///< Scrollbar of the matrix widget.
2064 WID_BRAS_SHOW_NEWST_DEFSIZE
= ::WID_BRAS_SHOW_NEWST_DEFSIZE
, ///< Selection for default-size button for newstation.
2065 WID_BRAS_SHOW_NEWST_ADDITIONS
= ::WID_BRAS_SHOW_NEWST_ADDITIONS
, ///< Selection for newstation class selection list.
2066 WID_BRAS_SHOW_NEWST_MATRIX
= ::WID_BRAS_SHOW_NEWST_MATRIX
, ///< Selection for newstation image matrix.
2067 WID_BRAS_SHOW_NEWST_RESIZE
= ::WID_BRAS_SHOW_NEWST_RESIZE
, ///< Selection for panel and resize at bottom right for newstation.
2068 WID_BRAS_SHOW_NEWST_TYPE
= ::WID_BRAS_SHOW_NEWST_TYPE
, ///< Display of selected station type.
2069 WID_BRAS_NEWST_LIST
= ::WID_BRAS_NEWST_LIST
, ///< List with available newstation classes.
2070 WID_BRAS_NEWST_SCROLL
= ::WID_BRAS_NEWST_SCROLL
, ///< Scrollbar of the #WID_BRAS_NEWST_LIST.
2072 WID_BRAS_PLATFORM_NUM_BEGIN
= ::WID_BRAS_PLATFORM_NUM_BEGIN
, ///< Helper for determining the chosen platform width.
2073 WID_BRAS_PLATFORM_LEN_BEGIN
= ::WID_BRAS_PLATFORM_LEN_BEGIN
, ///< Helper for determining the chosen platform length.
2076 /** Widgets of the #BuildSignalWindow class. */
2077 enum BuildSignalWidgets
{
2078 WID_BS_SEMAPHORE_NORM
= ::WID_BS_SEMAPHORE_NORM
, ///< Build a semaphore normal block signal
2079 WID_BS_SEMAPHORE_ENTRY
= ::WID_BS_SEMAPHORE_ENTRY
, ///< Build a semaphore entry block signal
2080 WID_BS_SEMAPHORE_EXIT
= ::WID_BS_SEMAPHORE_EXIT
, ///< Build a semaphore exit block signal
2081 WID_BS_SEMAPHORE_COMBO
= ::WID_BS_SEMAPHORE_COMBO
, ///< Build a semaphore combo block signal
2082 WID_BS_SEMAPHORE_PBS
= ::WID_BS_SEMAPHORE_PBS
, ///< Build a semaphore path signal.
2083 WID_BS_SEMAPHORE_PBS_OWAY
= ::WID_BS_SEMAPHORE_PBS_OWAY
, ///< Build a semaphore one way path signal.
2084 WID_BS_ELECTRIC_NORM
= ::WID_BS_ELECTRIC_NORM
, ///< Build an electric normal block signal
2085 WID_BS_ELECTRIC_ENTRY
= ::WID_BS_ELECTRIC_ENTRY
, ///< Build an electric entry block signal
2086 WID_BS_ELECTRIC_EXIT
= ::WID_BS_ELECTRIC_EXIT
, ///< Build an electric exit block signal
2087 WID_BS_ELECTRIC_COMBO
= ::WID_BS_ELECTRIC_COMBO
, ///< Build an electric combo block signal
2088 WID_BS_ELECTRIC_PBS
= ::WID_BS_ELECTRIC_PBS
, ///< Build an electric path signal.
2089 WID_BS_ELECTRIC_PBS_OWAY
= ::WID_BS_ELECTRIC_PBS_OWAY
, ///< Build an electric one way path signal.
2090 WID_BS_CONVERT
= ::WID_BS_CONVERT
, ///< Convert the signal.
2091 WID_BS_TRACE_RESTRICT
= ::WID_BS_TRACE_RESTRICT
, ///< Open trace restrict window.
2092 WID_BS_DRAG_SIGNALS_DENSITY_LABEL
= ::WID_BS_DRAG_SIGNALS_DENSITY_LABEL
, ///< The current signal density.
2093 WID_BS_DRAG_SIGNALS_DENSITY_DECREASE
= ::WID_BS_DRAG_SIGNALS_DENSITY_DECREASE
, ///< Decrease the signal density.
2094 WID_BS_DRAG_SIGNALS_DENSITY_INCREASE
= ::WID_BS_DRAG_SIGNALS_DENSITY_INCREASE
, ///< Increase the signal density.
2097 /** Widgets of the #BuildRailDepotWindow class. */
2098 enum BuildRailDepotWidgets
{
2099 /* Name starts with BRA instead of BR, because of collision with BuildRoadDepotWidgets */
2100 WID_BRAD_DEPOT_NE
= ::WID_BRAD_DEPOT_NE
, ///< Build a depot with the entrance in the north east.
2101 WID_BRAD_DEPOT_SE
= ::WID_BRAD_DEPOT_SE
, ///< Build a depot with the entrance in the south east.
2102 WID_BRAD_DEPOT_SW
= ::WID_BRAD_DEPOT_SW
, ///< Build a depot with the entrance in the south west.
2103 WID_BRAD_DEPOT_NW
= ::WID_BRAD_DEPOT_NW
, ///< Build a depot with the entrance in the north west.
2106 /** Widgets of the #BuildRailWaypointWindow class. */
2107 enum BuildRailWaypointWidgets
{
2108 WID_BRW_WAYPOINT_MATRIX
= ::WID_BRW_WAYPOINT_MATRIX
, ///< Matrix with waypoints.
2109 WID_BRW_WAYPOINT
= ::WID_BRW_WAYPOINT
, ///< A single waypoint.
2110 WID_BRW_SCROLL
= ::WID_BRW_SCROLL
, ///< Scrollbar for the matrix.
2113 /* automatically generated from ../../widgets/road_widget.h */
2114 /** Widgets of the #BuildRoadToolbarWindow class. */
2115 enum RoadToolbarWidgets
{
2116 /* Name starts with RO instead of R, because of collision with RailToolbarWidgets */
2117 WID_ROT_ROAD_X
= ::WID_ROT_ROAD_X
, ///< Build road in x-direction.
2118 WID_ROT_ROAD_Y
= ::WID_ROT_ROAD_Y
, ///< Build road in y-direction.
2119 WID_ROT_AUTOROAD
= ::WID_ROT_AUTOROAD
, ///< Autorail.
2120 WID_ROT_DEMOLISH
= ::WID_ROT_DEMOLISH
, ///< Demolish.
2121 WID_ROT_DEPOT
= ::WID_ROT_DEPOT
, ///< Build depot.
2122 WID_ROT_BUS_STATION
= ::WID_ROT_BUS_STATION
, ///< Build bus station.
2123 WID_ROT_TRUCK_STATION
= ::WID_ROT_TRUCK_STATION
, ///< Build truck station.
2124 WID_ROT_ONE_WAY
= ::WID_ROT_ONE_WAY
, ///< Build one-way road.
2125 WID_ROT_BUILD_BRIDGE
= ::WID_ROT_BUILD_BRIDGE
, ///< Build bridge.
2126 WID_ROT_BUILD_TUNNEL
= ::WID_ROT_BUILD_TUNNEL
, ///< Build tunnel.
2127 WID_ROT_REMOVE
= ::WID_ROT_REMOVE
, ///< Remove road.
2130 /** Widgets of the #BuildRoadDepotWindow class. */
2131 enum BuildRoadDepotWidgets
{
2132 /* Name starts with BRO instead of BR, because of collision with BuildRailDepotWidgets */
2133 WID_BROD_CAPTION
= ::WID_BROD_CAPTION
, ///< Caption of the window.
2134 WID_BROD_DEPOT_NE
= ::WID_BROD_DEPOT_NE
, ///< Depot with NE entry.
2135 WID_BROD_DEPOT_SE
= ::WID_BROD_DEPOT_SE
, ///< Depot with SE entry.
2136 WID_BROD_DEPOT_SW
= ::WID_BROD_DEPOT_SW
, ///< Depot with SW entry.
2137 WID_BROD_DEPOT_NW
= ::WID_BROD_DEPOT_NW
, ///< Depot with NW entry.
2140 /** Widgets of the #BuildRoadStationWindow class. */
2141 enum BuildRoadStationWidgets
{
2142 /* Name starts with BRO instead of BR, because of collision with BuildRailStationWidgets */
2143 WID_BROS_CAPTION
= ::WID_BROS_CAPTION
, ///< Caption of the window.
2144 WID_BROS_BACKGROUND
= ::WID_BROS_BACKGROUND
, ///< Background of the window.
2145 WID_BROS_STATION_NE
= ::WID_BROS_STATION_NE
, ///< Terminal station with NE entry.
2146 WID_BROS_STATION_SE
= ::WID_BROS_STATION_SE
, ///< Terminal station with SE entry.
2147 WID_BROS_STATION_SW
= ::WID_BROS_STATION_SW
, ///< Terminal station with SW entry.
2148 WID_BROS_STATION_NW
= ::WID_BROS_STATION_NW
, ///< Terminal station with NW entry.
2149 WID_BROS_STATION_X
= ::WID_BROS_STATION_X
, ///< Drive-through station in x-direction.
2150 WID_BROS_STATION_Y
= ::WID_BROS_STATION_Y
, ///< Drive-through station in y-direction.
2151 WID_BROS_LT_OFF
= ::WID_BROS_LT_OFF
, ///< Turn off area highlight.
2152 WID_BROS_LT_ON
= ::WID_BROS_LT_ON
, ///< Turn on area highlight.
2153 WID_BROS_INFO
= ::WID_BROS_INFO
, ///< Station acceptance info.
2156 /* automatically generated from ../../widgets/settings_widget.h */
2157 /** Widgets of the #GameOptionsWindow class. */
2158 enum GameOptionsWidgets
{
2159 WID_GO_BACKGROUND
= ::WID_GO_BACKGROUND
, ///< Background of the window.
2160 WID_GO_CURRENCY_DROPDOWN
= ::WID_GO_CURRENCY_DROPDOWN
, ///< Currency dropdown.
2161 WID_GO_DISTANCE_DROPDOWN
= ::WID_GO_DISTANCE_DROPDOWN
, ///< Measuring unit dropdown.
2162 WID_GO_ROADSIDE_DROPDOWN
= ::WID_GO_ROADSIDE_DROPDOWN
, ///< Dropdown to select the road side (to set the right side ;)).
2163 WID_GO_TOWNNAME_DROPDOWN
= ::WID_GO_TOWNNAME_DROPDOWN
, ///< Town name dropdown.
2164 WID_GO_AUTOSAVE_DROPDOWN
= ::WID_GO_AUTOSAVE_DROPDOWN
, ///< Dropdown to say how often to autosave.
2165 WID_GO_LANG_DROPDOWN
= ::WID_GO_LANG_DROPDOWN
, ///< Language dropdown.
2166 WID_GO_RESOLUTION_DROPDOWN
= ::WID_GO_RESOLUTION_DROPDOWN
, ///< Dropdown for the resolution.
2167 WID_GO_FULLSCREEN_BUTTON
= ::WID_GO_FULLSCREEN_BUTTON
, ///< Toggle fullscreen.
2168 WID_GO_GUI_ZOOM_DROPDOWN
= ::WID_GO_GUI_ZOOM_DROPDOWN
, ///< Dropdown for the GUI zoom level.
2169 WID_GO_BASE_GRF_DROPDOWN
= ::WID_GO_BASE_GRF_DROPDOWN
, ///< Use to select a base GRF.
2170 WID_GO_BASE_GRF_STATUS
= ::WID_GO_BASE_GRF_STATUS
, ///< Info about missing files etc.
2171 WID_GO_BASE_GRF_TEXTFILE
= ::WID_GO_BASE_GRF_TEXTFILE
, ///< Open base GRF readme, changelog (+1) or license (+2).
2172 WID_GO_BASE_GRF_DESCRIPTION
= ::WID_GO_BASE_GRF_DESCRIPTION
, ///< Description of selected base GRF.
2173 WID_GO_BASE_SFX_DROPDOWN
= ::WID_GO_BASE_SFX_DROPDOWN
, ///< Use to select a base SFX.
2174 WID_GO_BASE_SFX_TEXTFILE
= ::WID_GO_BASE_SFX_TEXTFILE
, ///< Open base SFX readme, changelog (+1) or license (+2).
2175 WID_GO_BASE_SFX_DESCRIPTION
= ::WID_GO_BASE_SFX_DESCRIPTION
, ///< Description of selected base SFX.
2176 WID_GO_BASE_MUSIC_DROPDOWN
= ::WID_GO_BASE_MUSIC_DROPDOWN
, ///< Use to select a base music set.
2177 WID_GO_BASE_MUSIC_STATUS
= ::WID_GO_BASE_MUSIC_STATUS
, ///< Info about corrupted files etc.
2178 WID_GO_BASE_MUSIC_TEXTFILE
= ::WID_GO_BASE_MUSIC_TEXTFILE
, ///< Open base music readme, changelog (+1) or license (+2).
2179 WID_GO_BASE_MUSIC_DESCRIPTION
= ::WID_GO_BASE_MUSIC_DESCRIPTION
, ///< Description of selected base music set.
2182 /** Widgets of the #GameSettingsWindow class. */
2183 enum GameSettingsWidgets
{
2184 WID_GS_FILTER
= ::WID_GS_FILTER
, ///< Text filter.
2185 WID_GS_OPTIONSPANEL
= ::WID_GS_OPTIONSPANEL
, ///< Panel widget containing the option lists.
2186 WID_GS_SCROLLBAR
= ::WID_GS_SCROLLBAR
, ///< Scrollbar.
2187 WID_GS_HELP_TEXT
= ::WID_GS_HELP_TEXT
, ///< Information area to display help text of the selected option.
2188 WID_GS_EXPAND_ALL
= ::WID_GS_EXPAND_ALL
, ///< Expand all button.
2189 WID_GS_COLLAPSE_ALL
= ::WID_GS_COLLAPSE_ALL
, ///< Collapse all button.
2190 WID_GS_RESTRICT_CATEGORY
= ::WID_GS_RESTRICT_CATEGORY
, ///< Label upfront to the category drop-down box to restrict the list of settings to show
2191 WID_GS_RESTRICT_TYPE
= ::WID_GS_RESTRICT_TYPE
, ///< Label upfront to the type drop-down box to restrict the list of settings to show
2192 WID_GS_RESTRICT_DROPDOWN
= ::WID_GS_RESTRICT_DROPDOWN
, ///< The drop down box to restrict the list of settings
2193 WID_GS_TYPE_DROPDOWN
= ::WID_GS_TYPE_DROPDOWN
, ///< The drop down box to choose client/game/company/all settings
2196 /** Widgets of the #CustomCurrencyWindow class. */
2197 enum CustomCurrencyWidgets
{
2198 WID_CC_RATE_DOWN
= ::WID_CC_RATE_DOWN
, ///< Down button.
2199 WID_CC_RATE_UP
= ::WID_CC_RATE_UP
, ///< Up button.
2200 WID_CC_RATE
= ::WID_CC_RATE
, ///< Rate of currency.
2201 WID_CC_SEPARATOR_EDIT
= ::WID_CC_SEPARATOR_EDIT
, ///< Separator edit button.
2202 WID_CC_SEPARATOR
= ::WID_CC_SEPARATOR
, ///< Current separator.
2203 WID_CC_PREFIX_EDIT
= ::WID_CC_PREFIX_EDIT
, ///< Prefix edit button.
2204 WID_CC_PREFIX
= ::WID_CC_PREFIX
, ///< Current prefix.
2205 WID_CC_SUFFIX_EDIT
= ::WID_CC_SUFFIX_EDIT
, ///< Suffix edit button.
2206 WID_CC_SUFFIX
= ::WID_CC_SUFFIX
, ///< Current suffix.
2207 WID_CC_YEAR_DOWN
= ::WID_CC_YEAR_DOWN
, ///< Down button.
2208 WID_CC_YEAR_UP
= ::WID_CC_YEAR_UP
, ///< Up button.
2209 WID_CC_YEAR
= ::WID_CC_YEAR
, ///< Year of introduction.
2210 WID_CC_PREVIEW
= ::WID_CC_PREVIEW
, ///< Preview.
2213 /* automatically generated from ../../widgets/sign_widget.h */
2214 /** Widgets of the #SignListWindow class. */
2215 enum SignListWidgets
{
2216 /* Name starts with SI instead of S, because of collision with SaveLoadWidgets */
2217 WID_SIL_CAPTION
= ::WID_SIL_CAPTION
, ///< Caption of the window.
2218 WID_SIL_LIST
= ::WID_SIL_LIST
, ///< List of signs.
2219 WID_SIL_SCROLLBAR
= ::WID_SIL_SCROLLBAR
, ///< Scrollbar of list.
2220 WID_SIL_FILTER_TEXT
= ::WID_SIL_FILTER_TEXT
, ///< Text box for typing a filter string.
2221 WID_SIL_FILTER_MATCH_CASE_BTN
= ::WID_SIL_FILTER_MATCH_CASE_BTN
, ///< Button to toggle if case sensitive filtering should be used.
2222 WID_SIL_FILTER_ENTER_BTN
= ::WID_SIL_FILTER_ENTER_BTN
, ///< Scroll to first sign.
2225 /** Widgets of the #SignWindow class. */
2226 enum QueryEditSignWidgets
{
2227 WID_QES_CAPTION
= ::WID_QES_CAPTION
, ///< Caption of the window.
2228 WID_QES_TEXT
= ::WID_QES_TEXT
, ///< Text of the query.
2229 WID_QES_OK
= ::WID_QES_OK
, ///< OK button.
2230 WID_QES_CANCEL
= ::WID_QES_CANCEL
, ///< Cancel button.
2231 WID_QES_DELETE
= ::WID_QES_DELETE
, ///< Delete button.
2232 WID_QES_PREVIOUS
= ::WID_QES_PREVIOUS
, ///< Previous button.
2233 WID_QES_NEXT
= ::WID_QES_NEXT
, ///< Next button.
2236 /* automatically generated from ../../widgets/smallmap_widget.h */
2237 /** Widgets of the #SmallMapWindow class. */
2238 enum SmallMapWidgets
{
2239 WID_SM_CAPTION
= ::WID_SM_CAPTION
, ///< Caption of the window.
2240 WID_SM_MAP_BORDER
= ::WID_SM_MAP_BORDER
, ///< Border around the smallmap.
2241 WID_SM_MAP
= ::WID_SM_MAP
, ///< Panel containing the smallmap.
2242 WID_SM_LEGEND
= ::WID_SM_LEGEND
, ///< Bottom panel to display smallmap legends.
2243 WID_SM_BLANK
= ::WID_SM_BLANK
, ///< Empty button as placeholder.
2244 WID_SM_ZOOM_IN
= ::WID_SM_ZOOM_IN
, ///< Button to zoom in one step.
2245 WID_SM_ZOOM_OUT
= ::WID_SM_ZOOM_OUT
, ///< Button to zoom out one step.
2246 WID_SM_CONTOUR
= ::WID_SM_CONTOUR
, ///< Button to select the contour view (height map).
2247 WID_SM_VEHICLES
= ::WID_SM_VEHICLES
, ///< Button to select the vehicles view.
2248 WID_SM_INDUSTRIES
= ::WID_SM_INDUSTRIES
, ///< Button to select the industries view.
2249 WID_SM_LINKSTATS
= ::WID_SM_LINKSTATS
, ///< Button to select the link stats view.
2250 WID_SM_ROUTES
= ::WID_SM_ROUTES
, ///< Button to select the routes view.
2251 WID_SM_VEGETATION
= ::WID_SM_VEGETATION
, ///< Button to select the vegetation view.
2252 WID_SM_OWNERS
= ::WID_SM_OWNERS
, ///< Button to select the owners view.
2253 WID_SM_CENTERMAP
= ::WID_SM_CENTERMAP
, ///< Button to move smallmap center to main window center.
2254 WID_SM_TOGGLETOWNNAME
= ::WID_SM_TOGGLETOWNNAME
, ///< Toggle button to display town names.
2255 WID_SM_SELECT_BUTTONS
= ::WID_SM_SELECT_BUTTONS
, ///< Selection widget for the buttons present in some smallmap modes.
2256 WID_SM_ENABLE_ALL
= ::WID_SM_ENABLE_ALL
, ///< Button to enable display of all legend entries.
2257 WID_SM_DISABLE_ALL
= ::WID_SM_DISABLE_ALL
, ///< Button to disable display of all legend entries.
2258 WID_SM_SHOW_HEIGHT
= ::WID_SM_SHOW_HEIGHT
, ///< Show heightmap toggle button.
2261 /* automatically generated from ../../widgets/station_widget.h */
2262 /** Widgets of the #StationViewWindow class. */
2263 enum StationViewWidgets
{
2264 WID_SV_CAPTION
= ::WID_SV_CAPTION
, ///< Caption of the window.
2265 WID_SV_SORT_ORDER
= ::WID_SV_SORT_ORDER
, ///< 'Sort order' button
2266 WID_SV_SORT_BY
= ::WID_SV_SORT_BY
, ///< 'Sort by' button
2267 WID_SV_GROUP
= ::WID_SV_GROUP
, ///< label for "group by"
2268 WID_SV_GROUP_BY
= ::WID_SV_GROUP_BY
, ///< 'Group by' button
2269 WID_SV_WAITING
= ::WID_SV_WAITING
, ///< List of waiting cargo.
2270 WID_SV_SCROLLBAR
= ::WID_SV_SCROLLBAR
, ///< Scrollbar.
2271 WID_SV_ACCEPT_RATING_LIST
= ::WID_SV_ACCEPT_RATING_LIST
, ///< List of accepted cargoes / rating of cargoes.
2272 WID_SV_LOCATION
= ::WID_SV_LOCATION
, ///< 'Location' button.
2273 WID_SV_ACCEPTS_RATINGS
= ::WID_SV_ACCEPTS_RATINGS
, ///< 'Accepts' / 'Ratings' button.
2274 WID_SV_RENAME
= ::WID_SV_RENAME
, ///< 'Rename' button.
2275 WID_SV_CLOSE_AIRPORT
= ::WID_SV_CLOSE_AIRPORT
, ///< 'Close airport' button.
2276 WID_SV_TRAINS
= ::WID_SV_TRAINS
, ///< List of scheduled trains button.
2277 WID_SV_ROADVEHS
= ::WID_SV_ROADVEHS
, ///< List of scheduled road vehs button.
2278 WID_SV_SHIPS
= ::WID_SV_SHIPS
, ///< List of scheduled ships button.
2279 WID_SV_PLANES
= ::WID_SV_PLANES
, ///< List of scheduled planes button.
2282 /** Widgets of the #CompanyStationsWindow class. */
2283 enum StationListWidgets
{
2284 /* Name starts with ST instead of S, because of collision with SaveLoadWidgets */
2285 WID_STL_CAPTION
= ::WID_STL_CAPTION
, ///< Caption of the window.
2286 WID_STL_LIST
= ::WID_STL_LIST
, ///< The main panel, list of stations.
2287 WID_STL_SCROLLBAR
= ::WID_STL_SCROLLBAR
, ///< Scrollbar next to the main panel.
2289 /* Vehicletypes need to be in order of StationFacility due to bit magic */
2290 WID_STL_TRAIN
= ::WID_STL_TRAIN
, ///< 'TRAIN' button - list only facilities where is a railroad station.
2291 WID_STL_TRUCK
= ::WID_STL_TRUCK
, ///< 'TRUCK' button - list only facilities where is a truck stop.
2292 WID_STL_BUS
= ::WID_STL_BUS
, ///< 'BUS' button - list only facilities where is a bus stop.
2293 WID_STL_AIRPLANE
= ::WID_STL_AIRPLANE
, ///< 'AIRPLANE' button - list only facilities where is an airport.
2294 WID_STL_SHIP
= ::WID_STL_SHIP
, ///< 'SHIP' button - list only facilities where is a dock.
2295 WID_STL_FACILALL
= ::WID_STL_FACILALL
, ///< 'ALL' button - list all facilities.
2297 WID_STL_NOCARGOWAITING
= ::WID_STL_NOCARGOWAITING
, ///< 'NO' button - list stations where no cargo is waiting.
2298 WID_STL_CARGOALL
= ::WID_STL_CARGOALL
, ///< 'ALL' button - list all stations.
2300 WID_STL_SORTBY
= ::WID_STL_SORTBY
, ///< 'Sort by' button - reverse sort direction.
2301 WID_STL_SORTDROPBTN
= ::WID_STL_SORTDROPBTN
, ///< Dropdown button.
2303 WID_STL_CARGOSTART
= ::WID_STL_CARGOSTART
, ///< Widget numbers used for list of cargo types (not present in _company_stations_widgets).
2306 /** Widgets of the #SelectStationWindow class. */
2307 enum JoinStationWidgets
{
2308 WID_JS_CAPTION
= ::WID_JS_CAPTION
, // Caption of the window.
2309 WID_JS_PANEL
= ::WID_JS_PANEL
, // Main panel.
2310 WID_JS_SCROLLBAR
= ::WID_JS_SCROLLBAR
, // Scrollbar of the panel.
2313 /* automatically generated from ../../widgets/statusbar_widget.h */
2314 /** Widgets of the #StatusBarWindow class. */
2315 enum StatusbarWidgets
{
2316 WID_S_LEFT
= ::WID_S_LEFT
, ///< Left part of the statusbar; date is shown there.
2317 WID_S_MIDDLE
= ::WID_S_MIDDLE
, ///< Middle part; current news or company name or *** SAVING *** or *** PAUSED ***.
2318 WID_S_RIGHT
= ::WID_S_RIGHT
, ///< Right part; bank balance.
2321 /* automatically generated from ../../widgets/story_widget.h */
2322 /** Widgets of the #GoalListWindow class. */
2323 enum StoryBookWidgets
{
2324 WID_SB_CAPTION
= ::WID_SB_CAPTION
, ///< Caption of the window.
2325 WID_SB_SEL_PAGE
= ::WID_SB_SEL_PAGE
, ///< Page selector.
2326 WID_SB_PAGE_PANEL
= ::WID_SB_PAGE_PANEL
, ///< Page body.
2327 WID_SB_SCROLLBAR
= ::WID_SB_SCROLLBAR
, ///< Scrollbar of the goal list.
2328 WID_SB_PREV_PAGE
= ::WID_SB_PREV_PAGE
, ///< Prev button.
2329 WID_SB_NEXT_PAGE
= ::WID_SB_NEXT_PAGE
, ///< Next button.
2332 /* automatically generated from ../../widgets/subsidy_widget.h */
2333 /** Widgets of the #SubsidyListWindow class. */
2334 enum SubsidyListWidgets
{
2335 /* Name starts with SU instead of S, because of collision with SaveLoadWidgets. */
2336 WID_SUL_PANEL
= ::WID_SUL_PANEL
, ///< Main panel of window.
2337 WID_SUL_SCROLLBAR
= ::WID_SUL_SCROLLBAR
, ///< Scrollbar of panel.
2340 /* automatically generated from ../../widgets/terraform_widget.h */
2341 /** Widgets of the #TerraformToolbarWindow class. */
2342 enum TerraformToolbarWidgets
{
2343 WID_TT_SHOW_PLACE_OBJECT
= ::WID_TT_SHOW_PLACE_OBJECT
, ///< Should the place object button be shown?
2344 WID_TT_BUTTONS_START
= ::WID_TT_BUTTONS_START
, ///< Start of pushable buttons.
2345 WID_TT_LOWER_LAND
= ::WID_TT_LOWER_LAND
, ///< Lower land button.
2346 WID_TT_RAISE_LAND
= ::WID_TT_RAISE_LAND
, ///< Raise land button.
2347 WID_TT_LEVEL_LAND
= ::WID_TT_LEVEL_LAND
, ///< Level land button.
2348 WID_TT_DEMOLISH
= ::WID_TT_DEMOLISH
, ///< Demolish aka dynamite button.
2349 WID_TT_BUY_LAND
= ::WID_TT_BUY_LAND
, ///< Buy land button.
2350 WID_TT_PLANT_TREES
= ::WID_TT_PLANT_TREES
, ///< Plant trees button (note: opens separate window, no place-push-button).
2351 WID_TT_PLACE_SIGN
= ::WID_TT_PLACE_SIGN
, ///< Place sign button.
2352 WID_TT_PLACE_OBJECT
= ::WID_TT_PLACE_OBJECT
, ///< Place object button.
2355 /** Widgets of the #ScenarioEditorLandscapeGenerationWindow class. */
2356 enum EditorTerraformToolbarWidgets
{
2357 WID_ETT_SHOW_PLACE_DESERT
= ::WID_ETT_SHOW_PLACE_DESERT
, ///< Should the place desert button be shown?
2358 WID_ETT_START
= ::WID_ETT_START
, ///< Used for iterations.
2359 WID_ETT_DOTS
= ::WID_ETT_DOTS
, ///< Invisible widget for rendering the terraform size on.
2360 WID_ETT_BUTTONS_START
= ::WID_ETT_BUTTONS_START
, ///< Start of pushable buttons.
2361 WID_ETT_DEMOLISH
= ::WID_ETT_DEMOLISH
, ///< Demolish aka dynamite button.
2362 WID_ETT_LOWER_LAND
= ::WID_ETT_LOWER_LAND
, ///< Lower land button.
2363 WID_ETT_RAISE_LAND
= ::WID_ETT_RAISE_LAND
, ///< Raise land button.
2364 WID_ETT_LEVEL_LAND
= ::WID_ETT_LEVEL_LAND
, ///< Level land button.
2365 WID_ETT_PLACE_ROCKS
= ::WID_ETT_PLACE_ROCKS
, ///< Place rocks button.
2366 WID_ETT_PLACE_DESERT
= ::WID_ETT_PLACE_DESERT
, ///< Place desert button (in tropical climate).
2367 WID_ETT_PLACE_OBJECT
= ::WID_ETT_PLACE_OBJECT
, ///< Place transmitter button.
2368 WID_ETT_BUTTONS_END
= ::WID_ETT_BUTTONS_END
, ///< End of pushable buttons.
2369 WID_ETT_INCREASE_SIZE
= ::WID_ETT_INCREASE_SIZE
, ///< Upwards arrow button to increase terraforming size.
2370 WID_ETT_DECREASE_SIZE
= ::WID_ETT_DECREASE_SIZE
, ///< Downwards arrow button to decrease terraforming size.
2371 WID_ETT_NEW_SCENARIO
= ::WID_ETT_NEW_SCENARIO
, ///< Button for generating a new scenario.
2372 WID_ETT_RESET_LANDSCAPE
= ::WID_ETT_RESET_LANDSCAPE
, ///< Button for removing all company-owned property.
2375 /* automatically generated from ../../widgets/timetable_widget.h */
2376 /** Widgets of the #TimetableWindow class. */
2377 enum VehicleTimetableWidgets
{
2378 WID_VT_CAPTION
= ::WID_VT_CAPTION
, ///< Caption of the window.
2379 WID_VT_ORDER_VIEW
= ::WID_VT_ORDER_VIEW
, ///< Order view.
2380 WID_VT_TIMETABLE_PANEL
= ::WID_VT_TIMETABLE_PANEL
, ///< Timetable panel.
2381 WID_VT_ARRIVAL_DEPARTURE_PANEL
= ::WID_VT_ARRIVAL_DEPARTURE_PANEL
, ///< Panel with the expected/scheduled arrivals.
2382 WID_VT_SCROLLBAR
= ::WID_VT_SCROLLBAR
, ///< Scrollbar for the panel.
2383 WID_VT_SUMMARY_PANEL
= ::WID_VT_SUMMARY_PANEL
, ///< Summary panel.
2384 WID_VT_START_DATE
= ::WID_VT_START_DATE
, ///< Start date button.
2385 WID_VT_CHANGE_TIME
= ::WID_VT_CHANGE_TIME
, ///< Change time button.
2386 WID_VT_CLEAR_TIME
= ::WID_VT_CLEAR_TIME
, ///< Clear time button.
2387 WID_VT_RESET_LATENESS
= ::WID_VT_RESET_LATENESS
, ///< Reset lateness button.
2388 WID_VT_AUTOFILL
= ::WID_VT_AUTOFILL
, ///< Autofill button.
2389 WID_VT_EXPECTED
= ::WID_VT_EXPECTED
, ///< Toggle between expected and scheduled arrivals.
2390 WID_VT_SHARED_ORDER_LIST
= ::WID_VT_SHARED_ORDER_LIST
, ///< Show the shared order list.
2391 WID_VT_ARRIVAL_DEPARTURE_SELECTION
= ::WID_VT_ARRIVAL_DEPARTURE_SELECTION
, ///< Disable/hide the arrival departure panel.
2392 WID_VT_EXPECTED_SELECTION
= ::WID_VT_EXPECTED_SELECTION
, ///< Disable/hide the expected selection button.
2393 WID_VT_CHANGE_SPEED
= ::WID_VT_CHANGE_SPEED
, ///< Change speed limit button.
2394 WID_VT_CLEAR_SPEED
= ::WID_VT_CLEAR_SPEED
, ///< Clear speed limit button.
2397 /* automatically generated from ../../widgets/toolbar_widget.h */
2398 /** Widgets of the #MainToolbarWindow class. */
2399 enum ToolbarNormalWidgets
{
2400 WID_TN_PAUSE
= ::WID_TN_PAUSE
, ///< Pause the game.
2401 WID_TN_FAST_FORWARD
= ::WID_TN_FAST_FORWARD
, ///< Fast forward the game.
2402 WID_TN_SETTINGS
= ::WID_TN_SETTINGS
, ///< Settings menu.
2403 WID_TN_SAVE
= ::WID_TN_SAVE
, ///< Save menu.
2404 WID_TN_SMALL_MAP
= ::WID_TN_SMALL_MAP
, ///< Small map menu.
2405 WID_TN_TOWNS
= ::WID_TN_TOWNS
, ///< Town menu.
2406 WID_TN_SUBSIDIES
= ::WID_TN_SUBSIDIES
, ///< Subsidy menu.
2407 WID_TN_STATIONS
= ::WID_TN_STATIONS
, ///< Station menu.
2408 WID_TN_FINANCES
= ::WID_TN_FINANCES
, ///< Finance menu.
2409 WID_TN_COMPANIES
= ::WID_TN_COMPANIES
, ///< Company menu.
2410 WID_TN_STORY
= ::WID_TN_STORY
, ///< Story menu.
2411 WID_TN_GOAL
= ::WID_TN_GOAL
, ///< Goal menu.
2412 WID_TN_GRAPHS
= ::WID_TN_GRAPHS
, ///< Graph menu.
2413 WID_TN_LEAGUE
= ::WID_TN_LEAGUE
, ///< Company league menu.
2414 WID_TN_INDUSTRIES
= ::WID_TN_INDUSTRIES
, ///< Industry menu.
2415 WID_TN_VEHICLE_START
= ::WID_TN_VEHICLE_START
, ///< Helper for the offset of the vehicle menus.
2416 WID_TN_TRAINS
= ::WID_TN_TRAINS
, ///< Train menu.
2417 WID_TN_ROADVEHS
= ::WID_TN_ROADVEHS
, ///< Road vehicle menu.
2418 WID_TN_SHIPS
= ::WID_TN_SHIPS
, ///< Ship menu.
2419 WID_TN_AIRCRAFTS
= ::WID_TN_AIRCRAFTS
, ///< Aircraft menu.
2420 WID_TN_ZOOM_IN
= ::WID_TN_ZOOM_IN
, ///< Zoom in the main viewport.
2421 WID_TN_ZOOM_OUT
= ::WID_TN_ZOOM_OUT
, ///< Zoom out the main viewport.
2422 WID_TN_BUILDING_TOOLS_START
= ::WID_TN_BUILDING_TOOLS_START
, ///< Helper for the offset of the building tools
2423 WID_TN_RAILS
= ::WID_TN_RAILS
, ///< Rail building menu.
2424 WID_TN_ROADS
= ::WID_TN_ROADS
, ///< Road building menu.
2425 WID_TN_WATER
= ::WID_TN_WATER
, ///< Water building toolbar.
2426 WID_TN_AIR
= ::WID_TN_AIR
, ///< Airport building toolbar.
2427 WID_TN_LANDSCAPE
= ::WID_TN_LANDSCAPE
, ///< Landscaping toolbar.
2428 WID_TN_MUSIC_SOUND
= ::WID_TN_MUSIC_SOUND
, ///< Music/sound configuration menu.
2429 WID_TN_MESSAGES
= ::WID_TN_MESSAGES
, ///< Messages menu.
2430 WID_TN_HELP
= ::WID_TN_HELP
, ///< Help menu.
2431 WID_TN_SWITCH_BAR
= ::WID_TN_SWITCH_BAR
, ///< Only available when toolbar has been split to switch between different subsets.
2432 WID_TN_END
= ::WID_TN_END
, ///< Helper for knowing the amount of widgets.
2435 /** Widgets of the #ScenarioEditorToolbarWindow class. */
2436 enum ToolbarEditorWidgets
{
2437 WID_TE_PAUSE
= ::WID_TE_PAUSE
, ///< Pause the game.
2438 WID_TE_FAST_FORWARD
= ::WID_TE_FAST_FORWARD
, ///< Fast forward the game.
2439 WID_TE_SETTINGS
= ::WID_TE_SETTINGS
, ///< Settings menu.
2440 WID_TE_SAVE
= ::WID_TE_SAVE
, ///< Save menu.
2441 WID_TE_SPACER
= ::WID_TE_SPACER
, ///< Spacer with "scenario editor" text.
2442 WID_TE_DATE
= ::WID_TE_DATE
, ///< The date of the scenario.
2443 WID_TE_DATE_BACKWARD
= ::WID_TE_DATE_BACKWARD
, ///< Reduce the date of the scenario.
2444 WID_TE_DATE_FORWARD
= ::WID_TE_DATE_FORWARD
, ///< Increase the date of the scenario.
2445 WID_TE_SMALL_MAP
= ::WID_TE_SMALL_MAP
, ///< Small map menu.
2446 WID_TE_ZOOM_IN
= ::WID_TE_ZOOM_IN
, ///< Zoom in the main viewport.
2447 WID_TE_ZOOM_OUT
= ::WID_TE_ZOOM_OUT
, ///< Zoom out the main viewport.
2448 WID_TE_LAND_GENERATE
= ::WID_TE_LAND_GENERATE
, ///< Land generation.
2449 WID_TE_TOWN_GENERATE
= ::WID_TE_TOWN_GENERATE
, ///< Town building window.
2450 WID_TE_INDUSTRY
= ::WID_TE_INDUSTRY
, ///< Industry building window.
2451 WID_TE_ROADS
= ::WID_TE_ROADS
, ///< Road building menu.
2452 WID_TE_WATER
= ::WID_TE_WATER
, ///< Water building toolbar.
2453 WID_TE_TREES
= ::WID_TE_TREES
, ///< Tree building toolbar.
2454 WID_TE_SIGNS
= ::WID_TE_SIGNS
, ///< Sign building.
2455 WID_TE_DATE_PANEL
= ::WID_TE_DATE_PANEL
, ///< Container for the date widgets.
2456 /* The following three need to have the same actual widget number as the normal toolbar due to shared code. */
2457 WID_TE_MUSIC_SOUND
= ::WID_TE_MUSIC_SOUND
, ///< Music/sound configuration menu.
2458 WID_TE_HELP
= ::WID_TE_HELP
, ///< Help menu.
2459 WID_TE_SWITCH_BAR
= ::WID_TE_SWITCH_BAR
, ///< Only available when toolbar has been split to switch between different subsets.
2462 /* automatically generated from ../../widgets/town_widget.h */
2463 /** Widgets of the #TownDirectoryWindow class. */
2464 enum TownDirectoryWidgets
{
2465 WID_TD_SORT_ORDER
= ::WID_TD_SORT_ORDER
, ///< Direction of sort dropdown.
2466 WID_TD_SORT_CRITERIA
= ::WID_TD_SORT_CRITERIA
, ///< Criteria of sort dropdown.
2467 WID_TD_LIST
= ::WID_TD_LIST
, ///< List of towns.
2468 WID_TD_SCROLLBAR
= ::WID_TD_SCROLLBAR
, ///< Scrollbar for the town list.
2469 WID_TD_WORLD_POPULATION
= ::WID_TD_WORLD_POPULATION
, ///< The world's population.
2472 /** Widgets of the #TownAuthorityWindow class. */
2473 enum TownAuthorityWidgets
{
2474 WID_TA_CAPTION
= ::WID_TA_CAPTION
, ///< Caption of window.
2475 WID_TA_RATING_INFO
= ::WID_TA_RATING_INFO
, ///< Overview with ratings for each company.
2476 WID_TA_COMMAND_LIST
= ::WID_TA_COMMAND_LIST
, ///< List of commands for the player.
2477 WID_TA_SCROLLBAR
= ::WID_TA_SCROLLBAR
, ///< Scrollbar of the list of commands.
2478 WID_TA_ACTION_INFO
= ::WID_TA_ACTION_INFO
, ///< Additional information about the action.
2479 WID_TA_EXECUTE
= ::WID_TA_EXECUTE
, ///< Do-it button.
2482 /** Widgets of the #TownViewWindow class. */
2483 enum TownViewWidgets
{
2484 WID_TV_CAPTION
= ::WID_TV_CAPTION
, ///< Caption of window.
2485 WID_TV_VIEWPORT
= ::WID_TV_VIEWPORT
, ///< View of the center of the town.
2486 WID_TV_INFO
= ::WID_TV_INFO
, ///< General information about the town.
2487 WID_TV_CENTER_VIEW
= ::WID_TV_CENTER_VIEW
, ///< Center the main view on this town.
2488 WID_TV_SHOW_AUTHORITY
= ::WID_TV_SHOW_AUTHORITY
, ///< Show the town authority window.
2489 WID_TV_CHANGE_NAME
= ::WID_TV_CHANGE_NAME
, ///< Change the name of this town.
2490 WID_TV_EXPAND
= ::WID_TV_EXPAND
, ///< Expand this town (scenario editor only).
2491 WID_TV_DELETE
= ::WID_TV_DELETE
, ///< Delete this town (scenario editor only).
2494 /** Widgets of the #FoundTownWindow class. */
2495 enum TownFoundingWidgets
{
2496 WID_TF_NEW_TOWN
= ::WID_TF_NEW_TOWN
, ///< Create a new town.
2497 WID_TF_RANDOM_TOWN
= ::WID_TF_RANDOM_TOWN
, ///< Randomly place a town.
2498 WID_TF_MANY_RANDOM_TOWNS
= ::WID_TF_MANY_RANDOM_TOWNS
, ///< Randomly place many towns.
2499 WID_TF_TOWN_NAME_EDITBOX
= ::WID_TF_TOWN_NAME_EDITBOX
, ///< Editor for the town name.
2500 WID_TF_TOWN_NAME_RANDOM
= ::WID_TF_TOWN_NAME_RANDOM
, ///< Generate a random town name.
2501 WID_TF_SIZE_SMALL
= ::WID_TF_SIZE_SMALL
, ///< Selection for a small town.
2502 WID_TF_SIZE_MEDIUM
= ::WID_TF_SIZE_MEDIUM
, ///< Selection for a medium town.
2503 WID_TF_SIZE_LARGE
= ::WID_TF_SIZE_LARGE
, ///< Selection for a large town.
2504 WID_TF_SIZE_RANDOM
= ::WID_TF_SIZE_RANDOM
, ///< Selection for a randomly sized town.
2505 WID_TF_CITY
= ::WID_TF_CITY
, ///< Selection for the town's city state.
2506 WID_TF_LAYOUT_ORIGINAL
= ::WID_TF_LAYOUT_ORIGINAL
, ///< Selection for the original town layout.
2507 WID_TF_LAYOUT_BETTER
= ::WID_TF_LAYOUT_BETTER
, ///< Selection for the better town layout.
2508 WID_TF_LAYOUT_GRID2
= ::WID_TF_LAYOUT_GRID2
, ///< Selection for the 2x2 grid town layout.
2509 WID_TF_LAYOUT_GRID3
= ::WID_TF_LAYOUT_GRID3
, ///< Selection for the 3x3 grid town layout.
2510 WID_TF_LAYOUT_RANDOM
= ::WID_TF_LAYOUT_RANDOM
, ///< Selection for a randomly chosen town layout.
2513 /* automatically generated from ../../widgets/transparency_widget.h */
2514 /** Widgets of the #TransparenciesWindow class. */
2515 enum TransparencyToolbarWidgets
{
2517 WID_TT_BEGIN
= ::WID_TT_BEGIN
, ///< First toggle button.
2518 WID_TT_SIGNS
= ::WID_TT_SIGNS
, ///< Signs background transparency toggle button.
2519 WID_TT_TREES
= ::WID_TT_TREES
, ///< Trees transparency toggle button.
2520 WID_TT_HOUSES
= ::WID_TT_HOUSES
, ///< Houses transparency toggle button.
2521 WID_TT_INDUSTRIES
= ::WID_TT_INDUSTRIES
, ///< industries transparency toggle button.
2522 WID_TT_BUILDINGS
= ::WID_TT_BUILDINGS
, ///< Company buildings and structures transparency toggle button.
2523 WID_TT_BRIDGES
= ::WID_TT_BRIDGES
, ///< Bridges transparency toggle button.
2524 WID_TT_STRUCTURES
= ::WID_TT_STRUCTURES
, ///< Object structure transparency toggle button.
2525 WID_TT_CATENARY
= ::WID_TT_CATENARY
, ///< Catenary transparency toggle button.
2526 WID_TT_LOADING
= ::WID_TT_LOADING
, ///< Loading indicators transparency toggle button.
2527 WID_TT_END
= ::WID_TT_END
, ///< End of toggle buttons.
2529 /* Panel with buttons for invisibility */
2530 WID_TT_BUTTONS
= ::WID_TT_BUTTONS
, ///< Panel with 'invisibility' buttons.
2533 /* automatically generated from ../../widgets/tree_widget.h */
2534 /** Widgets of the #BuildTreesWindow class. */
2535 enum BuildTreesWidgets
{
2536 WID_BT_TYPE_11
= ::WID_BT_TYPE_11
, ///< Tree 1st column 1st row.
2537 WID_BT_TYPE_12
= ::WID_BT_TYPE_12
, ///< Tree 1st column 2nd row.
2538 WID_BT_TYPE_13
= ::WID_BT_TYPE_13
, ///< Tree 1st column 3rd row.
2539 WID_BT_TYPE_14
= ::WID_BT_TYPE_14
, ///< Tree 1st column 4th row.
2540 WID_BT_TYPE_21
= ::WID_BT_TYPE_21
, ///< Tree 2st column 1st row.
2541 WID_BT_TYPE_22
= ::WID_BT_TYPE_22
, ///< Tree 2st column 2nd row.
2542 WID_BT_TYPE_23
= ::WID_BT_TYPE_23
, ///< Tree 2st column 3rd row.
2543 WID_BT_TYPE_24
= ::WID_BT_TYPE_24
, ///< Tree 2st column 4th row.
2544 WID_BT_TYPE_31
= ::WID_BT_TYPE_31
, ///< Tree 3st column 1st row.
2545 WID_BT_TYPE_32
= ::WID_BT_TYPE_32
, ///< Tree 3st column 2nd row.
2546 WID_BT_TYPE_33
= ::WID_BT_TYPE_33
, ///< Tree 3st column 3rd row.
2547 WID_BT_TYPE_34
= ::WID_BT_TYPE_34
, ///< Tree 3st column 4th row.
2548 WID_BT_TYPE_RANDOM
= ::WID_BT_TYPE_RANDOM
, ///< Button to build random type of tree.
2549 WID_BT_MANY_RANDOM
= ::WID_BT_MANY_RANDOM
, ///< Button to build many random trees.
2552 /* automatically generated from ../../widgets/vehicle_widget.h */
2553 /** Widgets of the #VehicleViewWindow class. */
2554 enum VehicleViewWidgets
{
2555 WID_VV_CAPTION
= ::WID_VV_CAPTION
, ///< Caption of window.
2556 WID_VV_VIEWPORT
= ::WID_VV_VIEWPORT
, ///< Viewport widget.
2557 WID_VV_START_STOP
= ::WID_VV_START_STOP
, ///< Start or stop this vehicle, and show information about the current state.
2558 WID_VV_CENTER_MAIN_VIEW
= ::WID_VV_CENTER_MAIN_VIEW
, ///< Center the main view on this vehicle.
2559 WID_VV_GOTO_DEPOT
= ::WID_VV_GOTO_DEPOT
, ///< Order this vehicle to go to the depot.
2560 WID_VV_REFIT
= ::WID_VV_REFIT
, ///< Open the refit window.
2561 WID_VV_SHOW_ORDERS
= ::WID_VV_SHOW_ORDERS
, ///< Show the orders of this vehicle.
2562 WID_VV_SHOW_DETAILS
= ::WID_VV_SHOW_DETAILS
, ///< Show details of this vehicle.
2563 WID_VV_CLONE
= ::WID_VV_CLONE
, ///< Clone this vehicle.
2564 WID_VV_SELECT_DEPOT_CLONE
= ::WID_VV_SELECT_DEPOT_CLONE
, ///< Selection widget between 'goto depot', and 'clone vehicle' buttons.
2565 WID_VV_SELECT_REFIT_TURN
= ::WID_VV_SELECT_REFIT_TURN
, ///< Selection widget between 'refit' and 'turn around' buttons.
2566 WID_VV_TURN_AROUND
= ::WID_VV_TURN_AROUND
, ///< Turn this vehicle around.
2567 WID_VV_FORCE_PROCEED
= ::WID_VV_FORCE_PROCEED
, ///< Force this vehicle to pass a signal at danger.
2570 /** Widgets of the #RefitWindow class. */
2571 enum VehicleRefitWidgets
{
2572 WID_VR_CAPTION
= ::WID_VR_CAPTION
, ///< Caption of window.
2573 WID_VR_VEHICLE_PANEL_DISPLAY
= ::WID_VR_VEHICLE_PANEL_DISPLAY
, ///< Display with a representation of the vehicle to refit.
2574 WID_VR_SHOW_HSCROLLBAR
= ::WID_VR_SHOW_HSCROLLBAR
, ///< Selection widget for the horizontal scrollbar.
2575 WID_VR_HSCROLLBAR
= ::WID_VR_HSCROLLBAR
, ///< Horizontal scrollbar or the vehicle display.
2576 WID_VR_SELECT_HEADER
= ::WID_VR_SELECT_HEADER
, ///< Header with question about the cargo to carry.
2577 WID_VR_MATRIX
= ::WID_VR_MATRIX
, ///< Options to refit to.
2578 WID_VR_SCROLLBAR
= ::WID_VR_SCROLLBAR
, ///< Scrollbar for the refit options.
2579 WID_VR_INFO
= ::WID_VR_INFO
, ///< Information about the currently selected refit option.
2580 WID_VR_REFIT
= ::WID_VR_REFIT
, ///< Perform the refit.
2583 /** Widgets of the #VehicleDetailsWindow class. */
2584 enum VehicleDetailsWidgets
{
2585 WID_VD_CAPTION
= ::WID_VD_CAPTION
, ///< Caption of window.
2586 WID_VD_TRIP_HISTORY
= ::WID_VD_TRIP_HISTORY
, ///< Show the trip history of vehicle.
2587 WID_VD_RENAME_VEHICLE
= ::WID_VD_RENAME_VEHICLE
, ///< Rename this vehicle.
2588 WID_VD_TOP_DETAILS
= ::WID_VD_TOP_DETAILS
, ///< Panel with generic details.
2589 WID_VD_INCREASE_SERVICING_INTERVAL
= ::WID_VD_INCREASE_SERVICING_INTERVAL
, ///< Increase the servicing interval.
2590 WID_VD_DECREASE_SERVICING_INTERVAL
= ::WID_VD_DECREASE_SERVICING_INTERVAL
, ///< Decrease the servicing interval.
2591 WID_VD_SERVICE_INTERVAL_DROPDOWN
= ::WID_VD_SERVICE_INTERVAL_DROPDOWN
, ///< Dropdown to select default/days/percent service interval.
2592 WID_VD_SERVICING_INTERVAL
= ::WID_VD_SERVICING_INTERVAL
, ///< Information about the servicing interval.
2593 WID_VD_MIDDLE_DETAILS
= ::WID_VD_MIDDLE_DETAILS
, ///< Details for non-trains.
2594 WID_VD_MATRIX
= ::WID_VD_MATRIX
, ///< List of details for trains.
2595 WID_VD_SCROLLBAR
= ::WID_VD_SCROLLBAR
, ///< Scrollbar for train details.
2596 WID_VD_DETAILS_CARGO_CARRIED
= ::WID_VD_DETAILS_CARGO_CARRIED
, ///< Show carried cargo per part of the train.
2597 WID_VD_DETAILS_TRAIN_VEHICLES
= ::WID_VD_DETAILS_TRAIN_VEHICLES
, ///< Show all parts of the train with their description.
2598 WID_VD_DETAILS_CAPACITY_OF_EACH
= ::WID_VD_DETAILS_CAPACITY_OF_EACH
, ///< Show the capacity of all train parts.
2599 WID_VD_DETAILS_TOTAL_CARGO
= ::WID_VD_DETAILS_TOTAL_CARGO
, ///< Show the capacity and carried cargo amounts aggregated per cargo of the train.
2602 /** Widgets of the #VehicleListWindow class. */
2603 enum VehicleListWidgets
{
2604 WID_VL_CAPTION
= ::WID_VL_CAPTION
, ///< Caption of window.
2605 WID_VL_SORT_ORDER
= ::WID_VL_SORT_ORDER
, ///< Sort order.
2606 WID_VL_SORT_BY_PULLDOWN
= ::WID_VL_SORT_BY_PULLDOWN
, ///< Sort by dropdown list.
2607 WID_VL_LIST
= ::WID_VL_LIST
, ///< List of the vehicles.
2608 WID_VL_SCROLLBAR
= ::WID_VL_SCROLLBAR
, ///< Scrollbar for the list.
2609 WID_VL_HIDE_BUTTONS
= ::WID_VL_HIDE_BUTTONS
, ///< Selection to hide the buttons.
2610 WID_VL_AVAILABLE_VEHICLES
= ::WID_VL_AVAILABLE_VEHICLES
, ///< Available vehicles.
2611 WID_VL_MANAGE_VEHICLES_DROPDOWN
= ::WID_VL_MANAGE_VEHICLES_DROPDOWN
, ///< Manage vehicles dropdown list.
2612 WID_VL_STOP_ALL
= ::WID_VL_STOP_ALL
, ///< Stop all button.
2613 WID_VL_START_ALL
= ::WID_VL_START_ALL
, ///< Start all button.
2616 /* automatically generated from ../../widgets/viewport_widget.h */
2617 /** Widgets of the #ExtraViewportWindow class. */
2618 enum ExtraViewportWidgets
{
2619 WID_EV_CAPTION
= ::WID_EV_CAPTION
, ///< Caption of window.
2620 WID_EV_VIEWPORT
= ::WID_EV_VIEWPORT
, ///< The viewport.
2621 WID_EV_ZOOM_IN
= ::WID_EV_ZOOM_IN
, ///< Zoom in.
2622 WID_EV_ZOOM_OUT
= ::WID_EV_ZOOM_OUT
, ///< Zoom out.
2623 WID_EV_MAIN_TO_VIEW
= ::WID_EV_MAIN_TO_VIEW
, ///< Center the view of this viewport on the main view.
2624 WID_EV_VIEW_TO_MAIN
= ::WID_EV_VIEW_TO_MAIN
, ///< Center the main view on the view of this viewport.
2627 /* automatically generated from ../../widgets/waypoint_widget.h */
2628 /** Widgets of the #WaypointWindow class. */
2629 enum WaypointWidgets
{
2630 WID_W_CAPTION
= ::WID_W_CAPTION
, ///< Caption of window.
2631 WID_W_VIEWPORT
= ::WID_W_VIEWPORT
, ///< The viewport on this waypoint.
2632 WID_W_CENTER_VIEW
= ::WID_W_CENTER_VIEW
, ///< Center the main view on this waypoint.
2633 WID_W_RENAME
= ::WID_W_RENAME
, ///< Rename this waypoint.
2634 WID_W_SHOW_VEHICLES
= ::WID_W_SHOW_VEHICLES
, ///< Show the vehicles visiting this waypoint.
2640 #endif /* SCRIPT_WINDOW_HPP */