Factorio Prototype DocsVersion 2.0.69

ScriptedTechnologyTrigger :: struct

Triggered only by calling LuaForce::script_trigger_research. Can be used to show custom scripted triggers in the technology GUI.

Properties

type :: "scripted"
trigger_description optional :: LocalisedString
icons optional :: array[IconData]

Can't be an empty array.

Can't be an empty array.

icon optional :: FileName

Path to the icon file. [...]

Path to the icon file. [...]

icon_size optional :: SpriteSizeType

The size of the square icon, in pixels. [...]

The size of the square icon, in pixels. [...]

Properties

type :: "scripted"

trigger_description :: LocalisedString optional

icons :: array[IconData] optional

Can't be an empty array.

icon :: FileName optional

Path to the icon file.

Only loaded if icons is not defined.

icon_size :: SpriteSizeType optional

Default: 64

The size of the square icon, in pixels. E.g. 32 for a 32px by 32px icon. Must be larger than 0.

Only loaded if icons is not defined.


Type used in

Prototypes

Types

Defines