LuaStyle

class LuaStyle
valid :: boolean [R] Is this object valid?
gui :: LuaGui [R] Gui of the LuaGuiElement of this style.
name :: string [R] Name of this style.
minimal_width :: int [RW]
maximal_width :: int [RW]
minimal_height :: int [RW]
maximal_height :: int [RW]
top_padding :: int [RW]
right_padding :: int [RW]
bottom_padding :: int [RW]
left_padding :: int [RW]
font_color :: Color [RW]
font :: string [RW]
resize_row_to_width :: boolean [RW]
cell_spacing :: int [RW] Space between the table cell contents and border.
horizontal_spacing :: int [RW] Horizontal space between individual cells.
vertical_spacing :: int [RW] Vertical space between individual cells.

Style of a GUI element. All of the attributes listed here may be nil if not available for a particular GUI element.

valid :: boolean [Read-only]

Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.

gui :: LuaGui [Read-only]

Gui of the LuaGuiElement of this style.

name :: string [Read-only]

Name of this style.

minimal_width :: int [Read-Write]

maximal_width :: int [Read-Write]

minimal_height :: int [Read-Write]

maximal_height :: int [Read-Write]

top_padding :: int [Read-Write]

right_padding :: int [Read-Write]

bottom_padding :: int [Read-Write]

left_padding :: int [Read-Write]

font_color :: Color [Read-Write]

font :: string [Read-Write]

resize_row_to_width :: boolean [Read-Write]

cell_spacing :: int [Read-Write]

Space between the table cell contents and border.

Can only be used if this is LuaTableStyle
horizontal_spacing :: int [Read-Write]

Horizontal space between individual cells.

Can only be used if this is LuaTableStyle
vertical_spacing :: int [Read-Write]

Vertical space between individual cells.

Can only be used if this is LuaTableStyle