61enum class WindowClass : uint16_t {
793 operator int32_t()
const {
return value; }
799 template <
typename T>
requires (std::is_enum_v<T> || std::is_class_v<T>)
800 operator T()
const {
return static_cast<T>(
value); };
807 constexpr bool operator==(
const std::integral
auto &rhs)
const {
return this->value ==
static_cast<int32_t
>(rhs); }
A type is considered 'convertible through base()' when it has a 'base()' function that returns someth...
Concept for unifying the convert through 'base()' behaviour of several 'strong' types.
#define T
Climate temperate.
Type (helpers) for enums.
constexpr std::underlying_type_t< enum_type > to_underlying(enum_type e)
Implementation of std::to_underlying (from C++23).
constexpr bool is_scoped_enum_v
Implementation of std::is_scoped_enum_v (from C++23).
bool GenerateLandscape(uint8_t mode)
void BuildObject(ObjectType type, TileIndex tile, CompanyID owner=OWNER_NONE, struct Town *town=nullptr, uint8_t view=0)
Actually build the object.
std::vector< Train * > TrainList
Helper type for lists/vectors of trains.
std::vector< RoadVehicle * > RoadVehicleList
Helper type for lists/vectors of road vehicles.
std::set< Station *, StationCompare > StationList
List of stations.
Info about each of the cheats.
Data stored about a string that can be modified in the GUI.
Settings related to scripts.
WindowNumber(ConvertibleThroughBase auto value)
Create a WindowNumber with the given value.
constexpr bool operator==(const T &rhs) const
Compare the right hand side against our window number.
WindowNumber(T value)
Create a WindowNumber with the given value.
constexpr bool operator==(const ConvertibleThroughBase auto &rhs) const
Compare the right hand side against our window number.
WindowNumber(int32_t value)
Create a WindowNumber with the given value.
WindowNumber()=default
Create a WindowNumber 0.
int32_t value
The identifier of the window.
constexpr bool operator==(const std::integral auto &rhs) const
Compare the right hand side against our window number.
Data structure for an opened window.
EventState
State of handling an event.
@ ES_HANDLED
The passed event is handled.
@ ES_NOT_HANDLED
The passed event is not handled.
GameOptionsInvalidationData
Data value for Window::OnInvalidateData() of windows with class WindowClass::GameOptions.
@ GOID_NEWGRF_CURRENT_LOADED
The current list of active NewGRF has been loaded.
@ GOID_NEWGRF_RESCANNED
NewGRFs were just rescanned.
@ GOID_NEWGRF_CHANGES_MADE
Changes have been made to a given NewGRF either through the palette or its parameters.
@ GOID_NEWGRF_LIST_EDITED
List of active NewGRFs is being edited.
static constexpr WidgetID INVALID_WIDGET
An invalid widget index.
ConfirmPopupQueryWindowNumber
Window numbers for PopupQuery windows.
@ Bootstrap
Query popup confirm for bootstrap.
QueryStringWindowNumber
Window numbers for QueryString windows.
GameOptionsWindowNumber
Window numbers for GameOptions windows.
@ NewGRFState
NewGRF settings.
@ GameOptions
Game options.
@ ScriptDebug
Script debug window; Window numbers:
@ VehicleView
Vehicle view; Window numbers:
@ PerformanceGraph
Performance history graph; Window numbers:
@ ScriptList
Scripts list; Window numbers:
@ SpriteAligner
Sprite aligner (debug); Window numbers:
@ VehicleOrders
Vehicle orders; Window numbers:
@ NetworkStatus
Network status window; Window numbers:
@ CompanyValueGraph
Company value graph; Window numbers:
@ TownAuthority
Town authority; Window numbers:
@ NewGRFParameters
NewGRF parameters; Window numbers:
@ OnScreenKeyboard
On Screen Keyboard; Window numbers:
@ MessageHistory
News history list; Window numbers:
@ ScenarioBuildToolbar
Scenario build toolbar; Window numbers:
@ SetDate
Set date; Window numbers:
@ BuildToolbar
Build toolbar; Window numbers:
@ AircraftList
Aircraft list; Window numbers:
@ EnginePreview
Engine preview window; Window numbers:
@ GoalQuestion
Popup with a set of buttons, designed to ask the user a question from a GameScript.
@ TransparencyToolbar
Transparency toolbar; Window numbers:
@ SmallMap
Small map; Window numbers:
@ Screenshot
Screenshot window; Window numbers:
@ ToolTips
Tooltip window; Window numbers:
@ VehicleDetails
Vehicle details; Window numbers:
@ Finances
Finances of a company; Window numbers:
@ NewGRFInspect
NewGRF inspect (debug); Window numbers:
@ Music
Music window; Window numbers:
@ TownView
Town view; Window numbers:
@ NetworkAskSurvey
Network ask survey window; Window numbers:
@ BuildSignal
Build signal toolbar; Window numbers:
@ IncomeGraph
Income graph; Window numbers:
@ SelectGame
Select game window; Window numbers:
@ TownDirectory
Town directory; Window numbers:
@ Statusbar
Statusbar (at the bottom of your screen); Window numbers:
@ MainToolbar
Main toolbar (the long bar at the top); Window numbers:
@ StoryBook
Story book; Window numbers:
@ Help
Help and manuals window; Window numbers:
@ SavePreset
Save preset; Window numbers:
@ ModalProgress
Progress report of landscape generation; Window numbers:
@ BuildIndustry
Build industry; Window numbers:
@ FramerateDisplay
Framerate display; Window numbers:
@ BuildStation
Build station; Window numbers:
@ CargoPaymentRatesGraph
Payment rates graph; Window numbers:
@ FoundTown
Found a town; Window numbers:
@ IndustryProductionGraph
Industry production history graph; Window numbers:
@ BuildBridge
Build bridge; Window numbers:
@ VehicleTimetable
Vehicle timetable; Window numbers:
@ WaypointView
Waypoint view; Window numbers:
@ BuildBusStation
Build bus station; Window numbers:
@ BuildVehicle
Build vehicle; Window numbers:
@ BuyCompany
Buyout company (merger); Window numbers:
@ ScenarioGenerateLandscape
Landscape generation (in Scenario Editor); Window numbers:
@ FrametimeGraph
Frame time graph; Window numbers:
@ ShipList
Ships list; Window numbers:
@ DeliveredCargoGraph
Delivered cargo graph; Window numbers:
@ JoinStation
Select station (when joining stations); Window numbers:
@ TownCargoGraph
Town cargo history graph; Window numbers:
@ VehicleRefit
Vehicle refit; Window numbers:
@ ReplaceVehicle
Replace vehicle window; Window numbers:
@ LandInfo
Land info window; Window numbers:
@ Textfile
textfile; Window numbers:
@ StationView
Station view; Window numbers:
@ Highscore
Highscore; Window numbers:
@ LinkGraphLegend
Linkgraph legend; Window numbers:
@ VehicleDepot
Depot view; Window numbers:
@ NetworkAskRelay
Network ask relay window; Window numbers:
@ MusicTrackSelection
Music track selection; Window numbers:
@ BuildTrees
Build trees toolbar; Window numbers:
@ Console
Console; Window numbers:
@ IndustryView
Industry view; Window numbers:
@ CompanyLeague
Company league window; Window numbers:
@ Endscreen
Endscreen; Window numbers:
@ CompanyLivery
Company colour selection; Window numbers:
@ SubsidyList
Subsidies list; Window numbers:
@ BuildDepot
Build depot; Window numbers:
@ GoalList
Goals list; Window numbers:
@ BuildHouse
Build house; Window numbers:
@ News
News window; Window numbers:
@ NetworkChat
Chatbox; Window numbers:
@ IndustryCargoes
Industry cargoes chain; Window numbers:
@ IndustryDirectory
Industry directory; Window numbers:
@ GraphLegend
Legend for graphs; Window numbers:
@ Network
Network window; Window numbers:
@ ErrorMessage
Error message; Window numbers:
@ BuildWaypoint
Build waypoint; Window numbers:
@ CustomCurrenty
Custom currency; Window numbers:
@ DropdownMenu
Drop down menu; Window numbers:
@ BuildTruckStation
Build truck station; Window numbers:
@ ConfirmPopupQuery
Popup with confirm question; Window numbers:
@ ExtraViewport
Extra viewport; Window numbers:
@ PerformanceDetail
Performance detail window; Window numbers:
@ OperatingProfitGraph
Operating profit graph; Window numbers:
@ NetworkClientList
Client list; Window numbers:
NetworkStatusWindowNumber
Window number for network status windows.
@ Join
Network join status.
@ ContentDownload
Network content download status.
NetworkWindowNumber
Window numbers for network windows.
@ ContentList
Network content list.
@ StartServer
Network start server.