Class UI
Defined in: ui.js.
Constructor Attributes | Constructor Name and Description |
---|---|
UI(ctx)
Creates an instance of the UI module
|
Field Attributes | Field Name and Description |
---|---|
Canvas 2D rendering context.
|
|
Reference to current UI.
|
|
UI elements array.
|
Method Attributes | Method Name and Description |
---|---|
drawUI()
Draw the current UI.
|
|
setUI(uifunction)
Set UI function (touchpad or custom).
|
|
setupUI()
Setup the current UI.
|
|
touchpad()
Setup UI touchpad.
|
Field Detail
{[object CanvasRenderingContext2D]}
ctx
Canvas 2D rendering context.
{Object}
currentUI
Reference to current UI.
{Array}
elements
UI elements array.
Method Detail
drawUI()
Draw the current UI.
setUI(uifunction)
Set UI function (touchpad or custom).
- Parameters:
- {Object} uifunction
- Reference to UI function. e.g. "touchpad" or other.
setupUI()
Setup the current UI.
touchpad()
Setup UI touchpad.