Specifies an image that can be used with SpritePath at runtime.
"sprite"falsefalsestringfalsefalseName of the sprite. Can be used as a SpritePath at runtime.
Array<Sprite>truefalseIf this property is present, all Sprite definitions have to be placed as entries in the array, and they will all be loaded from there. layers may not be an empty table. Each definition in the array may also have the layers property.
If this property is present, all other properties besides name and type are ignored.
FileNametruefalseOnly loaded, and mandatory if layers is not defined.
The path to the sprite file to use.
SpriteSizeTypetruefalseOnly loaded if layers is not defined.
Number of slices this is sliced into when using the "optimized atlas packing" option. If you are a modder, you can just ignore this property. Example: If this is 4, the sprite will be sliced into a 4x4 grid.
SpriteSizeTypetruefalseOnly loaded if layers is not defined.
Same as dice above, but this specifies only how many slices there are on the x axis.
SpriteSizeTypetruefalseOnly loaded if layers is not defined.
Same as dice above, but this specifies only how many slices there are on the y axis.
SpritePrioritytruefalseOnly loaded if layers is not defined.
SpriteFlagstruefalseOnly loaded if layers is not defined.
SpriteSizeType | Tuple<SpriteSizeType, SpriteSizeType>truefalseOnly loaded if layers is not defined.
The width and height of the sprite. If this is a tuple, the first member of the tuple is the width and the second is the height. Otherwise the size is both width and height. Width and height may only be in the range of 0-4096.
SpriteSizeTypetruefalseOnly loaded if layers is not defined. Mandatory if size is not defined.
Width of the picture in pixels, from 0-4096.
SpriteSizeTypetruefalseOnly loaded if layers is not defined. Mandatory if size is not defined.
Height of the picture in pixels, from 0-4096.
SpriteSizeTypetruefalseOnly loaded if layers is not defined.
Horizontal position of the sprite in the source file in pixels.
SpriteSizeTypetruefalseOnly loaded if layers is not defined.
Vertical position of the sprite in the source file in pixels.
Tuple<SpriteSizeType, SpriteSizeType>truefalseOnly loaded if layers is not defined.
Loaded only when x and y are both 0. The first member of the tuple is x and the second is y.
VectortruefalseOnly loaded if layers is not defined.
The shift in tiles. util.by_pixel() can be used to divide the shift by 32 which is the usual pixel height/width of 1 tile in normal resolution. Note that 32 pixel tile height/width is not enforced anywhere - any other tile height or width is also possible.
booleantruefalseOnly loaded if layers is not defined.
booleantruefalseOnly loaded if layers is not defined.
doubletruefalseOnly loaded if layers is not defined.
Values other than 1 specify the scale of the sprite on default zoom. A scale of 2 means that the picture will be two times bigger on screen (and thus more pixelated).
booleantruefalseOnly loaded if layers is not defined.
Only one of draw_as_shadow, draw_as_glow and draw_as_light can be true. This takes precedence over draw_as_glow and draw_as_light.
booleantruefalseOnly loaded if layers is not defined.
Only one of draw_as_shadow, draw_as_glow and draw_as_light can be true. This takes precedence over draw_as_light.
Draws first as a normal sprite, then again as a light layer. See https://forums.factorio.com/91682.
booleantruefalseOnly loaded if layers is not defined.
Only one of draw_as_shadow, draw_as_glow and draw_as_light can be true.
uint8truefalseOnly loaded if layers is not defined.
Only loaded if this is an icon, that is it has the flag "group=icon" or "group=gui".
booleantruefalseOnly loaded if layers is not defined.
booleantruefalseOnly loaded if layers is not defined.
booleantruefalseOnly loaded if layers is not defined.
ColortruefalseOnly loaded if layers is not defined.
BlendModetruefalseOnly loaded if layers is not defined.
booleantruefalseOnly loaded if layers is not defined.
Minimal mode is entered when mod loading fails. You are in it when you see the gray box after (part of) the loading screen that tells you a mod error. Modders can ignore this property.
booleantruefalseOnly loaded if layers is not defined.
Whether alpha should be pre-multiplied.
booleantruefalseOnly loaded if layers is not defined.
If true, the sprite may be downsampled to half its size on load even when 'Sprite quality' graphics setting is set to 'High'. Whether downsampling happens depends on detected hardware and other graphics settings.
booleantruefalseOnly loaded if layers is not defined.
Unused.
SpriteUsageSurfaceHinttruefalseOnly loaded if layers is not defined.
Provides hint to sprite atlas system, so it can try to put sprites that are intended to be used at the same locations to the same sprite atlas.
SpriteUsageHinttruefalseOnly loaded if layers is not defined.
Provides hint to sprite atlas system, so it can pack sprites that are related to each other to the same sprite atlas.