Prototype/ItemGroup: Difference between revisions
Jump to navigation
Jump to search
m (→order: fixed type) |
(overhaul to include Prototype) |
||
Line 3: | Line 3: | ||
== Properties == | == Properties == | ||
Inherits all properties from [[Prototype]]. | |||
=== icon === | === icon === | ||
'''Type''': [[Types/FileName]] | '''Type''': [[Types/FileName]] | ||
The | 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 === | ||
'' | :''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".