Prototype/Shortcut

From Official Factorio Wiki
Revision as of 11:42, 4 March 2019 by Bilka (talk | contribs) (0.17)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Basics

Prototype type: shortcut

Definition for a shortcut in the shortcut bar of tools.

Mandatory properties

Inherits all properties from Prototype.

action

Type: Types/string

One of "toggle-alt-mode", "undo", "copy", "cut", "paste", "import-string", "toggle-personal-roboport", "toggle-equipment-movement-bonus", "create-blueprint-item" and "lua".

icon

Type: Types/Sprite

Optional properties

item_to_create

Type: Types/string

Name of a Prototype/Item.

technology_to_unlock

Type: Types/string

Name of a Prototype/Technology.

toggleable

Type: Types/bool

Default: false

small_icon

Type: Types/Sprite

disabled_icon

Type: Types/Sprite

disabled_small_icon

Type: Types/Sprite

style

Type: Types/string

Default: "default"

One of "default", "blue", "red" and "green".

Example