maintenance_station_eow¶
Source: base/tealdef/gui/entity_window/maintenance_station/maintenance_station_eow.d.tl
Notes
Plugin types of the maintenance station (maintenance building) window (maintenance_station_eow.script.tl).
MaintenanceStationEow¶
record global base/tealdef/gui/entity_window/maintenance_station/maintenance_station_eow.d.tl:3
global record MaintenanceStationEow
Load: local maintenance_station_eow = ug_require "/gui/entity_window/maintenance_station/maintenance_station_eow.script.tl"
Notes
Plugin types of the maintenance station window (depots and buildings with a maintenance pool).
Fields
| Name | Type | Description |
|---|---|---|
MaintenanceStationEowExtensionPoint |
ExtensionPoint<MaintenanceStationWidgetPluginParams> |
Extension point of the maintenance station window; register plugins with a resource of type "react-plugin ::MaintenanceStationEowExtensionPoint". used 1× in the base game |
MaintenanceStationMaintenancePoolPlugin |
Recipe<MaintenanceStationEow.MaintenanceStationWidgetPluginParams> |
"Maintenance Pool" card with the pool usage bar; registered with order 20. |
MaintenanceStationBalancePlugin |
Recipe<MaintenanceStationEow.MaintenanceStationWidgetPluginParams> |
Card with the yearly vehicle maintenance balance of the station; registered with order 30 and condition conditionMaintenanceStationBalance. |
MaintenanceStationVehiclesPlugin |
Recipe<MaintenanceStationEow.MaintenanceStationWidgetPluginParams> |
"Maintained Vehicles" (or "Vehicles") card with a sortable table of the vehicles assigned to the station and their condition; registered with order 50. |
MaintenanceStationStatisticsPlugin |
Recipe<MaintenanceStationEow.MaintenanceStationWidgetPluginParams> |
"Statistics" chart of the maximum and average pool usage (maxPoolUsage, averagePoolUsage logs); registered with order 40 and condition conditionMaintenanceStationStatistics. |
Functions
conditionMaintenanceStationBalance(extensionParams : MaintenanceStationEow.MaintenanceStationWidgetPluginParams) : boolean base/tealdef/gui/entity_window/maintenance_station/maintenance_station_eow.d.tl:26
Call as maintenance_station_eow.conditionMaintenanceStationBalance
Notes
Plugin condition of MaintenanceStationBalancePlugin; true if the station is owned by the player, state.constructionHasAccount is set and state.infiniteMoney is not.
Returns boolean
conditionMaintenanceStationStatistics(extensionParams : MaintenanceStationEow.MaintenanceStationWidgetPluginParams) : boolean base/tealdef/gui/entity_window/maintenance_station/maintenance_station_eow.d.tl:31
Call as maintenance_station_eow.conditionMaintenanceStationStatistics
Notes
Plugin condition; true if the station is owned by the player and has a logbook.
Returns boolean
MaintenanceStationEow.MaintenanceStationEowState¶
record base/tealdef/gui/entity_window/maintenance_station/maintenance_station_eow.d.tl:4
record MaintenanceStationEowState
Notes
State of the maintenance station window, recomputed every step and passed to the plugins.
Used in the base game: 2 times in 1 file
base/content/gui/gui/entity_window/maintenance_station/maintenance_station.tl:19
Fields
| Name | Type | Description |
|---|---|---|
poolSize |
integer |
Maintenance pool size of the depot (VEHICLE_DEPOT.maintenancePool), 0 without depot component. |
hasDepot |
boolean |
True if the entity is a depot with in or out nodes (vehicles can be bought there). |
hasLogbook |
boolean |
True if the entity has a LOG_BOOK component. |
constructionEntity |
Engine.Entity |
Construction of the station; nil if it is owned by the player but cannot be modified. Used for the "Configure" button. |
constructionHasAccount |
boolean |
Required by conditionMaintenanceStationBalance; the base game window does not set it, so the balance card stays hidden. |
constructionTimeBuilt |
integer |
|
constructionIsModifiable |
boolean |
|
infiniteMoney |
boolean |
Hides the balance card in conditionMaintenanceStationBalance when true; the base game window does not set it. |
MaintenanceStationEow.MaintenanceStationWidgetPluginParams¶
record base/tealdef/gui/entity_window/maintenance_station/maintenance_station_eow.d.tl:16
record MaintenanceStationWidgetPluginParams is EowExtensionUtil.IEowWidgetsExtensionParams
Notes
Parameters passed to the plugins of the maintenance station window.
Used in the base game: 7 times in 2 files
base/content/gui/gui/entity_window/maintenance_station/maintenance_station.tl:50
base/content/gui/gui/entity_window/maintenance_station/maintenance_station_eow.script.tl:143
Fields
| Name | Type | Description |
|---|---|---|
state |
MaintenanceStationEowState |
Window state. |