space_ex v0.1.1 SpaceEx.UI.Canvas
A canvas for user interface elements.
See SpaceEx.UI.get_stock_canvas/1
and SpaceEx.UI.add_canvas/1
.
Link to this section Summary
Functions
Add a button to the canvas
Add an input field to the canvas
Create a new container for user interface elements
Add text to the canvas
The rect transform for the canvas
Whether the UI object is visible
Remove the UI object
Whether the UI object is visible
Link to this section Functions
Link to this function
add_button(conn, this, content, visible)
Add a button to the canvas.
content
— The label for the button.visible
— Whether the button is visible.
Link to this function
add_input_field(conn, this, visible)
Add an input field to the canvas.
visible
— Whether the input field is visible.
Link to this function
add_panel(conn, this, visible)
Create a new container for user interface elements.
visible
— Whether the panel is visible.
Link to this function
add_text(conn, this, content, visible)
Add text to the canvas.
content
— The text.visible
— Whether the text is visible.
Link to this function
get_rect_transform(conn, this)
The rect transform for the canvas.
Link to this function
get_visible(conn, this)
Whether the UI object is visible.
Link to this function
remove(conn, this)
Remove the UI object.
Link to this function
set_visible(conn, this, value)
Whether the UI object is visible.