Prototype/Shortcut
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".