Skip to content

line_eow

Source: base/tealdef/gui/entity_window/line/line_eow.d.tl

Notes

Plugins and widgets of the line window (line_eow.script.tl).

LineEow

record global base/tealdef/gui/entity_window/line/line_eow.d.tl:3

global record LineEow

Load: local line_eow = ug_require "/gui/entity_window/line/line_eow.script.tl"

Notes

Plugins and widgets of the line window.

Fields

Name Type Description
LineEowExtensionPoint ExtensionPoint<LineWidgetPluginParams> Extension point of the line window; register plugins with a resource of type "react-plugin ::LineEowExtensionPoint". used 1× in the base game
LineFrequency Recipe<Engine.Entity> Stopwatch icon with the line frequency (line_util.calculateFrequencySeconds, "--" when 0); the parameter is the line entity. used 1× in the base game
LineRate Recipe<Engine.Entity> Cargo icon with the line rate (api.engine.util.line.calcLineStationThroughput); the parameter is the line entity. used 1× in the base game
NotificationPlugin Recipe<LineWidgetPluginParams> Notification cards of the line; registered with order 0.
LineColorPickerPlugin Recipe<LineWidgetPluginParams> Colour picker of the line; registered with order 10.
LineBasicsPlugin Recipe<LineWidgetPluginParams> "Basics" card with the line's carriage information and a card with the summed noise and pollution of all its vehicles; registered with order 20.
LineTransportedGraphPlugin Recipe<LineWidgetPluginParams> "Transported" card with last year's transported amount and a collapsible chart of the itemsTransported log; registered with order 30 and condition conditionPlayerOwned.
LineVehiclesPlugin Recipe<LineWidgetPluginParams> "Vehicles" card with the vehicles of the line; registered with order 50.
LineIncomeGraphPlugin Recipe<LineWidgetPluginParams> "Balance" card with an income and running costs chart of the line's account; registered with order 60 and condition conditionPlayerOwned.

Functions

conditionPlayerOwned(params : LineEow.LineWidgetPluginParams) : boolean base/tealdef/gui/entity_window/line/line_eow.d.tl:21

Call as line_eow.conditionPlayerOwned

Notes

Plugin condition; true unless the line is owned by another player (also true for lines without owner).

Returns boolean

LineEow.LineWidgetPluginParams

record base/tealdef/gui/entity_window/line/line_eow.d.tl:4

record LineWidgetPluginParams is EowExtensionUtil.IEowWidgetsExtensionParams

Notes

Parameters passed to the plugins of the line window.

Used in the base game: 8 times in 2 files

base/content/gui/gui/entity_window/line/line_eow.script.tl:26

line_eow.NotificationPlugin = react.RegisterPluginRecipe(line_eow.LineEowExtensionPoint, "NotificationPlugin", function(params : LineEow.LineWidgetPluginParams)
base/content/gui/gui/entity_window/line/line.tl:121
local extensionParams : LineEow.LineWidgetPluginParams = {