Skip to content

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" as LayerPublicTransport

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.In game Happiness 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.

Used in the base game: 1 time in 1 file

base/content/gui/gui/entity_window/town/town.tl:996

layerConfig = layer_public_transport.getConfig()

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.

Used in the base game: 1 time in 1 file

base/content/gui/gui/entity_window/entity_window_hud.tl:609

filter = layer_public_transport.getHudIconPreFilter()