Prototype/Container: Difference between revisions
(0.17) |
m (words) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/EntityWithOwner}} | |||
A generic container, such as a chest. Can not be rotated. | |||
{{Prototype TOC|container}} | |||
== Extensions == | == Extensions == | ||
Line 9: | Line 9: | ||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/ | This prototype inherits all the properties from [[Prototype/EntityWithOwner]]. | ||
{{Prototype property|inventory_size|[[Types/uint16|uint16]]}} | |||
The number of slots in this container. | |||
The | {{Prototype property|picture|[[Types/Sprite|Sprite]]}} | ||
The picture displayed for this entity. | |||
== Optional properties == | == Optional properties == | ||
{{Prototype property|inventory_type|[[Types/string|string]]|"with_bar"|optional=true}} | |||
One of "with_bar" and "with_filters_and_bar". Whether the inventory of this container can be filtered (like cargo wagons) or not. | |||
' | {{Prototype property|enable_inventory_bar|[[Types/bool|bool]]|true|optional=true}} | ||
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}} | |||
If the icons of items shown in alt-mode should be scaled to the containers size. | If the icons of items shown in alt-mode should be scaled to the containers size. | ||
{{Prototype property|circuit_wire_connection_point|[[Types/WireConnectionPoint|WireConnectionPoint]]|optional=true}} | |||
Defines how wires visually connect to this container. | Defines how wires visually connect to this container. | ||
{{Prototype property|circuit_wire_max_distance|[[Types/double|double]]|0|optional=true}} | |||
The maximum circuit wire distance for this container. | The maximum circuit wire distance for this container. | ||
{{Prototype property|draw_copper_wires|[[Types/bool|bool]]|true|optional=true}} | |||
= | |||
{{Prototype property|draw_circuit_wires|[[Types/bool|bool]]|true|optional=true}} | |||
{{Prototype property|circuit_connector_sprites|[[Types/CircuitConnectorSprites|CircuitConnectorSprites]]|optional=true}} | |||
The pictures displayed for circuit connections to this container. | The pictures displayed for circuit connections to this container. |
Latest revision as of 15:17, 21 October 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Container
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.
inventory_size
Type: uint16
The number of slots in this container.
picture
Type: Sprite
The picture displayed for this entity.
Optional properties
inventory_type
Type: string
Default: "with_bar"
One of "with_bar" and "with_filters_and_bar". Whether the inventory of this container can be filtered (like cargo wagons) or not.
enable_inventory_bar
Type: bool
Default: true
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).
scale_info_icons
Type: bool
Default: false
If the icons of items shown in alt-mode should be scaled to the containers size.
circuit_wire_connection_point
Type: WireConnectionPoint
Defines how wires visually connect to this container.
circuit_wire_max_distance
Type: double
Default: 0
The maximum circuit wire distance for this container.
draw_copper_wires
Type: bool
Default: true
draw_circuit_wires
Type: bool
Default: true
circuit_connector_sprites
Type: CircuitConnectorSprites
The pictures displayed for circuit connections to this container.