Types/ItemPrototypeFlags: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.18.25: "draw-logistic-overlay")
(0.18.33: Added always-show)
Line 1: Line 1:
A [[Types/table]] (array) of [[types/string]]. The possible strings are listed below.
A [[Types/table]] (array) of [[types/string]]. The possible strings are listed below.
== "draw-logistic-overlay" ==
Whether the logistics areas of roboports should be drawn when holding this item. Used for example by the [[deconstruction planner]].
== "hidden" ==
== "hidden" ==
Item will not appear in lists of all items such as those for logistics requests, filters, etc.
Item will not appear in lists of all items such as those for logistics requests, filters, etc.
== "always-show" ==
Always show the item in selection lists (item filter, logistic request etc.) even when locked recipe for that item is present.


== "hide-from-bonus-gui" ==
== "hide-from-bonus-gui" ==
Line 22: Line 29:
== "only-in-cursor" ==
== "only-in-cursor" ==
Item is deleted when removed from the cursor by pressing {{keybinding|Q}} (clear cursor). Used for example by the copy paste tools.
Item is deleted when removed from the cursor by pressing {{keybinding|Q}} (clear cursor). Used for example by the copy paste tools.
== "draw-logistic-overlay" ==
Whether the logistics areas of roboports should be drawn when holding this item. Used for example by the [[deconstruction planner]].

Revision as of 09:17, 27 July 2020

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

"draw-logistic-overlay"

Whether the logistics areas of roboports should be drawn when holding this item. Used for example by the deconstruction planner.

"hidden"

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

"always-show"

Always show the item in selection lists (item filter, logistic request etc.) even when locked recipe for that item is present.

"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). Used for example by the copy paste tools.