Style of a GUI element. All of the attributes listed here may be nil if not available for a particular GUI element.
LuaGuiunknownfalseGui of the LuaGuiElement of this style.
stringunknownfalseName of this style.
int32int32falseMinimal width ensures, that the widget will never be smaller than than that size. It can't be squashed to be smaller.
int32int32falseMaximal width ensures, that the widget will never be bigger than than that size. It can't be stretched to be bigger.
int32int32falseMinimal height ensures, that the widget will never be smaller than than that size. It can't be squashed to be smaller.
int32int32falseMaximal height ensures, that the widget will never be bigger than than that size. It can't be stretched to be bigger.
int32int32falseNatural width specifies the width of the element tries to have, but it can still be squashed/stretched to have a smaller or bigger size.
int32int32falseNatural height specifies the height of the element tries to have, but it can still be squashed/stretched to have a smaller or bigger size.
int32int32falseint32int32falseint32int32falseint32int32falseint32int32falseint32int32falseint32int32falseint32int32false"left" | "center" | "right""left" | "center" | "right"trueHorizontal align of the inner content of the widget, if any.
"top" | "center" | "bottom""top" | "center" | "bottom"trueVertical align of the inner content of the widget, if any.
ColorColorfalsestringstringfalseint32int32falseSpace between the table cell contents top and border.
int32int32falseSpace between the table cell contents right and border.
int32int32falseSpace between the table cell contents bottom and border.
int32int32falseSpace between the table cell contents left and border.
booleanbooleantrueWhether the GUI element stretches its size horizontally to other elements. nil if this element does not support stretching.
booleanbooleantrueWhether the GUI element stretches its size vertically to other elements. nil if this element does not support stretching.
booleanbooleantrueWhether the GUI element can be squashed (by maximal width of some parent element) horizontally. nil if this element does not support squashing.
This is mainly meant to be used for scroll-pane. The default value is false.
booleanbooleantrueWhether the GUI element can be squashed (by maximal height of some parent element) vertically. nil if this element does not support squashing.
This is mainly meant to be used for scroll-pane. The default (parent) value for scroll pane is true, false otherwise.
defines.rich_text_settingdefines.rich_text_settingfalseHow this GUI element handles rich text.
ColorColorfalseColorColorfalseColorColorfalseColorColorfalseint32int32falseColorColorfalseColorColorfalseColorColorfalseColorColorfalsebooleanbooleanfalseint32int32falseHorizontal space between individual cells.
int32int32falseVertical space between individual cells.
booleanbooleanfalseuint32uint32falseThe thickness of the bar, not the horizontal width.
ColorColorfalseLuaCustomTable<uint32, Alignment>unknownfalseArray 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:
booleanbooleanfalseint32int32falseint32int32falseint32int32falseint32int32falseint32int32falseint32int32falseint32int32falseint32int32falseunknownint32 | Array<int32>falseSets extra_top/right/bottom/left_padding_when_activated 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.
unknownint32 | Array<int32>falseSets 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.
booleanbooleanfalsestringstringfalseint32int32falseColorColorfalseColorColorfalseColorColorfalseunknownint32falseSets both minimal and maximal width to the given value.
unknownint32falseSets both minimal and maximal height to the given value.
unknownint32 | Array<int32>falseSets 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.
unknownint32 | Array<int32>falseSets 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.
unknownint32 | Array<int32>falseSets 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.
unknownint32falseSpace between the table cell contents and border. Sets top/right/bottom/left cell paddings to this value.
booleanunknownfalseIs 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.
stringunknownfalseThe class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.