![]() |
GearBlocks
The GearBlocks Lua scripting API
|
A labelled dropdown UI element. More...
Additional Inherited Members | |
![]() | |
enum | Align : byte { LeftEdge , RightEdge , TopEdge , BottomEdge , HorizEdges , VertEdges , HorizCentre , VertCentre } |
UI element alignment mode. More... | |
void | SetAlignment (Align align, float paramA, float paramB) |
Set the element's alignment. | |
void | SetRotation (float angle) |
Set the element's rotation. | |
void | AddOption (string name) |
Add an option to the dropdown menu. | |
void | AddOption (string name, bool selectable) |
Add an option to the dropdown menu. | |
void | AddOptions (IList< string > names) |
Add options to the dropdown menu. | |
void | AddOptions (IList<(string, bool)> options) |
Add options to the dropdown menu. | |
void | ClearOptions () |
Clear all options from the dropdown menu. | |
![]() | |
virtual bool | IsVisible [get, set] |
Is the element visible? | |
![]() | |
bool | IsVisible [get, set] |
Is the element visible? | |
bool | IsInteractable [get, set] |
Is the element interactable? | |
bool | IsTargetable [get, set] |
Is the element targetable? | |
![]() | |
int | Value [get, set] |
The dropdown value. | |
string | SelectedOption [get] |
The selected dropdown option. | |
int | NumOptions [get] |
The number of dropdown options. | |
![]() | |
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. | |
![]() | |
ValueChangedHandler | OnChanged |
Event that is raised when the dropdown value is changed. | |
A labelled dropdown UI element.