ClassLuaStylechanged
Members
| get_style(style_name, create?) new | → LuaStyle? | Gets the given sub-style of this style if it exists. [...] |
Gets the given sub-style of this style if it exists. [...] | ||
| gui | :: R LuaGui | Gui of the LuaGuiElement of this style. |
Gui of the LuaGuiElement of this style. | ||
| name changed | :: RW string | Name of this style. |
Name of this style. | ||
| minimal_width | :: RW int32 | Minimal width ensures, that the widget will never be smaller than than that size. [...] |
Minimal width ensures, that the widget will never be smaller than than that size. [...] | ||
| maximal_width | :: RW int32 | Maximal width ensures, that the widget will never be bigger than than that size. [...] |
Maximal width ensures, that the widget will never be bigger than than that size. [...] | ||
| minimal_height | :: RW int32 | Minimal height ensures, that the widget will never be smaller than than that size. [...] |
Minimal height ensures, that the widget will never be smaller than than that size. [...] | ||
| maximal_height | :: RW int32 | Maximal height ensures, that the widget will never be bigger than than that size. [...] |
Maximal height ensures, that the widget will never be bigger than than that size. [...] | ||
| natural_width | :: RW int32 | 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 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 | :: RW int32 | 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. |
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 | :: RW int16 | |
| right_padding | :: RW int16 | |
| bottom_padding | :: RW int16 | |
| left_padding | :: RW int16 | |
| top_margin | :: RW int16 | |
| right_margin | :: RW int16 | |
| bottom_margin | :: RW int16 | |
| left_margin | :: RW int16 | |
| horizontal_align | :: RW "left" or "center" or "right"? | Horizontal align of the inner content of the widget, if any. |
Horizontal align of the inner content of the widget, if any. | ||
| vertical_align | :: RW "top" or "center" or "bottom"? | Vertical align of the inner content of the widget, if any. |
Vertical align of the inner content of the widget, if any. | ||
| font_color | :: RW Color | |
| font | :: RW string | |
| top_cell_padding | :: RW int16 | Space between the table cell contents top and border. |
Space between the table cell contents top and border. | ||
| right_cell_padding | :: RW int16 | Space between the table cell contents right and border. |
Space between the table cell contents right and border. | ||
| bottom_cell_padding | :: RW int16 | Space between the table cell contents bottom and border. |
Space between the table cell contents bottom and border. | ||
| left_cell_padding | :: RW int16 | Space between the table cell contents left and border. |
Space between the table cell contents left and border. | ||
| horizontally_stretchable | :: RW boolean? | Whether the GUI element stretches its size horizontally to other elements. [...] |
Whether the GUI element stretches its size horizontally to other elements. [...] | ||
| vertically_stretchable | :: RW boolean? | Whether the GUI element stretches its size vertically to other elements. [...] |
Whether the GUI element stretches its size vertically to other elements. [...] | ||
| horizontally_squashable | :: RW boolean? | Whether the GUI element can be squashed (by maximal width of some parent element) horizontally. [...] |
Whether the GUI element can be squashed (by maximal width of some parent element) horizontally. [...] | ||
| vertically_squashable | :: RW boolean? | Whether the GUI element can be squashed (by maximal height of some parent element) vertically. [...] |
Whether the GUI element can be squashed (by maximal height of some parent element) vertically. [...] | ||
| rich_text_setting | :: RW defines.rich_text_setting | How this GUI element handles rich text. |
How this GUI element handles rich text. | ||
| hovered_font_color | :: RW Color | |
| clicked_font_color | :: RW Color | |
| disabled_font_color | :: RW Color | |
| pie_progress_color | :: RW Color | |
| clicked_vertical_offset | :: RW uint32 | |
| selected_font_color | :: RW Color | |
| selected_hovered_font_color | :: RW Color | |
| selected_clicked_font_color | :: RW Color | |
| strikethrough_color | :: RW Color | |
| draw_grayscale_picture | :: RW boolean | |
| horizontal_spacing | :: RW int32 | Horizontal space between individual cells. |
Horizontal space between individual cells. | ||
| vertical_spacing | :: RW int32 | Vertical space between individual cells. |
Vertical space between individual cells. | ||
| use_header_filler | :: RW boolean | |
| bar_width | :: RW uint32 | The thickness of the bar, not the horizontal width. |
The thickness of the bar, not the horizontal width. | ||
| color | :: RW Color | |
| column_alignments | :: R LuaCustomTable[uint32 → Alignment] | Array containing the alignment for every column of this table element. [...] |
Array containing the alignment for every column of this table element. [...] | ||
| single_line | :: RW boolean | |
| extra_top_padding_when_activated | :: RW int32 | |
| extra_bottom_padding_when_activated | :: RW int32 | |
| extra_left_padding_when_activated | :: RW int32 | |
| extra_right_padding_when_activated | :: RW int32 | |
| extra_top_margin_when_activated | :: RW int32 | |
| extra_bottom_margin_when_activated | :: RW int32 | |
| extra_left_margin_when_activated | :: RW int32 | |
| extra_right_margin_when_activated | :: RW int32 | |
| extra_padding_when_activated | :: W int32 or array[int32] | Sets |
Sets | ||
| extra_margin_when_activated | :: W int32 or array[int32] | Sets |
Sets | ||
| stretch_image_to_widget_size | :: RW boolean | |
| badge_font | :: RW string | |
| badge_horizontal_spacing | :: RW int32 | |
| default_badge_font_color | :: RW Color | |
| selected_badge_font_color | :: RW Color | |
| disabled_badge_font_color | :: RW Color | |
| width | :: W int32 | Sets both minimal and maximal width to the given value. |
Sets both minimal and maximal width to the given value. | ||
| height | :: W int32 | Sets both minimal and maximal height to the given value. |
Sets both minimal and maximal height to the given value. | ||
| size | :: W int32 or array[int32] | Sets both width and height to the given value. [...] |
Sets both width and height to the given value. [...] | ||
| padding | :: W int16 or array[int16] | Sets top/right/bottom/left paddings to this value. [...] |
Sets top/right/bottom/left paddings to this value. [...] | ||
| margin | :: W int16 or array[int16] | Sets top/right/bottom/left margins to this value. [...] |
Sets top/right/bottom/left margins to this value. [...] | ||
| cell_padding | :: W int16 | Space between the table cell contents and border. [...] |
Space between the table cell contents and border. [...] | ||
| valid | :: R boolean | Is this object valid? [...] |
Is this object valid? [...] | ||
| object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] | ||
Methods
get_style(style_name, create?) → LuaStyle?new
Attributes
gui :: Read LuaGui
name :: Read|Write stringchanged
minimal_width :: Read|Write int32
maximal_width :: Read|Write int32
minimal_height :: Read|Write int32
maximal_height :: Read|Write int32
natural_width :: Read|Write int32
natural_height :: Read|Write int32
top_padding :: Read|Write int16
right_padding :: Read|Write int16
bottom_padding :: Read|Write int16
left_padding :: Read|Write int16
top_margin :: Read|Write int16
right_margin :: Read|Write int16
bottom_margin :: Read|Write int16
left_margin :: Read|Write int16
font_color :: Read|Write Color
font :: Read|Write string
top_cell_padding :: Read|Write int16
right_cell_padding :: Read|Write int16
bottom_cell_padding :: Read|Write int16
left_cell_padding :: Read|Write int16
horizontally_stretchable :: Read|Write boolean?
vertically_stretchable :: Read|Write boolean?
horizontally_squashable :: Read|Write boolean?
vertically_squashable :: Read|Write boolean?
rich_text_setting :: Read|Write defines.rich_text_setting
hovered_font_color :: Read|Write Color
clicked_font_color :: Read|Write Color
disabled_font_color :: Read|Write Color
pie_progress_color :: Read|Write Color
clicked_vertical_offset :: Read|Write uint32
selected_font_color :: Read|Write Color
selected_hovered_font_color :: Read|Write Color
selected_clicked_font_color :: Read|Write Color
strikethrough_color :: Read|Write Color
draw_grayscale_picture :: Read|Write boolean
horizontal_spacing :: Read|Write int32
vertical_spacing :: Read|Write int32
use_header_filler :: Read|Write boolean
bar_width :: Read|Write uint32
color :: Read|Write Color
column_alignments :: Read LuaCustomTable[uint32 → Alignment] 
Example
table_element.style.column_alignments[1] = "center"

