Inherits from PrototypeBase |
key_sequence | :: string |
The default key sequence for this custom input. |
The default key sequence for this custom input. |
||
alternative_key_sequence optional | :: string |
The alternative key binding for this control. |
The alternative key binding for this control. |
||
controller_key_sequence optional | :: string |
The controller (game pad) keybinding for this control. |
The controller (game pad) keybinding for this control. |
||
controller_alternative_key_sequence optional | :: string |
The alternative controller (game pad) keybinding for this control. |
The alternative controller (game pad) keybinding for this control. |
||
linked_game_control optional | :: string |
When a custom-input is linked to a game control it won't show up in the control-settings GUI and will fire when the linked control is pressed. |
When a custom-input is linked to a game control it won't show up in the control-settings GUI and will fire when the linked control is pressed. |
||
consuming optional | :: ConsumingType |
Sets whether internal game events associated with the same key sequence should be fired or blocked. |
Sets whether internal game events associated with the same key sequence should be fired or blocked. |
||
enabled optional | :: bool |
If this custom input is enabled. |
If this custom input is enabled. |
||
enabled_while_spectating optional | :: bool |
|
enabled_while_in_cutscene optional | :: bool |
|
include_selected_prototype optional | :: bool |
If true, the type and name of the currently selected prototype will be provided as "selected_prototype" in the raised Lua event. |
If true, the type and name of the currently selected prototype will be provided as "selected_prototype" in the raised Lua event. |
||
item_to_spawn optional | :: ItemID |
The item will be created when this input is pressed and action is set to "spawn-item". |
The item will be created when this input is pressed and action is set to "spawn-item". |
||
action optional |
:: "lua" or
"spawn-item" or
"toggle-personal-roboport" or
"toggle-personal-logistic-requests" or
"toggle-equipment-movement-bonus"
|
A Lua event is only raised if the action is "lua". |
A Lua event is only raised if the action is "lua". |
type | :: string |
Specifies the kind of prototype this is. |
Specifies the kind of prototype this is. |
||
name [overridden] | :: string |
Unique textual identification of the prototype. |
Unique textual identification of the prototype. |
||
order 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. |
key_sequence = "",
linked_game_control = "clear-cursor"