Selection box UI element
Called when the selection is changed.
Add an option at the end
Return the game object that this UI element is attached to. Returns undefined if the element isn't attached to a game object.
Return the widget that contains this widget, for example a border that wraps a check box. Returns undefined if this object has no parent.
Get the index of the currently selected option. -1 if nothing is selected because this selection box has no options.
Return the currently selected option
Return whether the widget is currently enabled (see setEnabled).
Set whether the widget is enabled. When a widget is disabled, users can't interact with it and it is greyed out. When a widget that contains other widgets (like VerticalBox) is disabled, all its children behave as if disabled, too. By default, widgets are enabled.
Whether to enable the widget.
Set the font size.
The new font size. Default: 12
Set the index of the currently selected option. Will have no effect if there is no option at that index.
Set the currently selected option. Will not have an effect if no such option exists.