Home

ElementImageSetLayer

If this is loaded as a Sprite, it gets used as center.

Type

struct | Sprite

Properties

draw_type

Defines whether the border should be drawn inside the widget, which affects the padding and content size of the widget, or outside of the widget which doesn't affect size. The outer draw type is most commonly used for shadows, glows and insets.

type

tint

Only loaded if type is "composition".

center

Only loaded if type is "composition".

left

Only loaded if type is "composition".

left_top

Only loaded if type is "composition".

left_bottom

Only loaded if type is "composition".

Only loaded if type is "composition".

right_top

Only loaded if type is "composition".

right_bottom

Only loaded if type is "composition".

top

Only loaded if type is "composition".

bottom

Only loaded if type is "composition".

corner_size

If this is a tuple, the first member of the tuple is width and the second is height. Otherwise the size is both width and height.

Only loaded if type is "composition".

Examples

{
  -- How an ElementImageSet is loaded which has only one layer, which uses the corner_size shown in the diagram
  base = {position = {0, 17}, corner_size = 8}
}

filename

Only loaded if corner_size is defined. Only loaded if type is "composition".

position

Mandatory if corner_size is defined. Only loaded if type is "composition".

load_in_minimal_mode

Only loaded if corner_size is defined. Only loaded if type is "composition".

top_width

Only loaded if corner_size is defined. Only loaded if type is "composition".

bottom_width

Only loaded if corner_size is defined. Only loaded if type is "composition".

left_height

Only loaded if corner_size is defined. Only loaded if type is "composition".

right_height

Only loaded if corner_size is defined. Only loaded if type is "composition".

center_width

Only loaded if corner_size is defined. Only loaded if type is "composition".

center_height

Only loaded if corner_size is defined. Only loaded if type is "composition".

scale

Only loaded if corner_size is defined. Only loaded if type is "composition".

top_border

Only loaded if type is "composition".

right_border

Only loaded if type is "composition".

bottom_border

Only loaded if type is "composition".

left_border

Only loaded if type is "composition".

border

Sets top_border, right_border, bottom_border and left_border.

Only loaded if corner_size is not defined. Only loaded if type is "composition".

stretch_monolith_image_to_size

Only loaded if type is "composition".

left_tiling

Tiling is used to make a side (not corner) texture repeat instead of being stretched.

right_tiling

top_tiling

bottom_tiling

center_tiling_vertical

center_tiling_horizontal

overall_tiling_horizontal_size

Overall tiling is used to make the overall texture repeat instead of being stretched.

overall_tiling_horizontal_spacing

overall_tiling_horizontal_padding

overall_tiling_vertical_size

overall_tiling_vertical_spacing

overall_tiling_vertical_padding

custom_horizontal_tiling_sizes

opacity

background_blur

background_blur_sigma

top_outer_border_shift

bottom_outer_border_shift

right_outer_border_shift

left_outer_border_shift