Inherits from TileSpriteLayoutVariant |
x_offset optional | :: SpriteSizeType | |
y_offset optional | :: SpriteSizeType | |
inner_corner optional | :: TileSpriteLayoutVariant | Defaults to the values set in the |
Defaults to the values set in the | ||
outer_corner optional | :: TileSpriteLayoutVariant | Defaults to the values set in the |
Defaults to the values set in the | ||
side optional | :: TileSpriteLayoutVariant | Defaults to the values set in the |
Defaults to the values set in the | ||
double_side optional | :: TileSpriteLayoutVariant | Defaults to the values set in the |
Defaults to the values set in the | ||
u_transition optional | :: TileSpriteLayoutVariant | Defaults to the values set in the |
Defaults to the values set in the | ||
o_transition optional | :: TileSpriteLayoutVariant | Defaults to the values set in the |
Defaults to the values set in the | ||
inner_corner_scale optional | :: float | |
inner_corner_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. | ||
inner_corner_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. | ||
inner_corner_tile_height optional | :: uint8 | |
inner_corner_line_length optional | :: uint8 | |
inner_corner_count optional | :: uint8 | |
outer_corner_scale optional | :: float | |
outer_corner_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. | ||
outer_corner_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. | ||
outer_corner_tile_height optional | :: uint8 | |
outer_corner_line_length optional | :: uint8 | |
outer_corner_count optional | :: uint8 | |
side_scale optional | :: float | |
side_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. | ||
side_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. | ||
side_tile_height optional | :: uint8 | |
side_line_length optional | :: uint8 | |
side_count optional | :: uint8 | |
double_side_scale optional | :: float | |
double_side_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. | ||
double_side_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. | ||
double_side_tile_height optional | :: uint8 | |
double_side_line_length optional | :: uint8 | |
double_side_count optional | :: uint8 | |
u_transition_scale optional | :: float | |
u_transition_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. | ||
u_transition_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. | ||
u_transition_tile_height optional | :: uint8 | |
u_transition_line_length optional | :: uint8 | |
u_transition_count optional | :: uint8 | |
o_transition_scale optional | :: float | |
o_transition_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. | ||
o_transition_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. | ||
o_transition_tile_height optional | :: uint8 | |
o_transition_line_length optional | :: uint8 | |
o_transition_count optional | :: uint8 |
spritesheet optional | :: FileName | |
scale optional | :: float | |
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. | ||
tile_height optional | :: uint8 | Height of the transition sprite in tiles. [...] |
Height of the transition sprite in tiles. [...] | ||
line_length optional | :: uint8 | Once the specified number of pictures is loaded, other pictures are loaded on other line. [...] |
Once the specified number of pictures is loaded, other pictures are loaded on other line. [...] | ||
count optional | :: uint8 | Frame count. |
Frame count. |
-- longest version, using TileSpriteLayoutVariant tables for each variant
{
inner_corner =
{
scale = 0.5,
count = 8,
},
outer_corner =
{
scale = 0.5,
count = 8,
x = 576
},
u_transition =
{
scale = 0.5,
count = 1,
x = 1728
},
[...]
}
-- The above version is quite verbose, scale is duplicated in each variant layout.
-- So it is possible to define default value of each property of TileSpriteLayoutVariant directly in TileTransitionVariantLayout:
{
scale = 0.5,
inner_corner =
{
count = 8,
},
outer_corner =
{
count = 8,
x = 576
},
u_transition =
{
count = 1,
x = 1728
},
[...]
}
-- The above version is creating a table to just specify inner_corner has 8 count. It can be shorter by using variant prefix properties:
{
scale = 0.5,
inner_corner_count = 8,
outer_corner_count = 8,
u_transition_count = 1,
outer_corner_x = 576,
u_transition_x = 1728,
[...]
}