index / content / gui / main / gui_react_util

Module content.gui.main.gui_react_util🔗

global record GuiReactUtil
enum LabelFontColor "Default" "Error" "Inferior" "Negative" "Normal" "Poor" "Positive" "Warning" end
enum LabelMode "Default" "EntityWindow" "EntityWindowPostfix" "HudIconLayer" "HudIconMain" end
enum MouseCursor "AddStopInvalid" "AddStopValid" "Bulldoze" "Camera" "CompanyMechanics" "Config" "Construction" "ConstructionTool" "Cut" "Default" "Grab" "Invalid" "Link" "Lock" "NoSnap" "None" "PlaceAsset" "Prospection" "Rail" "Raise" "Resize" "Snap" "StreetStraight" "Tangent" "TerrainModify" "TerrainPaint" "Text" "Turn" "TurnRaise" "Unlock" "Upgrade" "Wait" end
getMouseCursorInteger: function(GuiReactUtil.MouseCursor): integer
enum ForegroundContrast "Dark" "Light" end
enum ShippingState "IndustryInput" "IndustryOutput" "Vehicle" "WaitingPassenger" "Warehouse" end
record RichLabel text: string iconPath: string useEmoteWithSatisfaction: EmoteIconParam.Satisfaction textAfterIcon: string end
record IconLabelIndicatorParams iconPath: string | {string} useEmoteWithSatisfaction: EmoteIconParam.Satisfaction label: string richLabel: RichLabel labelFontColor: LabelFontColor labelMode: LabelMode indicatorIconPath: string tooltip: string iconTooltip: string | {string} overlay: TreeNodeId indicator: TreeNodeId shippingState: ShippingState end
record TextLabelIndicatorParams text: string label: string richLabel: RichLabel labelFontColor: LabelFontColor labelMode: LabelMode indicatorIconPath: string tooltip: string shippingState: ShippingState end
record ContentLabelIndicatorParams content: TreeNodeId label: string richLabel: RichLabel labelFontColor: LabelFontColor labelMode: LabelMode labelExtraContent: TreeNodeId indicatorIconPath: string tooltip: string overlay: TreeNodeId indicator: TreeNodeId shippingState: ShippingState end
isHudLabelMode: function(LabelMode): boolean IconLabelIndicator: Recipe<IconLabelIndicatorParams> TextLabelIndicator: Recipe<TextLabelIndicatorParams> makeContentLabelIndictator: function(IconLabelIndicatorParams): TreeNodeId integer2TextLayout: function(integer, string): TreeNodeId
record FocusInputFieldParam<T> value: T onValueChange: function(T) onCancel: function() class: string maxLength: integer end
FocusNumberInputField: Recipe<FocusInputFieldParam<number>> FocusTextInputField: Recipe<FocusInputFieldParam<string>> group: function(TreeNodeId): TreeNodeId textColorForColor: function(Vec4f): Vec4f foregroundColorClassForColor: function(Vec4f): GuiReactUtil.ForegroundContrast stylingHoverClassForColor: function(Vec4f): GuiReactUtil.ForegroundContrast makeHorizontalSpacer: function(): TreeNodeId makeVerticalSpacer: function(): TreeNodeId makeHorizontalBox: function({TreeNodeId}): TreeNodeId makeVerticalBox: function({TreeNodeId}): TreeNodeId transformSetUnlessEqual: function<T>(state : ReactStateT<T>, newValue : T, equals : function(T, T) : boolean)
record FocusTraversalScopeParam horizontal: boolean vertical: boolean allowBubbleUp: boolean layout: TreeNodeId end
FocusTraversalScope: Recipe<FocusTraversalScopeParam>
record InputActionComponentParam iaOrder: {string} iaForwards: {string : React.IaForward} iaHandlers: {string : React.IaHandler} layout: TreeNodeId end
InputActionComponent: Recipe<InputActionComponentParam>
record EmoteIconParam
enum Satisfaction "Aloof" "Happy" "Sad" end
satisfaction: Satisfaction tooltip: string forceFocusable: boolean end
EmoteIcon: Recipe<EmoteIconParam>
record PluginScopeConfig firstRef: ReactRefWrap lastRef: ReactRefWrap insertHardcoded: {integer : {TreeNodeId}} end
usePlugins: function<ParamType>(ExtensionPoint<ParamType>, PluginScopeConfig, ParamType): {TreeNodeId} end

Category: globals🔗

GuiReactUtil🔗

global record GuiReactUtil
enum LabelFontColor "Default" "Error" "Inferior" "Negative" "Normal" "Poor" "Positive" "Warning" end
enum LabelMode "Default" "EntityWindow" "EntityWindowPostfix" "HudIconLayer" "HudIconMain" end
enum MouseCursor "AddStopInvalid" "AddStopValid" "Bulldoze" "Camera" "CompanyMechanics" "Config" "Construction" "ConstructionTool" "Cut" "Default" "Grab" "Invalid" "Link" "Lock" "NoSnap" "None" "PlaceAsset" "Prospection" "Rail" "Raise" "Resize" "Snap" "StreetStraight" "Tangent" "TerrainModify" "TerrainPaint" "Text" "Turn" "TurnRaise" "Unlock" "Upgrade" "Wait" end
getMouseCursorInteger: function(GuiReactUtil.MouseCursor): integer
enum ForegroundContrast "Dark" "Light" end
enum ShippingState "IndustryInput" "IndustryOutput" "Vehicle" "WaitingPassenger" "Warehouse" end
record RichLabel text: string iconPath: string useEmoteWithSatisfaction: EmoteIconParam.Satisfaction textAfterIcon: string end
record IconLabelIndicatorParams iconPath: string | {string} useEmoteWithSatisfaction: EmoteIconParam.Satisfaction label: string richLabel: RichLabel labelFontColor: LabelFontColor labelMode: LabelMode indicatorIconPath: string tooltip: string iconTooltip: string | {string} overlay: TreeNodeId indicator: TreeNodeId shippingState: ShippingState end
record TextLabelIndicatorParams text: string label: string richLabel: RichLabel labelFontColor: LabelFontColor labelMode: LabelMode indicatorIconPath: string tooltip: string shippingState: ShippingState end
record ContentLabelIndicatorParams content: TreeNodeId label: string richLabel: RichLabel labelFontColor: LabelFontColor labelMode: LabelMode labelExtraContent: TreeNodeId indicatorIconPath: string tooltip: string overlay: TreeNodeId indicator: TreeNodeId shippingState: ShippingState end
isHudLabelMode: function(LabelMode): boolean IconLabelIndicator: Recipe<IconLabelIndicatorParams> TextLabelIndicator: Recipe<TextLabelIndicatorParams> makeContentLabelIndictator: function(IconLabelIndicatorParams): TreeNodeId integer2TextLayout: function(integer, string): TreeNodeId
record FocusInputFieldParam<T> value: T onValueChange: function(T) onCancel: function() class: string maxLength: integer end
FocusNumberInputField: Recipe<FocusInputFieldParam<number>> FocusTextInputField: Recipe<FocusInputFieldParam<string>> group: function(TreeNodeId): TreeNodeId textColorForColor: function(Vec4f): Vec4f foregroundColorClassForColor: function(Vec4f): GuiReactUtil.ForegroundContrast stylingHoverClassForColor: function(Vec4f): GuiReactUtil.ForegroundContrast makeHorizontalSpacer: function(): TreeNodeId makeVerticalSpacer: function(): TreeNodeId makeHorizontalBox: function({TreeNodeId}): TreeNodeId makeVerticalBox: function({TreeNodeId}): TreeNodeId transformSetUnlessEqual: function<T>(state : ReactStateT<T>, newValue : T, equals : function(T, T) : boolean)
record FocusTraversalScopeParam horizontal: boolean vertical: boolean allowBubbleUp: boolean layout: TreeNodeId end
FocusTraversalScope: Recipe<FocusTraversalScopeParam>
record InputActionComponentParam iaOrder: {string} iaForwards: {string : React.IaForward} iaHandlers: {string : React.IaHandler} layout: TreeNodeId end
InputActionComponent: Recipe<InputActionComponentParam>
record EmoteIconParam
enum Satisfaction "Aloof" "Happy" "Sad" end
satisfaction: Satisfaction tooltip: string forceFocusable: boolean end
EmoteIcon: Recipe<EmoteIconParam>
record PluginScopeConfig firstRef: ReactRefWrap lastRef: ReactRefWrap insertHardcoded: {integer : {TreeNodeId}} end
usePlugins: function<ParamType>(ExtensionPoint<ParamType>, PluginScopeConfig, ParamType): {TreeNodeId} end

GuiReactUtil.LabelFontColor🔗

enum GuiReactUtil.LabelFontColor "Default" "Error" "Inferior" "Negative" "Normal" "Poor" "Positive" "Warning" end

GuiReactUtil.LabelFontColor."Default"🔗

GuiReactUtil.LabelFontColor."Error"🔗

GuiReactUtil.LabelFontColor."Inferior"🔗

GuiReactUtil.LabelFontColor."Negative"🔗

GuiReactUtil.LabelFontColor."Normal"🔗

GuiReactUtil.LabelFontColor."Poor"🔗

GuiReactUtil.LabelFontColor."Positive"🔗

GuiReactUtil.LabelFontColor."Warning"🔗

GuiReactUtil.LabelMode🔗

enum GuiReactUtil.LabelMode "Default" "EntityWindow" "EntityWindowPostfix" "HudIconLayer" "HudIconMain" end

GuiReactUtil.LabelMode."Default"🔗

GuiReactUtil.LabelMode."EntityWindow"🔗

GuiReactUtil.LabelMode."EntityWindowPostfix"🔗

GuiReactUtil.LabelMode."HudIconLayer"🔗

GuiReactUtil.LabelMode."HudIconMain"🔗

GuiReactUtil.MouseCursor🔗

enum GuiReactUtil.MouseCursor "AddStopInvalid" "AddStopValid" "Bulldoze" "Camera" "CompanyMechanics" "Config" "Construction" "ConstructionTool" "Cut" "Default" "Grab" "Invalid" "Link" "Lock" "NoSnap" "None" "PlaceAsset" "Prospection" "Rail" "Raise" "Resize" "Snap" "StreetStraight" "Tangent" "TerrainModify" "TerrainPaint" "Text" "Turn" "TurnRaise" "Unlock" "Upgrade" "Wait" end

GuiReactUtil.MouseCursor."AddStopInvalid"🔗

GuiReactUtil.MouseCursor."AddStopValid"🔗

GuiReactUtil.MouseCursor."Bulldoze"🔗

GuiReactUtil.MouseCursor."Camera"🔗

GuiReactUtil.MouseCursor."CompanyMechanics"🔗

GuiReactUtil.MouseCursor."Config"🔗

GuiReactUtil.MouseCursor."Construction"🔗

GuiReactUtil.MouseCursor."ConstructionTool"🔗

GuiReactUtil.MouseCursor."Cut"🔗

GuiReactUtil.MouseCursor."Default"🔗

GuiReactUtil.MouseCursor."Grab"🔗

GuiReactUtil.MouseCursor."Invalid"🔗

GuiReactUtil.MouseCursor."Link"🔗

GuiReactUtil.MouseCursor."Lock"🔗

GuiReactUtil.MouseCursor."NoSnap"🔗

GuiReactUtil.MouseCursor."None"🔗

GuiReactUtil.MouseCursor."PlaceAsset"🔗

GuiReactUtil.MouseCursor."Prospection"🔗

GuiReactUtil.MouseCursor."Rail"🔗

GuiReactUtil.MouseCursor."Raise"🔗

GuiReactUtil.MouseCursor."Resize"🔗

GuiReactUtil.MouseCursor."Snap"🔗

GuiReactUtil.MouseCursor."StreetStraight"🔗

GuiReactUtil.MouseCursor."Tangent"🔗

GuiReactUtil.MouseCursor."TerrainModify"🔗

GuiReactUtil.MouseCursor."TerrainPaint"🔗

GuiReactUtil.MouseCursor."Text"🔗

GuiReactUtil.MouseCursor."Turn"🔗

GuiReactUtil.MouseCursor."TurnRaise"🔗

GuiReactUtil.MouseCursor."Unlock"🔗

GuiReactUtil.MouseCursor."Upgrade"🔗

GuiReactUtil.MouseCursor."Wait"🔗

GuiReactUtil.getMouseCursorInteger🔗

function GuiReactUtil.getMouseCursorInteger(GuiReactUtil.MouseCursor): integer
Parameters
  • GuiReactUtil.MouseCursor
Returns
  1. integer

GuiReactUtil.ForegroundContrast🔗

enum GuiReactUtil.ForegroundContrast "Dark" "Light" end

GuiReactUtil.ForegroundContrast."Dark"🔗

GuiReactUtil.ForegroundContrast."Light"🔗

GuiReactUtil.ShippingState🔗

enum GuiReactUtil.ShippingState "IndustryInput" "IndustryOutput" "Vehicle" "WaitingPassenger" "Warehouse" end

GuiReactUtil.ShippingState."IndustryInput"🔗

GuiReactUtil.ShippingState."IndustryOutput"🔗

GuiReactUtil.ShippingState."Vehicle"🔗

GuiReactUtil.ShippingState."WaitingPassenger"🔗

GuiReactUtil.ShippingState."Warehouse"🔗

GuiReactUtil.RichLabel🔗

record GuiReactUtil.RichLabel text: string iconPath: string useEmoteWithSatisfaction: EmoteIconParam.Satisfaction textAfterIcon: string end

GuiReactUtil.RichLabel.text🔗

GuiReactUtil.RichLabel.text: string

GuiReactUtil.RichLabel.iconPath🔗

GuiReactUtil.RichLabel.iconPath: string

GuiReactUtil.RichLabel.useEmoteWithSatisfaction🔗

GuiReactUtil.RichLabel.useEmoteWithSatisfaction: EmoteIconParam.Satisfaction

GuiReactUtil.RichLabel.textAfterIcon🔗

GuiReactUtil.RichLabel.textAfterIcon: string

GuiReactUtil.IconLabelIndicatorParams🔗

record GuiReactUtil.IconLabelIndicatorParams iconPath: string | {string} useEmoteWithSatisfaction: EmoteIconParam.Satisfaction label: string richLabel: RichLabel labelFontColor: LabelFontColor labelMode: LabelMode indicatorIconPath: string tooltip: string iconTooltip: string | {string} overlay: TreeNodeId indicator: TreeNodeId shippingState: ShippingState end

GuiReactUtil.IconLabelIndicatorParams.iconPath🔗

GuiReactUtil.IconLabelIndicatorParams.iconPath: string | {string}

GuiReactUtil.IconLabelIndicatorParams.useEmoteWithSatisfaction🔗

GuiReactUtil.IconLabelIndicatorParams.useEmoteWithSatisfaction: EmoteIconParam.Satisfaction

GuiReactUtil.IconLabelIndicatorParams.label🔗

GuiReactUtil.IconLabelIndicatorParams.label: string

GuiReactUtil.IconLabelIndicatorParams.richLabel🔗

GuiReactUtil.IconLabelIndicatorParams.richLabel: RichLabel

GuiReactUtil.IconLabelIndicatorParams.labelFontColor🔗

GuiReactUtil.IconLabelIndicatorParams.labelFontColor: LabelFontColor

GuiReactUtil.IconLabelIndicatorParams.labelMode🔗

GuiReactUtil.IconLabelIndicatorParams.labelMode: LabelMode

GuiReactUtil.IconLabelIndicatorParams.indicatorIconPath🔗

GuiReactUtil.IconLabelIndicatorParams.indicatorIconPath: string

GuiReactUtil.IconLabelIndicatorParams.tooltip🔗

GuiReactUtil.IconLabelIndicatorParams.tooltip: string

GuiReactUtil.IconLabelIndicatorParams.iconTooltip🔗

GuiReactUtil.IconLabelIndicatorParams.iconTooltip: string | {string}

GuiReactUtil.IconLabelIndicatorParams.overlay🔗

GuiReactUtil.IconLabelIndicatorParams.overlay: TreeNodeId

GuiReactUtil.IconLabelIndicatorParams.indicator🔗

GuiReactUtil.IconLabelIndicatorParams.indicator: TreeNodeId

GuiReactUtil.IconLabelIndicatorParams.shippingState🔗

GuiReactUtil.IconLabelIndicatorParams.shippingState: ShippingState

GuiReactUtil.TextLabelIndicatorParams🔗

record GuiReactUtil.TextLabelIndicatorParams text: string label: string richLabel: RichLabel labelFontColor: LabelFontColor labelMode: LabelMode indicatorIconPath: string tooltip: string shippingState: ShippingState end

GuiReactUtil.TextLabelIndicatorParams.text🔗

GuiReactUtil.TextLabelIndicatorParams.text: string

GuiReactUtil.TextLabelIndicatorParams.label🔗

GuiReactUtil.TextLabelIndicatorParams.label: string

GuiReactUtil.TextLabelIndicatorParams.richLabel🔗

GuiReactUtil.TextLabelIndicatorParams.richLabel: RichLabel

GuiReactUtil.TextLabelIndicatorParams.labelFontColor🔗

GuiReactUtil.TextLabelIndicatorParams.labelFontColor: LabelFontColor

GuiReactUtil.TextLabelIndicatorParams.labelMode🔗

GuiReactUtil.TextLabelIndicatorParams.labelMode: LabelMode

GuiReactUtil.TextLabelIndicatorParams.indicatorIconPath🔗

GuiReactUtil.TextLabelIndicatorParams.indicatorIconPath: string

GuiReactUtil.TextLabelIndicatorParams.tooltip🔗

GuiReactUtil.TextLabelIndicatorParams.tooltip: string

GuiReactUtil.TextLabelIndicatorParams.shippingState🔗

GuiReactUtil.TextLabelIndicatorParams.shippingState: ShippingState

GuiReactUtil.ContentLabelIndicatorParams🔗

record GuiReactUtil.ContentLabelIndicatorParams content: TreeNodeId label: string richLabel: RichLabel labelFontColor: LabelFontColor labelMode: LabelMode labelExtraContent: TreeNodeId indicatorIconPath: string tooltip: string overlay: TreeNodeId indicator: TreeNodeId shippingState: ShippingState end

GuiReactUtil.ContentLabelIndicatorParams.content🔗

GuiReactUtil.ContentLabelIndicatorParams.content: TreeNodeId

GuiReactUtil.ContentLabelIndicatorParams.label🔗

GuiReactUtil.ContentLabelIndicatorParams.label: string

GuiReactUtil.ContentLabelIndicatorParams.richLabel🔗

GuiReactUtil.ContentLabelIndicatorParams.richLabel: RichLabel

GuiReactUtil.ContentLabelIndicatorParams.labelFontColor🔗

GuiReactUtil.ContentLabelIndicatorParams.labelFontColor: LabelFontColor

GuiReactUtil.ContentLabelIndicatorParams.labelMode🔗

GuiReactUtil.ContentLabelIndicatorParams.labelMode: LabelMode

GuiReactUtil.ContentLabelIndicatorParams.labelExtraContent🔗

GuiReactUtil.ContentLabelIndicatorParams.labelExtraContent: TreeNodeId

GuiReactUtil.ContentLabelIndicatorParams.indicatorIconPath🔗

GuiReactUtil.ContentLabelIndicatorParams.indicatorIconPath: string

GuiReactUtil.ContentLabelIndicatorParams.tooltip🔗

GuiReactUtil.ContentLabelIndicatorParams.tooltip: string

GuiReactUtil.ContentLabelIndicatorParams.overlay🔗

GuiReactUtil.ContentLabelIndicatorParams.overlay: TreeNodeId

GuiReactUtil.ContentLabelIndicatorParams.indicator🔗

GuiReactUtil.ContentLabelIndicatorParams.indicator: TreeNodeId

GuiReactUtil.ContentLabelIndicatorParams.shippingState🔗

GuiReactUtil.ContentLabelIndicatorParams.shippingState: ShippingState

GuiReactUtil.isHudLabelMode🔗

function GuiReactUtil.isHudLabelMode(LabelMode): boolean
Parameters
  • LabelMode
Returns
  1. boolean

GuiReactUtil.IconLabelIndicator🔗

GuiReactUtil.IconLabelIndicator: Recipe<IconLabelIndicatorParams>

GuiReactUtil.TextLabelIndicator🔗

GuiReactUtil.TextLabelIndicator: Recipe<TextLabelIndicatorParams>

GuiReactUtil.makeContentLabelIndictator🔗

function GuiReactUtil.makeContentLabelIndictator(IconLabelIndicatorParams): TreeNodeId
Parameters
  • IconLabelIndicatorParams
Returns
  1. TreeNodeId

GuiReactUtil.integer2TextLayout🔗

function GuiReactUtil.integer2TextLayout(integer, string): TreeNodeId
Parameters
  • integer
  • string
Returns
  1. TreeNodeId

GuiReactUtil.FocusInputFieldParam🔗

record GuiReactUtil.FocusInputFieldParam<T> value: T onValueChange: function(T) onCancel: function() class: string maxLength: integer end
Type Parameters
  • T

GuiReactUtil.FocusInputFieldParam.value🔗

GuiReactUtil.FocusInputFieldParam.value: T

GuiReactUtil.FocusInputFieldParam.onValueChange🔗

function GuiReactUtil.FocusInputFieldParam.onValueChange(T)
Parameters
  • T

GuiReactUtil.FocusInputFieldParam.onCancel🔗

function GuiReactUtil.FocusInputFieldParam.onCancel()

GuiReactUtil.FocusInputFieldParam.class🔗

GuiReactUtil.FocusInputFieldParam.class: string

GuiReactUtil.FocusInputFieldParam.maxLength🔗

GuiReactUtil.FocusInputFieldParam.maxLength: integer

GuiReactUtil.FocusNumberInputField🔗

GuiReactUtil.FocusNumberInputField: Recipe<FocusInputFieldParam<number>>

GuiReactUtil.FocusTextInputField🔗

GuiReactUtil.FocusTextInputField: Recipe<FocusInputFieldParam<string>>

GuiReactUtil.group🔗

function GuiReactUtil.group(TreeNodeId): TreeNodeId
Parameters
  • TreeNodeId
Returns
  1. TreeNodeId

GuiReactUtil.textColorForColor🔗

function GuiReactUtil.textColorForColor(Vec4f): Vec4f
Parameters
  • Vec4f
Returns
  1. Vec4f

GuiReactUtil.foregroundColorClassForColor🔗

function GuiReactUtil.foregroundColorClassForColor(Vec4f): GuiReactUtil.ForegroundContrast
Parameters
  • Vec4f
Returns
  1. GuiReactUtil.ForegroundContrast

GuiReactUtil.stylingHoverClassForColor🔗

function GuiReactUtil.stylingHoverClassForColor(Vec4f): GuiReactUtil.ForegroundContrast
Parameters
  • Vec4f
Returns
  1. GuiReactUtil.ForegroundContrast

GuiReactUtil.makeHorizontalSpacer🔗

function GuiReactUtil.makeHorizontalSpacer(): TreeNodeId
Returns
  1. TreeNodeId

GuiReactUtil.makeVerticalSpacer🔗

function GuiReactUtil.makeVerticalSpacer(): TreeNodeId
Returns
  1. TreeNodeId

GuiReactUtil.makeHorizontalBox🔗

function GuiReactUtil.makeHorizontalBox({TreeNodeId}): TreeNodeId
Parameters
  • {TreeNodeId}
Returns
  1. TreeNodeId

GuiReactUtil.makeVerticalBox🔗

function GuiReactUtil.makeVerticalBox({TreeNodeId}): TreeNodeId
Parameters
  • {TreeNodeId}
Returns
  1. TreeNodeId

GuiReactUtil.transformSetUnlessEqual🔗

function GuiReactUtil.transformSetUnlessEqual<T>(state : ReactStateT<T>, newValue : T, equals : function(T, T) : boolean)

shortcut to state:transform() with an equals call for early-out

Type Parameters
  • T
Parameters
  • state :ReactStateT<T> — The react state
  • newValue :T — The desired value
  • equals :function(T, T): boolean — Optional comparison function (defaults to table_util.deepEquals

GuiReactUtil.FocusTraversalScopeParam🔗

record GuiReactUtil.FocusTraversalScopeParam horizontal: boolean vertical: boolean allowBubbleUp: boolean layout: TreeNodeId end

GuiReactUtil.FocusTraversalScopeParam.horizontal🔗

GuiReactUtil.FocusTraversalScopeParam.horizontal: boolean

GuiReactUtil.FocusTraversalScopeParam.vertical🔗

GuiReactUtil.FocusTraversalScopeParam.vertical: boolean

GuiReactUtil.FocusTraversalScopeParam.allowBubbleUp🔗

GuiReactUtil.FocusTraversalScopeParam.allowBubbleUp: boolean

GuiReactUtil.FocusTraversalScopeParam.layout🔗

GuiReactUtil.FocusTraversalScopeParam.layout: TreeNodeId

GuiReactUtil.FocusTraversalScope🔗

GuiReactUtil.FocusTraversalScope: Recipe<FocusTraversalScopeParam>

GuiReactUtil.InputActionComponentParam🔗

record GuiReactUtil.InputActionComponentParam iaOrder: {string} iaForwards: {string : React.IaForward} iaHandlers: {string : React.IaHandler} layout: TreeNodeId end

GuiReactUtil.InputActionComponentParam.iaOrder🔗

GuiReactUtil.InputActionComponentParam.iaOrder: {string}

GuiReactUtil.InputActionComponentParam.iaForwards🔗

GuiReactUtil.InputActionComponentParam.iaForwards: {string : React.IaForward}

GuiReactUtil.InputActionComponentParam.iaHandlers🔗

GuiReactUtil.InputActionComponentParam.iaHandlers: {string : React.IaHandler}

GuiReactUtil.InputActionComponentParam.layout🔗

GuiReactUtil.InputActionComponentParam.layout: TreeNodeId

GuiReactUtil.InputActionComponent🔗

GuiReactUtil.InputActionComponent: Recipe<InputActionComponentParam>

GuiReactUtil.EmoteIconParam🔗

record GuiReactUtil.EmoteIconParam
enum Satisfaction "Aloof" "Happy" "Sad" end
satisfaction: Satisfaction tooltip: string forceFocusable: boolean end

GuiReactUtil.EmoteIconParam.Satisfaction🔗

enum GuiReactUtil.EmoteIconParam.Satisfaction "Aloof" "Happy" "Sad" end

GuiReactUtil.EmoteIconParam.Satisfaction."Aloof"🔗

GuiReactUtil.EmoteIconParam.Satisfaction."Happy"🔗

GuiReactUtil.EmoteIconParam.Satisfaction."Sad"🔗

GuiReactUtil.EmoteIconParam.satisfaction🔗

GuiReactUtil.EmoteIconParam.satisfaction: Satisfaction

GuiReactUtil.EmoteIconParam.tooltip🔗

GuiReactUtil.EmoteIconParam.tooltip: string

GuiReactUtil.EmoteIconParam.forceFocusable🔗

GuiReactUtil.EmoteIconParam.forceFocusable: boolean

GuiReactUtil.EmoteIcon🔗

GuiReactUtil.EmoteIcon: Recipe<EmoteIconParam>

GuiReactUtil.PluginScopeConfig🔗

record GuiReactUtil.PluginScopeConfig firstRef: ReactRefWrap lastRef: ReactRefWrap insertHardcoded: {integer : {TreeNodeId}} end

Parameter collection for usePlugins()

GuiReactUtil.PluginScopeConfig.firstRef🔗

GuiReactUtil.PluginScopeConfig.firstRef: ReactRefWrap

if present, filled with a nodeRef to the first (top) plugin

GuiReactUtil.PluginScopeConfig.lastRef🔗

GuiReactUtil.PluginScopeConfig.lastRef: ReactRefWrap

if present, filled with a nodeRef to the last (bottom) plugin

GuiReactUtil.PluginScopeConfig.insertHardcoded🔗

GuiReactUtil.PluginScopeConfig.insertHardcoded: {integer : {TreeNodeId}}

insert subtrees that are not plugins ( {order : {tree}} )

GuiReactUtil.usePlugins(ExtensionPoint<ParamType>, PluginScopeConfig, ParamType)🔗

function GuiReactUtil.usePlugins(ExtensionPoint<ParamType>, PluginScopeConfig, ParamType)<ParamType>(ExtensionPoint<ParamType>, PluginScopeConfig, ParamType): {TreeNodeId}
Type Parameters
  • ParamType
Parameters
  • ExtensionPoint<ParamType>
  • PluginScopeConfig
  • ParamType
Returns
  1. {TreeNodeId}

GuiReactUtil.usePlugins(WrapperExtensionPoint<WrappedRecipe, ParamType>, PluginScopeConfig, ParamType)🔗

function GuiReactUtil.usePlugins(WrapperExtensionPoint<WrappedRecipe, ParamType>, PluginScopeConfig, ParamType)<WrappedRecipe, ParamType>(WrapperExtensionPoint<WrappedRecipe, ParamType>, PluginScopeConfig, ParamType): {TreeNodeId}
Type Parameters
  • WrappedRecipe
  • ParamType
Parameters
  • WrapperExtensionPoint<WrappedRecipe, ParamType>
  • PluginScopeConfig
  • ParamType
Returns
  1. {TreeNodeId}

GuiReactUtil.usePlugins(ExtensionPoint0, PluginScopeConfig)🔗

function GuiReactUtil.usePlugins(ExtensionPoint0, PluginScopeConfig)(ExtensionPoint0, PluginScopeConfig): {TreeNodeId}
Parameters
  • ExtensionPoint0
  • PluginScopeConfig
Returns
  1. {TreeNodeId}

GuiReactUtil.usePlugins(WrapperExtensionPoint0<WrappedRecipe>, PluginScopeConfig)🔗

function GuiReactUtil.usePlugins(WrapperExtensionPoint0<WrappedRecipe>, PluginScopeConfig)<WrappedRecipe>(WrapperExtensionPoint0<WrappedRecipe>, PluginScopeConfig): {TreeNodeId}
Type Parameters
  • WrappedRecipe
Parameters
  • WrapperExtensionPoint0<WrappedRecipe>
  • PluginScopeConfig
Returns
  1. {TreeNodeId}
Transport Fever 3 Wiki
Gameplay ReferenceComing soon
●
Modding Manual
  • api
  • api.cmd
  • api.engine
  • api.engine.system
  • api.engine.util
  • api.gui
  • api.res
  • api.type
  • api.type.mod
  • api.type.modhub
  • api.type.transformator
  • app
  • main
  • content
    • base
      • difficulty_util
      • model_metadata_util
      • post_run_util
    • climates
      • gen
        • map_gen_util_serialized
    • game_mechanics
      • achievements
        • sound
          • achievement_sfx
      • celebrations
        • celebration_react_util
        • gui
          • sound
            • celebration_sfx
      • company
        • company
        • company_metadata
        • company_progression_util
        • company_react_util
        • company_static_util
        • company_util
        • explorations
          • exploration_plane
        • prospection_metadata
        • sound
          • company_sfx
      • emission
        • emission_config_metadata
        • emission_metadata
        • emissions
      • finance
        • account
        • finances_react_util
        • finances_util
        • loan
        • loan_util
        • sound
          • finance_sfx
      • fun_elements
        • blimp_util
        • custom_entity_util
        • fun_elements
        • rocket_util
        • ufo_util
      • game_time
        • game_time
      • industries
        • industries
      • notifications
        • gui
          • notification_colors
          • sound
            • notification_sfx
        • notification_legacy_util
        • notification_util
        • notifications
        • types
          • notification_react_util
          • notification_types
      • subventions
        • specific_subvention
        • subvention
        • subvention_legacy_util
        • subvention_util
        • subventions_gui
      • towns
        • district_colors
        • sound
          • town_sfx
        • town_cargo
        • town_growth_metadata
        • town_marketing_metadata
        • town_react_util
        • town_util
        • town_util_parallel
        • towns
    • gui
      • construction
        • construction_colors
        • construction_desc_react_util
        • construction_menu
        • construction_react_util
        • sound
          • construction_sfx
        • track_description_metadata
        • track_modifier_metadata
      • context_helper
        • context_helper
      • entity_window
        • animal
          • animal_eow
        • empty_construction
          • empty_construction_eow
        • entity_window_hud
        • entity_window_util
        • eow_extension_util
        • fun_elements
          • fun_elements_eow
        • gameplay_colors
        • industry
          • industry_eow
        • industry_react_util
        • line
          • line_eow
        • maintenance_station
          • maintenance_station_eow
        • perk
          • perk_eow
        • sim_person
          • sim_person_eow
        • station_group
          • station_group_eow
        • town
          • town_eow
        • town_building
          • town_building_eow
        • vehicle
          • vehicle_eow
        • view_manager
        • view_manager_util
        • warehouse
          • warehouse_eow
      • game_bar
        • game_bar
        • game_bar_widgets
      • guidesystem
        • sound
          • guidesystem_sfx
      • hud
        • hud_gui_config
        • hud_react_util
      • layers
        • layer_cargo
        • layer_cargo_flow
        • layer_colors
        • layer_noise
        • layer_pollution
        • layer_public_transport
        • layer_react_util
        • layer_traffic
        • layers_button_ridge
      • line_vehicle_mgmt
        • cargofilter_window
        • feedback_list_util
        • line
        • line_react_util
        • line_util
        • manager_hud_util
        • manager_tooltips_util
        • manager_window
        • sound
          • lvm_sfx
        • vehicle_list_react_util
        • vehicle_react_util
        • vehicle_store
        • vehicle_store_table
        • vehicle_store_util
        • vehicle_store_window
        • vehicle_util
      • main
        • button_react_util
        • callout_react_util
        • cargo_react_util
        • cargo_util
        • collapsible_checkbox_list
        • content_card
        • credits_react_util
        • default_colors
        • disable_features
        • engine_react_util
        • free_cam_options
        • game_context
        • game_react_globals
        • game_tooltips
        • game_windows
        • gui_react_util
        • gui_res_modding
        • hud_icon_toolbox
        • industry_util
        • input_action_colors
        • main_mod_button_area
        • menu_category_util
        • mod_entry_point
        • particle_colors
        • particle_react_util
        • popover_react_util
        • radial_menu_extension
        • script_param_util
        • selection_colors
        • selector
        • selector_react_util
        • styleutil
        • tile_list_react_util
        • tool_react_util
        • town_hud_react_util
      • map_editor
        • map_editor
      • menu
        • dialog_react_util
        • difficulty_react_util
        • graphics_presets_util
        • main_menu
        • map_preview_colors
        • menu_icon_react_util
        • menu_util
        • mod_colors
        • mod_manager_react_util
        • mod_util
        • new_game_react_util
        • paradox_react_util
        • releasenotes_util
        • savegame_react_util
        • sound
          • main_menu_sfx
      • sound
        • gui_comp_sfx
      • statistics
        • statistics
        • statistics_react_util
    • industries
      • industry_productivity_util
      • industry_workers
    • infrastructure
      • traffic_light
        • traffic_light
    • landmarks
      • hq
        • headquarter_util_serialized
      • landmark
      • landmark_util
      • landmark_util_serialized
    • mission
      • arrival_tracker
      • builder_util
      • calendar
      • guide_system
        • guide_system_react
        • guides
          • guide_event
          • guide_generic
          • guide_state
          • guide_timer
          • guide_ui_event
      • mission_boot_util
      • mission_colors
      • mission_framework
        • mission_end_window_util
        • mission_framework_react
        • mission_framework_react_util
        • mission_framework_util
        • mission_framework_util_entity
        • mission_framework_util_line
        • mission_interface
      • mission_pathfinding_util
      • mission_react_util
      • mission_task_util
      • mission_types
      • modifier
      • name_util
      • tasks
        • assign_vehicle
          • mission_task_assign_vehicle
          • mission_task_visit_stations_ordered
        • auto_builder
          • mission_task_electrify
          • mission_task_track_builder
          • prepare_track_building_util
        • build_construction
          • mission_task_build_construction
          • mission_task_build_construction_util
          • mission_task_build_construction_variant
        • build_path
          • mission_task_build_path
        • bulldoze
          • mission_task_auto_bulldoze
          • mission_task_bulldoze
        • buy_vehicle
          • mission_task_buy_vehicle
          • mission_task_clone_vehicle
        • click_and_collect_custom_entity
          • mission_task_collect_entity
          • mission_task_spawn_entity
        • click_entity
          • mission_task_click_entity
        • connect_nodes
          • mission_task_connect_nodes
        • create_line
          • mission_task_create_line
          • mission_task_create_line_for_towns
          • mission_task_stop_config
        • cutscene
          • mission_task_cutscene
        • dialogue
          • mission_task_dialogue
        • finish
          • mission_task_finish
        • guide
          • mission_task_guide
          • mission_task_guide_collect_entity
        • join
          • mission_task_join
        • mission_dialogue_data
        • non_bulldozable
          • mission_task_non_bulldozable
        • observe_entity
          • mission_task_observe_entity
        • page
          • mission_task_page
        • spawn_sims
          • mission_task_spawn_sims
          • sampling_util
        • subsidies
          • mission_task_guide_subsidies
          • mission_task_subsidies
        • task_decorator
        • town_rating
          • mission_task_town_rating
          • mission_task_town_rating_observer
        • town_size
          • mission_task_town_size
        • transfer_ownership
          • mission_task_transfer_ownership
          • transfer_ownership_util
        • transport_cargo
          • mission_task_empty_stocks
          • mission_task_industry_boosted
          • mission_task_transport_cargo
          • mission_task_transport_cargo_faster
          • mission_task_transport_cargo_observer
          • mission_task_transport_passengers
        • utility
          • mission_task_cargo_needs
          • mission_task_check_entities
          • mission_task_check_landmark_level
          • mission_task_clouds
          • mission_task_highlight
          • mission_task_industry_activity
          • mission_task_landmark_requirements
          • mission_task_play_sound
          • mission_task_protected_entities
          • mission_task_relay_update
          • mission_task_send_command
          • mission_task_send_event
          • mission_task_store_any
          • mission_task_substitute_constructions
          • mission_task_time_of_day
          • mission_task_town_development
          • mission_town_util
        • vehicle_util
          • mission_task_replace_vehicles
          • mission_task_sell_vehicles
          • mission_task_start_vehicles
          • mission_task_vehicle_modifier
          • mission_task_vehicle_position
          • mission_vehicle_util
        • wait
          • mission_task_wait
          • mission_task_wait_event
          • mission_task_wait_for
          • mission_task_wait_ui_event
        • waypoints
          • mission_task_waypoints
      • tutorial
        • tasks
          • mission_task_tutorial_init
        • tutorial_story_util
    • scripts
      • app_util
      • audio_util
      • builtin
      • construction
        • asset_util
        • collider_util_serialized
        • construction_config_metadata
        • construction_specialization_metadata
        • construction_util_serialized
        • lane_util_serialized
        • modules_util_serialized
        • param_util
        • street_util_serialized
      • entity_util
      • gamescript
      • journal
      • lang_util
      • log
      • mat4
      • math_util
      • metadata_util
      • polygon_util
      • random_util
      • react
      • soundset
      • string_util
      • table_util
      • tex_util
      • transformator_util
      • util
        • config_util
        • listutil
        • romberg_util
        • town_growth_function
      • vec2
      • vec3
      • vec4
    • stations
      • station_metadata
    • vehicle
      • vehicle_modifier

Generated 19-08-2026

Transport Fever 3 ● Urban Games © 2026