![]() |
GearBlocks
The GearBlocks Lua scripting API
|
Provides access to a UI label's properties. More...
Properties | |
string | Text [get, set] |
The label text. | |
Color32Proxy | Colour [get, set] |
The text colour. | |
FontStyle | FontStyle [get, set] |
The font style. | |
int | FontSize [get, set] |
The font size. | |
float | LineSpacing [get, set] |
The line spacing. | |
TextAnchor | Alignment [get, set] |
The text alignment. | |
float | PreferredWidth [get] |
The preferred width. | |
float | PreferredHeight [get] |
The preferred height. | |
Provides access to a UI label's properties.
|
getset |
|
getset |
The text colour.
The colour applied to this label's text.
|
getset |
The font style.
The font style used for this label's text.
FontStyle enum:
Normal | No special style is applied. Available in Lua as fontStyle_Normal . |
Bold | Bold style applied to your texts. Available in Lua as fontStyle_Bold . |
Italic | Italic style applied to your texts. Available in Lua as fontStyle_Italic . |
BoldAndItalic | Bold and Italic styles applied to your texts. Available in Lua as fontStyle_BoldAndItalic . |
|
getset |
The font size.
The font size used for this label's text.
|
getset |
The line spacing.
The line spacing used for this label's text.
|
getset |
The text alignment.
The alignment used for this label's text.
TextAnchor enum:
UpperLeft | Text is anchored in upper left corner. Available in Lua as textAnc_UpperLeft . |
UpperCenter | Text is anchored in upper side, centered horizontally. Available in Lua as textAnc_UpperCenter . |
UpperRight | Text is anchored in upper right corner. Available in Lua as textAnc_UpperRight . |
MiddleLeft | Text is anchored in left side, centered vertically. Available in Lua as textAnc_MiddleLeft . |
MiddleCenter | Text is centered both horizontally and vertically. Available in Lua as textAnc_MiddleCenter . |
MiddleRight | Text is anchored in right side, centered vertically. Available in Lua as textAnc_MiddleRight . |
LowerLeft | Text is anchored in lower left corner. Available in Lua as textAnc_LowerLeft . |
LowerCenter | Text is anchored in lower side, centered horizontally. Available in Lua as textAnc_LowerCenter . |
LowerRight | Text is anchored in lower right corner. Available in Lua as textAnc_LowerRight . |
|
get |
The preferred width.
The preferred width of this UI element.
|
get |
The preferred height.
The preferred height of this UI element.