Style of a GUI element. All of the attributes listed here may be nil
if not available for a
particular GUI element.
gui :: LuaGui [R] | Gui of the LuaGuiElement of this style. |
name :: string [R] | Name of this style. |
minimal_width :: int [RW] | Minimal width ensures, that the widget will never be smaller than than that size. |
maximal_width :: int [RW] | Maximal width ensures, that the widget will never be bigger than than that size. |
minimal_height :: int [RW] | Minimal height ensures, that the widget will never be smaller than than that size. |
maximal_height :: int [RW] | Maximal height ensures, that the widget will never be bigger than than that size. |
natural_width :: int [RW] | Natural width specifies the width of the element tries to have, but it can still be squashed/stretched to have a smaller or bigger size. |
natural_height :: int [RW] | Natural height specifies the height of the element tries to have, but it can still be squashed/stretched to have a smaller or bigger size. |
top_padding :: int [RW] | |
right_padding :: int [RW] | |
bottom_padding :: int [RW] | |
left_padding :: int [RW] | |
top_margin :: int [RW] | |
right_margin :: int [RW] | |
bottom_margin :: int [RW] | |
left_margin :: int [RW] | |
horizontal_align :: string [RW] | Horizontal align of the inner content of the widget, possible values are "left", "center" or "right" |
vertical_align :: string [RW] | Vertical align of the inner content of the widget, possible values are "top", "center" or "bottom" |
font_color :: Color [RW] | |
font :: string [RW] | |
top_cell_padding :: int [RW] | Space between the table cell contents top and border. |
right_cell_padding :: int [RW] | Space between the table cell contents right and border. |
bottom_cell_padding :: int [RW] | Space between the table cell contents bottom and border. |
left_cell_padding :: int [RW] | Space between the table cell contents left and border. |
horizontally_stretchable :: boolean [RW] | If the GUI element stretches its size horizontally to other elements. |
vertically_stretchable :: boolean [RW] | If the GUI element stretches its size vertically to other elements. |
horizontally_squashable :: boolean [RW] | If the GUI element can be squashed (by maximal width of some parent element) horizontally. |
vertically_squashable :: boolean [RW] | If the GUI element can be squashed (by maximal height of some parent element) vertically. |
rich_text_setting :: defines.rich_text_setting [RW] | How this GUI element handles rich text. |
hovered_font_color :: Color [RW] | |
clicked_font_color :: Color [RW] | |
disabled_font_color :: Color [RW] | |
pie_progress_color :: Color [RW] | |
clicked_vertical_offset :: int [RW] | |
selected_font_color :: Color [RW] | |
selected_hovered_font_color :: Color [RW] | |
selected_clicked_font_color :: Color [RW] | |
strikethrough_color :: Color [RW] | |
horizontal_spacing :: int [RW] | Horizontal space between individual cells. |
vertical_spacing :: int [RW] | Vertical space between individual cells. |
use_header_filler :: boolean [RW] | |
color :: Color [RW] | |
column_alignments :: LuaCustomTable[uint → Alignment] [R] | Array containing the alignment for every column of this table element. |
single_line :: boolean [RW] | |
extra_top_padding_when_activated :: int [RW] | |
extra_bottom_padding_when_activated :: int [RW] | |
extra_left_padding_when_activated :: int [RW] | |
extra_right_padding_when_activated :: int [RW] | |
extra_top_margin_when_activated :: int [RW] | |
extra_bottom_margin_when_activated :: int [RW] | |
extra_left_margin_when_activated :: int [RW] | |
extra_right_margin_when_activated :: int [RW] | |
stretch_image_to_widget_size :: boolean [RW] | |
badge_font :: string [RW] | |
badge_horizontal_spacing :: int [RW] | |
default_badge_font_color :: Color [RW] | |
selected_badge_font_color :: Color [RW] | |
disabled_badge_font_color :: Color [RW] | |
width :: int [W] | Sets both minimal and maximal width to the given value. |
height :: int [W] | Sets both minimal and maximal height to the given value. |
size :: int or array[int] [W] | Sets both width and height to the given value. |
padding :: int or array[int] [W] | Sets top/right/bottom/left paddings to this value. |
margin :: int or array[int] [W] | Sets top/right/bottom/left margins to this value. |
cell_padding :: int [W] | Space between the table cell contents and border. |
extra_padding_when_activated :: int or array[int] [W] | Sets extra_top/right/bottom/left_padding_when_actived to this value. |
extra_margin_when_activated :: int or array[int] [W] | Sets extra_top/right/bottom/left_margin_when_activated to this value. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
Gui of the LuaGuiElement of this style.
Name of this style.
Minimal width ensures, that the widget will never be smaller than than that size. It can't be squashed to be smaller.
Maximal width ensures, that the widget will never be bigger than than that size. It can't be stretched to be bigger.
Minimal height ensures, that the widget will never be smaller than than that size. It can't be squashed to be smaller.
Maximal height ensures, that the widget will never be bigger than than that size. It can't be stretched to be bigger.
Natural width specifies the width of the element tries to have, but it can still be squashed/stretched to have a smaller or bigger size.
Natural height specifies the height of the element tries to have, but it can still be squashed/stretched to have a smaller or bigger size.
Horizontal align of the inner content of the widget, possible values are "left", "center" or "right"
Vertical align of the inner content of the widget, possible values are "top", "center" or "bottom"
Space between the table cell contents top and border.
Space between the table cell contents right and border.
Space between the table cell contents bottom and border.
Space between the table cell contents left and border.
If the GUI element stretches its size horizontally to other elements.
If the GUI element stretches its size vertically to other elements.
If the GUI element can be squashed (by maximal width of some parent element) horizontally. This is mainly meant to be used for scroll-pane The default value is false.
If the GUI element can be squashed (by maximal height of some parent element) vertically. This is mainly meant to be used for scroll-pane The default (parent) value for scroll pane is true, false otherwise.
How this GUI element handles rich text.
Horizontal space between individual cells.
Vertical space between individual cells.
Array containing the alignment for every column of this table element. Even though this property is marked as read-only, the alignment can be changed by indexing the LuaCustomTable, like so:
table_element.style.column_alignments[1] = "center"
Sets both minimal and maximal width to the given value.
Sets both minimal and maximal height to the given value.
Sets both width and height to the given value. Also accepts an array with two values, setting width to the first and height to the second one.
Sets top/right/bottom/left paddings to this value. An array with two values sets top/bottom padding to the first value and left/right padding to the second value. An array with four values sets top, right, bottom, left padding respectively.
Sets top/right/bottom/left margins to this value. An array with two values sets top/bottom margin to the first value and left/right margin to the second value. An array with four values sets top, right, bottom, left margin respectively.
Space between the table cell contents and border. Sets top/right/bottom/left cell paddings to this value.
Sets extra_top/right/bottom/left_padding_when_actived to this value. An array with two values sets top/bottom padding to the first value and left/right padding to the second value. An array with four values sets top, right, bottom, left padding respectively.
Sets extra_top/right/bottom/left_margin_when_activated to this value. An array with two values sets top/bottom margin to the first value and left/right margin to the second value. An array with four values sets top, right, bottom, left margin respectively.