Types/IconSpecification

From Official Factorio Wiki
Revision as of 09:32, 19 May 2018 by Bilka (talk | contribs) (Created page with "== Basics == Specifies the icon of an entity/item/technology/recipe etc. Either <code>icons</code> and optionally <code>icon_size</code>, or both <code>icon</code> and <code>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Basics

Specifies the icon of an entity/item/technology/recipe etc.

Either icons and optionally icon_size, or both icon and icon_size have to be specified.

Properties: Option 1

icons

Type: Types/table of Types/IconData

icon_size

Type: Types/SpriteSizeType

Mandatory if icon_size is not specified inside all instances of Types/IconData inside icons. The size of the square icon, in pixels, e.g. 32 for a 32px by 32px icon.

Properties: Option 2

icon

Type: Types/FileName

Path to the icon file.

icon_size

Type: Types/SpriteSizeType

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