Prototype/Container: Difference between revisions
(→Optional properties: clarified behavior of enable_inventory_bar) |
m (words) |
||
Line 23: | Line 23: | ||
{{Prototype property|enable_inventory_bar|[[Types/bool|bool]]|true|optional=true}} | {{Prototype property|enable_inventory_bar|[[Types/bool|bool]]|true|optional=true}} | ||
If the inventory limiter (red X) is visible. This does not change the inventory itself ([https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.supports_bar LuaInventory.supports_bar()] will not change and the bar can still be modified by script). | If the inventory limiter (red X) is visible in the chest's GUI. This does not change the inventory itself ([https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.supports_bar LuaInventory.supports_bar()] will not change and the bar can still be modified by script). | ||
{{Prototype property|scale_info_icons|[[Types/bool|bool]]|false|optional=true}} | {{Prototype property|scale_info_icons|[[Types/bool|bool]]|false|optional=true}} |
Revision as of 15:17, 21 October 2022
Template:Prototype parent A generic container, such as a chest. Can not be rotated.
Extensions
- Prototype/LogisticContainer logistic-container
- Prototype/InfinityContainer infinity-container
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
Template:Prototype property The number of slots in this container.
Template:Prototype property The picture displayed for this entity.
Optional properties
Template:Prototype property One of "with_bar" and "with_filters_and_bar". Whether the inventory of this container can be filtered (like cargo wagons) or not.
Template:Prototype property If the inventory limiter (red X) is visible in the chest's GUI. This does not change the inventory itself (LuaInventory.supports_bar() will not change and the bar can still be modified by script).
Template:Prototype property If the icons of items shown in alt-mode should be scaled to the containers size.
Template:Prototype property Defines how wires visually connect to this container.
Template:Prototype property The maximum circuit wire distance for this container.
Template:Prototype property The pictures displayed for circuit connections to this container.