Prototype/ItemGroup: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(overhaul to include Prototype)
Line 5: Line 5:
Inherits all properties from [[Prototype]].
Inherits all properties from [[Prototype]].


=== icon ===
=== icons, icon,  icon_size (IconSpecification) ===
'''Type''': [[Types/FileName]]
'''Type''': [[Types/IconSpecification]]


The 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 ===

Revision as of 10:08, 19 May 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.

icons, icon, icon_size (IconSpecification)

Type: Types/IconSpecification

The icon that is shown to represent this item group.

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".