layer_public_transport¶
Source: base/tealdef/gui/layers/layer_public_transport.d.tl
Notes
The "Passenger Satisfaction" map layer (button menu.layers.publicTransportButton).
LayerPublicTransport¶
record global base/tealdef/gui/layers/layer_public_transport.d.tl:3
global record LayerPublicTransport
Load: local layer_public_transport = ug_require "/gui/layers/layer_public_transport.tl"
Notes
The "Passenger Satisfaction" layer, which colors stations, waiting passengers and network edges by passenger satisfaction.
Fields
| Name | Type | Description |
|---|---|---|
Legend |
Recipe0 |
Recipe of the layer legend. used 1× in the base game |
Layer |
Recipe<LayersButtonRidge.LayerContentParam> |
Recipe of the layer window content. used 1× in the base game |
HudIconMaster |
Recipe2<Builtin.HudIconParam, LayersButtonRidge.HudIconUserParam> |
HUD icon recipe of the layer; town happiness rating, passengers in vehicles and unhappy waiting passengers at stations. used 1× in the base game |
Functions
getConfig() : LayerConfig base/tealdef/gui/layers/layer_public_transport.d.tl:4
Call as layer_public_transport.getConfig
Notes
Builds the layer config.
Returns LayerConfig: A new LayerConfig.
getHudIconPreFilter() : {Engine.ComponentType} base/tealdef/gui/layers/layer_public_transport.d.tl:7
Call as layer_public_transport.getHudIconPreFilter
Notes
Component types that get HUD icons in this layer.
Returns {Engine.ComponentType}: STATION_GROUP, TRANSPORT_VEHICLE and TOWN.