selector¶
Source: base/tealdef/gui/main/selector.d.tl
Notes
Result and parameter types of a line/station/vehicle selector. No base-game script uses
these types; the selectors of the game UI are built with SelectorReactUtil and
builtin.Selector.
LinePick¶
record global base/tealdef/gui/main/selector.d.tl:3
global record LinePick
No description in the game files yet.
Fields
| Name | Type | Description |
|---|---|---|
line |
Engine.Entity |
|
stop |
integer |
|
waypoint |
integer |
StationPick¶
record global base/tealdef/gui/main/selector.d.tl:9
global record StationPick
No description in the game files yet.
Fields
| Name | Type | Description |
|---|---|---|
stationGroupEntity |
Engine.Entity |
|
stationEntity |
Engine.Entity |
|
terminalNumber |
integer |
|
stationTerminal |
Type.StationTerminal |
SignalPick¶
record global base/tealdef/gui/main/selector.d.tl:16
global record SignalPick
No description in the game files yet.
Fields
| Name | Type | Description |
|---|---|---|
signalEntity |
Engine.Entity |
|
signalIndex |
integer |
SelectorPick¶
record global base/tealdef/gui/main/selector.d.tl:21
global record SelectorPick
No description in the game files yet.
Fields
| Name | Type | Description |
|---|---|---|
line |
LinePick |
|
station |
StationPick |
|
signal |
SignalPick |
|
transportVehicle |
Engine.Entity |
|
vehicleDepotEntity |
Engine.Entity |
SelectorTooltipConfig¶
record global base/tealdef/gui/main/selector.d.tl:29
global record SelectorTooltipConfig
No description in the game files yet.
Fields
| Name | Type | Description |
|---|---|---|
actionTooltipFn |
Recipe<any> |
|
actionTooltipParam |
any |
LineStationVehicleSelectorParams¶
record global base/tealdef/gui/main/selector.d.tl:34
global record LineStationVehicleSelectorParams
No description in the game files yet.
Fields
| Name | Type | Description |
|---|---|---|
parent |
ReactNodeRef |
|
lineViewerVisible |
boolean |
|
lineViewerSupport |
boolean |
|
showTerminals |
boolean |
|
lineDataLayer |
boolean |
|
lineSelectable |
boolean |
|
mouseCursor |
integer |
|
carriers |
{Carrier} |
|
highlightedEntities |
{Engine.Entity} |
|
highlightedTerminal |
StationTerminal |
|
highlightedTerminalNodes |
{{Engine.Entity, StationTerminal}} |
|
wholeLinePick |
boolean |
|
fallbackHover |
SelectorPick |
|
tooltipStateHolder |
ReactRefT<ReactStateT<SelectorTooltipConfig>> |
|
hudIconManagerConfig |
Builtin.HudIconManagerConfigParam |
Functions
onBack() base/tealdef/gui/main/selector.d.tl:36
No description in the game files yet.
onSelectNothing() : boolean base/tealdef/gui/main/selector.d.tl:37
No description in the game files yet.
Returns boolean
onSelect(SelectorPick) : boolean base/tealdef/gui/main/selector.d.tl:38
return true to reset hover state
Returns boolean
onSelectSecondary(SelectorPick) : boolean base/tealdef/gui/main/selector.d.tl:39
return true to reset hover state
Returns boolean
processMouseEvent(Gui.Mouse.Event) base/tealdef/gui/main/selector.d.tl:40
No description in the game files yet.
onHover(SelectorPick) base/tealdef/gui/main/selector.d.tl:41
No description in the game files yet.
filter(entity : Engine.Entity) : boolean base/tealdef/gui/main/selector.d.tl:42
No description in the game files yet.
Returns boolean
terminalFilter(stationGroupOrSignal : Engine.Entity, stationTerminal : StationTerminal, flatTerminalIndex : integer) base/tealdef/gui/main/selector.d.tl:43
No description in the game files yet.