Container#
- class UI.Container()#
The base class of canvases and panels, which other objects can be added to.
Inherited Members
- Container.addPanel([visible])#
Add a panel to this object.
- Arguments:
visible (
boolean) – Whether the new panel is visible. Defaults totrue.
- Return type:
- Container.addText(content[, visible])#
Add text to this object.
- Arguments:
content (
string) – The text.visible (
boolean) – Whether the text is visible. Defaults totrue.
- Return type:
- Container.addInputField([visible])#
Add an input field to this object.
- Arguments:
visible (
boolean) – Whether the input field is visible. Defaults totrue.
- Return type:
- Container.addButton(content[, visible])#
Add a button to this object.
- Arguments:
content (
string) – The label for the button.visible (
boolean) – Whether the button is visible. Defaults totrue.
- Return type:
- Container.addToggle(content[, visible])#
Add a toggle to this object.
- Arguments:
content (
string) – The label for the toggle.visible (
boolean) – Whether the toggle is visible. Defaults totrue.
- Return type:
- Container.addToggleGroup()#
Add a toggle group to this object, to make a set of toggles into radio buttons.
- Return type:
Note
The group is not drawn and does not take up any space. The toggles that belong to it can be added anywhere.
- Container.addSlider([vertical[, visible]])#
Add a slider to this object.
- Arguments:
vertical (
boolean) – Whether the slider runs from bottom to top, rather than from left to right. Defaults tofalse.visible (
boolean) – Whether the slider is visible. Defaults totrue.
- Return type:
- Container.addDropdown([visible])#
Add a dropdown to this object.
- Arguments:
visible (
boolean) – Whether the dropdown is visible. Defaults totrue.
- Return type:
- Container.addImage([visible])#
Add an image to this object.
- Arguments:
visible (
boolean) – Whether the image is visible. Defaults totrue.
- Return type:
- Container.addScrollView([visible])#
Add a scroll view to this object.
- Arguments:
visible (
boolean) – Whether the scroll view is visible. Defaults totrue.
- Return type: