Inherits from Prototype « PrototypeBase |
action | :: "toggle-alt-mode" or "undo" or "copy" or "cut" or "paste" or "import-string" or "toggle-personal-roboport" or "toggle-equipment-movement-bonus" or "spawn-item" or "lua" | If this is |
If this is | ||
iconsnew optional | :: array[IconData] | Can't be an empty array. |
Can't be an empty array. | ||
iconchanged optional | :: FileName | Path to the icon file. [...] |
Path to the icon file. [...] | ||
icon_sizenew optional | :: SpriteSizeType | The size of the square icon, in pixels. [...] |
The size of the square icon, in pixels. [...] | ||
small_iconsnew optional | :: array[IconData] | Can't be an empty array. |
Can't be an empty array. | ||
small_iconchanged optional | :: FileName | Path to the icon file. [...] |
Path to the icon file. [...] | ||
small_icon_sizenew optional | :: SpriteSizeType | The size of the small icon, in pixels. [...] |
The size of the small icon, in pixels. [...] | ||
item_to_spawn optional | :: ItemID | The item to create when clicking on a shortcut with the action set to |
The item to create when clicking on a shortcut with the action set to | ||
technology_to_unlock optional | :: TechnologyID | The technology that must be researched before this shortcut can be used. [...] |
The technology that must be researched before this shortcut can be used. [...] | ||
unavailable_until_unlockednew optional | :: bool | If |
If | ||
toggleable optional | :: bool | Must be enabled for the Factorio API to be able to set the toggled state on the shortcut button, see LuaPlayer::set_shortcut_toggled. |
Must be enabled for the Factorio API to be able to set the toggled state on the shortcut button, see LuaPlayer::set_shortcut_toggled. | ||
associated_control_input optional | :: string | Name of a custom input or vanilla control. [...] |
Name of a custom input or vanilla control. [...] | ||
style optional | :: "default" or "blue" or "red" or "green" |
factoriopedia_alternative optional | :: string | The ID type corresponding to the prototype that inherits from this. [...] |
The ID type corresponding to the prototype that inherits from this. [...] |
type | :: string | Specifies the kind of prototype this is. [...] |
Specifies the kind of prototype this is. [...] | ||
name | :: string | Unique textual identification of the prototype. [...] |
Unique textual identification of the prototype. [...] | ||
order[overridden] optional | :: Order | Used to order prototypes in inventory, recipes and GUIs. [...] |
Used to order prototypes in inventory, recipes and GUIs. [...] | ||
localised_name optional | :: LocalisedString | Overwrites the name set in the locale file. [...] |
Overwrites the name set in the locale file. [...] | ||
localised_description optional | :: LocalisedString | Overwrites the description set in the locale file. [...] |
Overwrites the description set in the locale file. [...] | ||
factoriopedia_descriptionnew optional | :: LocalisedString | Provides additional description used in factoriopedia. |
Provides additional description used in factoriopedia. | ||
subgroupnew optional | :: ItemSubGroupID | The name of an ItemSubGroup. |
The name of an ItemSubGroup. | ||
hiddennew optional | :: bool | |
hidden_in_factoriopedianew optional | :: bool | |
parameternew optional | :: bool | Whether the prototype is a special type which can be used to parametrize blueprints and doesn't have other function. |
Whether the prototype is a special type which can be used to parametrize blueprints and doesn't have other function. | ||
factoriopedia_simulationnew optional | :: SimulationDefinition | The simulation shown when looking at this prototype in the Factoriopedia GUI. |
The simulation shown when looking at this prototype in the Factoriopedia GUI. |
"toggle-alt-mode"
or "undo"
or "copy"
or "cut"
or "paste"
or "import-string"
or "toggle-personal-roboport"
or "toggle-equipment-movement-bonus"
or "spawn-item"
or "lua"
{
type = "shortcut",
name = "give-deconstruction-planner",
order = "b[blueprints]-i[deconstruction-planner]",
action = "spawn-item",
localised_name = {"shortcut.make-deconstruction-planner"},
associated_control_input = "give-deconstruction-planner",
technology_to_unlock = "construction-robotics",
item_to_spawn = "deconstruction-planner",
style = "red",
icon = "__base__/graphics/icons/shortcut-toolbar/mip/new-deconstruction-planner-x56.png",
icon_size = 56,
small_icon = "__base__/graphics/icons/shortcut-toolbar/mip/new-deconstruction-planner-x24.png",
small_icon_size = 24
}