Inherits from SpriteParameters |
layers optional | :: array[RotatedSprite] |
If this property is present, all RotatedSprite definitions have to be placed as entries in the array, and they will all be loaded from there. |
If this property is present, all RotatedSprite definitions have to be placed as entries in the array, and they will all be loaded from there. |
||
direction_count | :: uint16 |
Count of direction (frames) specified. |
Count of direction (frames) specified. |
||
hr_version optional | :: RotatedSprite |
Only loaded if |
Only loaded if |
||
filenames | :: array[FileName] |
Only loaded if both |
Only loaded if both |
||
lines_per_file optional | :: uint64 |
Only loaded if |
Only loaded if |
||
slice or dice optional | :: SpriteSizeType |
Only loaded if |
Only loaded if |
||
slice_x or dice_x optional | :: SpriteSizeType |
Only loaded if |
Only loaded if |
||
slice_y or dice_y optional | :: SpriteSizeType |
Only loaded if |
Only loaded if |
||
axially_symmetrical optional | :: bool |
Only loaded if |
Only loaded if |
||
back_equals_front optional | :: bool |
Only loaded if |
Only loaded if |
||
apply_projection optional | :: bool |
Only loaded if |
Only loaded if |
||
counterclockwise optional | :: bool |
Only loaded if |
Only loaded if |
||
line_length optional | :: uint32 |
Only loaded if |
Only loaded if |
||
allow_low_quality_rotation optional | :: bool |
Only loaded if |
Only loaded if |
filename [overridden] | :: FileName |
The path to the sprite file to use. |
The path to the sprite file to use. |
||
priority optional | :: SpritePriority |
|
flags optional | :: SpriteFlags |
|
size optional | :: SpriteSizeType or {SpriteSizeType, SpriteSizeType} |
The width and height of the sprite. |
The width and height of the sprite. |
||
width optional | :: SpriteSizeType |
Mandatory if |
Mandatory if |
||
height optional | :: SpriteSizeType |
Mandatory if |
Mandatory if |
||
x optional | :: SpriteSizeType |
Horizontal position of the sprite in the source file in pixels. |
Horizontal position of the sprite in the source file in pixels. |
||
y optional | :: SpriteSizeType |
Vertical position of the sprite in the source file in pixels. |
Vertical position of the sprite in the source file in pixels. |
||
position optional | :: {SpriteSizeType, SpriteSizeType} |
Loaded only when |
Loaded only when |
||
shift optional | :: Vector |
The shift in tiles. |
The shift in tiles. |
||
scale optional | :: double |
Values other than |
Values other than |
||
draw_as_shadow optional | :: bool |
Only one of |
Only one of |
||
draw_as_glow optional | :: bool |
Only one of |
Only one of |
||
draw_as_light optional | :: bool |
Only one of |
Only one of |
||
mipmap_count optional | :: uint8 |
Only loaded if this is an icon, that is it has the flag |
Only loaded if this is an icon, that is it has the flag |
||
apply_runtime_tint optional | :: bool |
|
tint optional | :: Color |
|
blend_mode optional | :: BlendMode |
|
load_in_minimal_mode optional | :: bool |
Minimal mode is entered when mod loading fails. |
Minimal mode is entered when mod loading fails. |
||
premul_alpha optional | :: bool |
Whether alpha should be pre-multiplied. |
Whether alpha should be pre-multiplied. |
||
generate_sdf [overridden] optional | :: bool |
This property is only used by sprites used in UtilitySprites that have the |
This property is only used by sprites used in UtilitySprites that have the |
pictures = { layers = { { filename = "__base__/graphics/entity/radar/radar.png", priority = "low", width = 98, height = 128, apply_projection = false, direction_count = 64, line_length = 8, shift = util.by_pixel(1, -16), hr_version = { filename = "__base__/graphics/entity/radar/hr-radar.png", priority = "low", width = 196, height = 254, apply_projection = false, direction_count = 64, line_length = 8, shift = util.by_pixel(1, -16), scale = 0.5 } }, { filename = "__base__/graphics/entity/radar/radar-shadow.png", priority = "low", width = 172, height = 94, apply_projection = false, direction_count = 64, line_length = 8, shift = util.by_pixel(39,3), draw_as_shadow = true, hr_version = { filename = "__base__/graphics/entity/radar/hr-radar-shadow.png", priority = "low", width = 343, height = 186, apply_projection = false, direction_count = 64, line_length = 8, shift = util.by_pixel(39.25,3), draw_as_shadow = true, scale = 0.5 } } } }