|
OpenTTD Source 20260531-master-g0e951f3528
|
Types related to windows. More...
Go to the source code of this file.
Data Structures | |
| struct | WindowNumber |
| Number to differentiate different windows of the same class. More... | |
Typedefs | |
| using | WidgetID = int |
| Widget ID. | |
Variables | |
| static constexpr WidgetID | INVALID_WIDGET = -1 |
| An invalid widget index. | |
Types related to windows.
Definition in file window_type.h.
| using WidgetID = int |
Widget ID.
Even though the ID is signed, actual IDs must be non-negative. Negative IDs are used for special cases, like denoting 'no widget'.
Definition at line 21 of file window_type.h.
|
strong |
Window numbers for PopupQuery windows.
| Enumerator | |
|---|---|
| Default | Query popup confirm. |
| Bootstrap | Query popup confirm for bootstrap. |
Definition at line 42 of file window_type.h.
| enum EventState : uint8_t |
State of handling an event.
| Enumerator | |
|---|---|
| ES_HANDLED | The passed event is handled. |
| ES_NOT_HANDLED | The passed event is not handled. |
Definition at line 816 of file window_type.h.
| enum GameOptionsInvalidationData : uint8_t |
Data value for Window::OnInvalidateData() of windows with class ::WindowClass::GameOptions.
Definition at line 750 of file window_type.h.
|
strong |
Window numbers for GameOptions windows.
| Enumerator | |
|---|---|
| AI | AI settings. |
| GS | GS settings. |
| About | About window. |
| NewGRFState | NewGRF settings. |
| GameOptions | Game options. |
Definition at line 27 of file window_type.h.
|
strong |
Window number for network status windows.
| Enumerator | |
|---|---|
| Join | Network join status. |
| ContentDownload | Network content download status. |
Definition at line 55 of file window_type.h.
|
strong |
Window numbers for network windows.
| Enumerator | |
|---|---|
| Game | Network game window. |
| ContentList | Network content list. |
| StartServer | Network start server. |
Definition at line 48 of file window_type.h.
|
strong |
Window numbers for QueryString windows.
| Enumerator | |
|---|---|
| Default | Query string. |
| Sign | Query string for signs. |
Definition at line 36 of file window_type.h.
|
strong |
Window classes.
| Enumerator | |
|---|---|
| None | No window, redirects to WindowClass::MainWindow. |
| MainWindow | Main window; Window numbers:
|
| MainToolbar | Main toolbar (the long bar at the top); Window numbers: |
| Statusbar | Statusbar (at the bottom of your screen); Window numbers:
|
| BuildToolbar | Build toolbar; Window numbers: |
| ScenarioBuildToolbar | Scenario build toolbar; Window numbers: |
| BuildTrees | Build trees toolbar; Window numbers: |
| TransparencyToolbar | Transparency toolbar; Window numbers: |
| BuildSignal | Build signal toolbar; Window numbers: |
| SmallMap | Small map; Window numbers:
|
| ErrorMessage | Error message; Window numbers: |
| ToolTips | Tooltip window; Window numbers:
|
| QueryString | Query string window; Window numbers: |
| ConfirmPopupQuery | Popup with confirm question; Window numbers: |
| GoalQuestion | Popup with a set of buttons, designed to ask the user a question from a GameScript. Window numbers:
|
| SaveLoad | Saveload window; Window numbers:
|
| LandInfo | Land info window; Window numbers:
|
| DropdownMenu | Drop down menu; Window numbers: |
| OnScreenKeyboard | On Screen Keyboard; Window numbers: |
| SetDate | Set date; Window numbers: |
| ScriptSettings | Script settings; Window numbers: |
| NewGRFParameters | NewGRF parameters; Window numbers: |
| Textfile | textfile; Window numbers:
|
| TownAuthority | Town authority; Window numbers:
|
| VehicleDetails | Vehicle details; Window numbers: |
| VehicleRefit | Vehicle refit; Window numbers: |
| VehicleOrders | Vehicle orders; Window numbers: |
| ReplaceVehicle | Replace vehicle window; Window numbers: |
| VehicleTimetable | Vehicle timetable; Window numbers: |
| CompanyLivery | Company colour selection; Window numbers:
|
| CompanyManagerFace | Alter company face window; Window numbers:
|
| JoinStation | Select station (when joining stations); Window numbers: |
| News | News window; Window numbers:
|
| TownDirectory | Town directory; Window numbers: |
| SubsidyList | Subsidies list; Window numbers: |
| IndustryDirectory | Industry directory; Window numbers: |
| MessageHistory | News history list; Window numbers: |
| SignList | Sign list; Window numbers:
|
| ScriptList | Scripts list; Window numbers: |
| GoalList | Goals list; Window numbers:
|
| StoryBook | Story book; Window numbers:
|
| StationList | Station list; Window numbers:
|
| TrainList | Trains list; Window numbers:
|
| RoadVehicleList | Road vehicle list; Window numbers:
|
| ShipList | Ships list; Window numbers:
|
| AircraftList | Aircraft list; Window numbers:
|
| TownView | Town view; Window numbers:
|
| VehicleView | Vehicle view; Window numbers: |
| StationView | Station view; Window numbers:
|
| VehicleDepot | Depot view; Window numbers: |
| WaypointView | Waypoint view; Window numbers:
|
| IndustryView | Industry view; Window numbers:
|
| Company | Company view; Window numbers:
|
| BuildObject | Build object; Window numbers: |
| BuildHouse | Build house; Window numbers: |
| BuildVehicle | Build vehicle; Window numbers: |
| BuildBridge | Build bridge; Window numbers: |
| BuildStation | Build station; Window numbers: |
| BuildBusStation | Build bus station; Window numbers: |
| BuildTruckStation | Build truck station; Window numbers: |
| BuildDepot | Build depot; Window numbers: |
| BuildWaypoint | Build waypoint; Window numbers: |
| FoundTown | Found a town; Window numbers: |
| BuildIndustry | Build industry; Window numbers: |
| SelectGame | Select game window; Window numbers: |
| ScenarioGenerateLandscape | Landscape generation (in Scenario Editor); Window numbers: |
| GenerateLandscape | Generate landscape (newgame); Window numbers:
|
| ModalProgress | Progress report of landscape generation; Window numbers: |
| Network | Network window; Window numbers: |
| NetworkClientList | Client list; Window numbers: |
| NetworkStatus | Network status window; Window numbers: |
| NetworkAskRelay | Network ask relay window; Window numbers: |
| NetworkAskSurvey | Network ask survey window; Window numbers: |
| NetworkChat | Chatbox; Window numbers: |
| IndustryCargoes | Industry cargoes chain; Window numbers: |
| GraphLegend | Legend for graphs; Window numbers: |
| Finances | Finances of a company; Window numbers:
|
| IncomeGraph | Income graph; Window numbers:
|
| OperatingProfitGraph | Operating profit graph; Window numbers:
|
| DeliveredCargoGraph | Delivered cargo graph; Window numbers:
|
| PerformanceGraph | Performance history graph; Window numbers:
|
| CompanyValueGraph | Company value graph; Window numbers:
|
| CompanyLeague | Company league window; Window numbers:
|
| CargoPaymentRatesGraph | Payment rates graph; Window numbers:
|
| PerformanceDetail | Performance detail window; Window numbers: |
| IndustryProductionGraph | Industry production history graph; Window numbers:
|
| TownCargoGraph | Town cargo history graph; Window numbers:
|
| CompanyInfrastructure | Company infrastructure overview; Window numbers:
|
| BuyCompany | Buyout company (merger); Window numbers:
|
| EnginePreview | Engine preview window; Window numbers: |
| Music | Music window; Window numbers:
|
| MusicTrackSelection | Music track selection; Window numbers: |
| GameOptions | Game options window; Window numbers: |
| CustomCurrenty | Custom currency; Window numbers: |
| Cheat | Cheat window; Window numbers:
|
| ExtraViewport | Extra viewport; Window numbers:
|
| Console | Console; Window numbers:
|
| Bootstrap | Bootstrap; Window numbers: |
| Highscore | Highscore; Window numbers:
|
| Endscreen | Endscreen; Window numbers:
|
| ScriptDebug | Script debug window; Window numbers:
|
| NewGRFInspect | NewGRF inspect (debug); Window numbers:
|
| SpriteAligner | Sprite aligner (debug); Window numbers: |
| LinkGraphLegend | Linkgraph legend; Window numbers:
|
| SavePreset | Save preset; Window numbers: |
| FramerateDisplay | Framerate display; Window numbers:
|
| FrametimeGraph | Frame time graph; Window numbers: |
| Screenshot | Screenshot window; Window numbers:
|
| Help | Help and manuals window; Window numbers: |
| Invalid | Invalid window. |
Definition at line 61 of file window_type.h.
|
staticconstexpr |
An invalid widget index.
Definition at line 24 of file window_type.h.
Referenced by GetWidgetFromPos(), HandleActiveWidget(), MakeWindowNWidgetTree(), NWidget(), NWidgetSpacer::NWidgetSpacer(), DepotWindow::OnDragDrop(), DepotWindow::OnPlaceObjectAbort(), and Window::Window().