RotatedSprite :: struct Example code
| Inherits from SpriteParameters « SpriteSource |
| 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 optional | :: uint16 | Only loaded, and mandatory if |
Only loaded, and mandatory if | ||
| filenames optional | :: array[FileName] | Only loaded, and mandatory if both |
Only loaded, and mandatory if both | ||
| lines_per_file optional | :: uint64 | Only loaded if |
Only loaded if | ||
| dice optional | :: SpriteSizeType | Only loaded if |
Only loaded if | ||
| dice_x optional | :: SpriteSizeType | Only loaded if |
Only loaded if | ||
| dice_y optional | :: SpriteSizeType | Only loaded if |
Only loaded if | ||
| back_equals_front optional | :: boolean | Only loaded if |
Only loaded if | ||
| apply_projection optional | :: boolean | Only loaded if |
Only loaded if | ||
| counterclockwise optional | :: boolean | Only loaded if |
Only loaded if | ||
| line_length optional | :: uint32 | Only loaded if |
Only loaded if | ||
| allow_low_quality_rotation optional | :: boolean | Only loaded if |
Only loaded if | ||
| frames optional | :: array[RotatedSpriteFrame] | A list of overrides and customizations for each specific frame within the rotated sprite. [...] |
A list of overrides and customizations for each specific frame within the rotated sprite. [...] | ||
| priority optional | :: SpritePriority | |
| flags optional | :: SpriteFlags | |
| shift optional | :: Vector | The shift in tiles. [...] |
The shift in tiles. [...] | ||
| rotate_shift optional | :: boolean | Whether to rotate the |
Whether to rotate the | ||
| apply_special_effect optional | :: boolean | |
| scale optional | :: double | Values other than |
Values other than | ||
| draw_as_shadow optional | :: boolean | Only one of |
Only one of | ||
| draw_as_glow optional | :: boolean | Only one of |
Only one of | ||
| draw_as_light optional | :: boolean | Only one of |
Only one of | ||
| occludes_light optional | :: boolean | Loaded only if |
Loaded only if | ||
| 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 | :: boolean | |
| tint_as_overlay optional | :: boolean | |
| invert_colors optional | :: boolean | |
| tint optional | :: Color | |
| blend_mode optional | :: BlendMode | |
| generate_sdf[overridden] optional | :: boolean | Only loaded if |
Only loaded if | ||
| surface optional | :: SpriteUsageSurfaceHint | 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. |
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. | ||
| usage optional | :: SpriteUsageHint | Provides hint to sprite atlas system, so it can pack sprites that are related to each other to the same sprite atlas. |
Provides hint to sprite atlas system, so it can pack sprites that are related to each other to the same sprite atlas. | ||
| filename[overridden] optional | :: FileName | Only loaded if |
Only loaded if | ||
| 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 | ||
| load_in_minimal_mode optional | :: boolean | Minimal mode is entered when mod loading fails. [...] |
Minimal mode is entered when mod loading fails. [...] | ||
| premul_alpha optional | :: boolean | Whether alpha should be pre-multiplied. |
Whether alpha should be pre-multiplied. | ||
| allow_forced_downscale optional | :: boolean | If |
If | ||
| color_channelsnew optional | :: 1 or 2 or 3 or 4 | All textures have 4 channels by default. [...] |
All textures have 4 channels by default. [...] | ||
Properties
layers :: array[RotatedSprite] optional 
direction_count :: uint16 optional 
filenames :: array[FileName] optional 
lines_per_file :: uint64 optional 
dice :: SpriteSizeType optional 
dice_x :: SpriteSizeType optional 
dice_y :: SpriteSizeType optional 
back_equals_front :: boolean optional 
apply_projection :: boolean optional 
counterclockwise :: boolean optional 
line_length :: uint32 optional 
allow_low_quality_rotation :: boolean optional 
frames :: array[RotatedSpriteFrame] optional 
Overridden Properties
Example 
pictures =
{
layers =
{
{
filename = "__base__/graphics/entity/radar/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 = 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
}
}
}
Type used in
- ArtilleryTurretPrototype::cannon_base_pictures
- ArtilleryTurretPrototype::cannon_barrel_pictures
- AsteroidCollectorGraphicsSet::status_lamp_picture_on
- AsteroidCollectorGraphicsSet::status_lamp_picture_full
- AsteroidCollectorGraphicsSet::status_lamp_picture_off
- AsteroidCollectorGraphicsSet::below_arm_pictures
- AsteroidCollectorGraphicsSet::below_ground_pictures
- AsteroidCollectorGraphicsSet::arm_link
- CorpsePrototype::underwater_patch
- CranePart::rotated_sprite
- CranePart::rotated_sprite_shadow
- CranePart::rotated_sprite_reflection
- ElectricPolePrototype::pictures
- PumpWagonConnectionGraphics::part_1
- PumpWagonConnectionGraphics::part_1_shadow
- PumpWagonConnectionGraphics::part_2
- PumpWagonConnectionGraphics::part_2_shadow
- RadarPrototype::pictures
- RailSupportGraphicsSet::underwater_structure
- RailSupportGraphicsSet::structure
- RollingStockRotatedSlopedGraphics::rotated
- RollingStockRotatedSlopedGraphics::sloped
- RotatedSprite::layers
- SpiderLegGraphicsSet::joint
- SpiderLegGraphicsSet::joint_shadow
- SpiderLegGraphicsSet::foot
- SpiderLegGraphicsSet::foot_shadow
- SpiderLegPart::top_end
- SpiderLegPart::middle
- SpiderLegPart::bottom_end
- TransportBeltAnimationSet::frozen_patch

