|
|
Line 2: |
Line 2: |
|
| |
|
| </p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div> | | </p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div> |
|
| |
|
| |
|
| |
| Extension of [[Types/StyleSpecification]].<br>
| |
| Style specification type: '''table_style'''
| |
|
| |
| == Optional properties ==
| |
| Inherits all properties from [[Types/StyleSpecification]].
| |
|
| |
| === horizontal_spacing ===
| |
| '''Type''': [[Types/int32|int32]]
| |
|
| |
| === vertical_spacing ===
| |
| '''Type''': [[Types/int32|int32]]
| |
|
| |
| === cell_padding ===
| |
| '''Type''': [[Types/int16|int16]]
| |
|
| |
| Sets <code>top_cell_padding</code>, <code>right_cell_padding</code>, <code>bottom_cell_padding</code> and <code>left_cell_padding</code>.
| |
|
| |
| === top_cell_padding ===
| |
| '''Type''': [[Types/int16|int16]]
| |
|
| |
| === right_cell_padding ===
| |
| '''Type''': [[Types/int16|int16]]
| |
|
| |
| === bottom_cell_padding ===
| |
| '''Type''': [[Types/int16|int16]]
| |
|
| |
| === left_cell_padding ===
| |
| '''Type''': [[Types/int16|int16]]
| |
|
| |
| === apply_row_graphical_set_per_column ===
| |
| '''Type''': [[Types/bool|bool]]
| |
|
| |
| === column_graphical_set ===
| |
| '''Type''': [[Types/ElementImageSet|ElementImageSet]]
| |
|
| |
| === default_row_graphical_set ===
| |
| '''Type''': [[Types/ElementImageSet|ElementImageSet]]
| |
|
| |
| === even_row_graphical_set ===
| |
| '''Type''': [[Types/ElementImageSet|ElementImageSet]]
| |
|
| |
| === odd_row_graphical_set ===
| |
| '''Type''': [[Types/ElementImageSet|ElementImageSet]]
| |
|
| |
| === hovered_graphical_set ===
| |
| '''Type''': [[Types/ElementImageSet|ElementImageSet]]
| |
|
| |
| === clicked_graphical_set ===
| |
| '''Type''': [[Types/ElementImageSet|ElementImageSet]]
| |
|
| |
| === selected_graphical_set ===
| |
| '''Type''': [[Types/ElementImageSet|ElementImageSet]]
| |
|
| |
| === selected_hovered_graphical_set ===
| |
| '''Type''': [[Types/ElementImageSet|ElementImageSet]]
| |
|
| |
| === selected_clicked_graphical_set ===
| |
| '''Type''': [[Types/ElementImageSet|ElementImageSet]]
| |
|
| |
| === background_graphical_set ===
| |
| '''Type''': [[Types/ElementImageSet|ElementImageSet]]
| |
|
| |
| === column_alignments ===
| |
| '''Type''': [[Types/table|table]] of [[Types/table|table]]
| |
|
| |
| Array of tables with the following mandatory key/value pairs:
| |
| * column - [[Types/uint32|uint32]] - Column index
| |
| * alignment - [[Types/string|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''': [[Types/table|table]] of [[Types/table|table]]
| |
|
| |
| Array of tables with the following key/value pairs:
| |
| * column - [[Types/uint32|uint32]] - Mandatory. Column index
| |
| * minimal_width - [[Types/int32|int32]] - Optional. Default is 0.
| |
| * maximal_width - [[Types/int32|int32]] - Optional. Default is 0.
| |
| * width - [[Types/int32|int32]] - Optional. Sets min and max width at once.
| |
|
| |
| === hovered_row_color ===
| |
| '''Type''': [[Types/Color|Color]]
| |
|
| |
| === selected_row_color ===
| |
| '''Type''': [[Types/Color|Color]]
| |
|
| |
| === vertical_line_color ===
| |
| '''Type''': [[Types/Color|Color]]
| |
|
| |
| === horizontal_line_color ===
| |
| '''Type''': [[Types/Color|Color]]
| |
|
| |
| === column_ordering_ascending_button_style ===
| |
| '''Type''': [[Types/ButtonStyleSpecification|ButtonStyleSpecification]]
| |
|
| |
| === column_ordering_descending_button_style ===
| |
| '''Type''': [[Types/ButtonStyleSpecification|ButtonStyleSpecification]]
| |
|
| |
| === inactive_column_ordering_ascending_button_style ===
| |
| '''Type''': [[Types/ButtonStyleSpecification|ButtonStyleSpecification]]
| |
|
| |
| === inactive_column_ordering_descending_button_style ===
| |
| '''Type''': [[Types/ButtonStyleSpecification|ButtonStyleSpecification]]
| |
|
| |
| === border ===
| |
| '''Type''': [[Types/BorderImageSet|BorderImageSet]]
| |
The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/TableStyleSpecification.html
This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.