UISystem

LittleJS User Interface Plugin

  • call new UISystemPlugin() to setup the UI system
  • Gamepad and keyboard navigation support
  • Nested Menus
  • Text
  • Buttons
  • Checkboxes
  • Images
  • Sliders
  • Video

Classes

UIButton
UICheckbox
UILayout
UIObject
UISlider
UISystemPlugin
UIText
UITextInput
UITile
UIVideo

Members

(static) uiDebug :number

Enable UI system debug drawing 0=off, 1=normal, 2=show invisible

Type:
  • number

(static) uiSystem :UISystemPlugin

Global UI system plugin object

Type:
  • UISystemPlugin

Methods

(static) UISystemPlugin#destroyObjects()

Destroy and remove all objects

(static) uiSetDebug(debugMode)

Enable UI system debug drawing 0=off, 1=normal, 2=show invisible

Parameters:
NameTypeDescription
debugModenumber | boolean

Type Definitions

DragAndDropCallback(event)

Parameters:
NameTypeDescription
eventDragEvent

The drag event