Types/TableStyleSpecification

From Official Factorio Wiki
Jump to navigation Jump to search

Extension of Types/StyleSpecification.
Style specification type: table_style

Optional properties

Inherits all properties from Types/StyleSpecification.

horizontal_spacing

Type: int32

vertical_spacing

Type: int32

cell_padding

Type: int16

Sets top_cell_padding, right_cell_padding, bottom_cell_padding and left_cell_padding.

top_cell_padding

Type: int16

right_cell_padding

Type: int16

bottom_cell_padding

Type: int16

left_cell_padding

Type: int16

apply_row_graphical_set_per_column

Type: bool

column_graphical_set

Type: ElementImageSet

default_row_graphical_set

Type: ElementImageSet

even_row_graphical_set

Type: ElementImageSet

odd_row_graphical_set

Type: ElementImageSet

hovered_graphical_set

Type: ElementImageSet

clicked_graphical_set

Type: ElementImageSet

selected_graphical_set

Type: ElementImageSet

selected_hovered_graphical_set

Type: ElementImageSet

selected_clicked_graphical_set

Type: ElementImageSet

background_graphical_set

Type: ElementImageSet

column_alignments

Type: table of table

Array of tables with the following mandatory key/value pairs:

  • column - uint32 - Column index
  • alignment - string - Either "center", "left", "right", "top-left", "middle-left", "bottom-left", "top-center", "middle-center", "bottom-center", "top-right", "middle-right" or "bottom-right".

column_widths

Type: table of table

Array of tables with the following key/value pairs:

  • column - uint32 - Mandatory. Column index
  • minimal_width - int32 - Optional. Default is 0.
  • maximal_width - int32 - Optional. Default is 0.
  • width - int32 - Optional. Sets min and max width at once.

hovered_row_color

Type: Color

selected_row_color

Type: Color

vertical_line_color

Type: Color

horizontal_line_color

Type: Color

column_ordering_ascending_button_style

Type: ButtonStyleSpecification

column_ordering_descending_button_style

Type: ButtonStyleSpecification

inactive_column_ordering_ascending_button_style

Type: ButtonStyleSpecification

inactive_column_ordering_descending_button_style

Type: ButtonStyleSpecification

border

Type: BorderImageSet