Prototype/ItemGroup: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (→‎order: fixed type)
(overhaul to include Prototype)
Line 3: Line 3:


== Properties ==
== Properties ==
=== type ===
Inherits all properties from [[Prototype]].
'''Type''': [[Types/string]]
 
Must be "item-group".
 
=== name ===
'''Type''': [[Types/string]]
 
The unique name of this item group.


=== icon ===
=== icon ===
'''Type''': [[Types/FileName]]
'''Type''': [[Types/FileName]]


The 64x64-pixel icon that is shown to represent this item group.
The icon that is shown to represent this item group.
 
=== icon_size ===
'''Type''': [[Types/uint]]


The size of the square icon, in pixels, e.g. 32 for a 32px by 32px icon.
=== order ===
=== order ===
'''Type''': [[Types/Order]]
:''See [[Prototype#order]]''


Item groups are sorted according to this field. An item group with order="a" will always be displayed before an item group with order="b".
Inherited from [[Prototype]]. Item groups are sorted according to this field. An item group with order="a" will always be displayed before an item group with order="b".

Revision as of 13:04, 23 January 2018

Basics

An item group. Item groups are shown above the list of craftable items in the player's inventory. The built-in groups are "logistics", "production", "intermediates" and "combat" but mods can define their own. See also Prototype/Item#group.

Properties

Inherits all properties from Prototype.

icon

Type: Types/FileName

The icon that is shown to represent this item group.

icon_size

Type: Types/uint

The size of the square icon, in pixels, e.g. 32 for a 32px by 32px icon.

order

See Prototype#order

Inherited from Prototype. Item groups are sorted according to this field. An item group with order="a" will always be displayed before an item group with order="b".