Types/ItemPrototypeFlags: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(explanations)
Line 1: Line 1:
A [[Types/table]] (array) of [[types/string]]. Options for the string:
A [[Types/table]] (array) of [[types/string]]. The possible strings are listed below.
* "hidden" - Item will not appear in lists of all items such as those for logistics requests, filters, etc.
== "hidden" ==
* "hide-from-bonus-gui"
Item will not appear in lists of all items such as those for logistics requests, filters, etc.
* "hide-from-fuel-tooltip"
 
* "not-stackable"
== "hide-from-bonus-gui" ==
* "can-extend-inventory"
Item will not appear in the bonus gui.
* "primary-place-result"
 
* "mod-openable" - See [[Prototype/Item#can_be_mod_opened]].
== "hide-from-fuel-tooltip" ==
* "only-in-cursor"
Item will not appear in the tooltips shown when hovering over a burner inventory with the fuel category the item is in.
 
== "not-stackable" ==
The item can never be stacked.
 
== "can-extend-inventory" ==
 
== "primary-place-result" ==
 
== "mod-openable" ==
Only works for [[Prototype/SelectionTool]] and derived classes.<br>
This property corresponds to the following event in the lua api: [https://lua-api.factorio.com/latest/events.html#on_mod_item_opened defines.events.on_mod_item_opened]
 
== "only-in-cursor" ==
Item is deleted when removed from the cursor by pressing {{keybinding|Q}} (clear cursor).

Revision as of 17:53, 3 March 2020

A Types/table (array) of types/string. The possible strings are listed below.

"hidden"

Item will not appear in lists of all items such as those for logistics requests, filters, etc.

"hide-from-bonus-gui"

Item will not appear in the bonus gui.

"hide-from-fuel-tooltip"

Item will not appear in the tooltips shown when hovering over a burner inventory with the fuel category the item is in.

"not-stackable"

The item can never be stacked.

"can-extend-inventory"

"primary-place-result"

"mod-openable"

Only works for Prototype/SelectionTool and derived classes.
This property corresponds to the following event in the lua api: defines.events.on_mod_item_opened

"only-in-cursor"

Item is deleted when removed from the cursor by pressing Q (clear cursor).