Class Index | File Index

Classes


Class UI


Defined in: ui.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
UI(ctx)
Creates an instance of the UI module
Field Summary
Field Attributes Field Name and Description
 
ctx
Canvas 2D rendering context.
 
Reference to current UI.
 
UI elements array.
Method Summary
Method Attributes Method Name and Description
 
Draw the current UI.
 
setUI(uifunction)
Set UI function (touchpad or custom).
 
Setup the current UI.
 
Setup UI touchpad.
Class Detail
UI(ctx)
Creates an instance of the UI module
Parameters:
ctx
See:
ui.js
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.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri May 06 2011 14:41:27 GMT+0100 (BST)