Module: managers/admin-manager

This module manages the Admin modal.

Source:

Requires

Methods


init()

Initializes class

Source:
Fires:
  • event:assignListeners()

assignListeners()

Assigns listeners to events used in this class.

Source:

setState(state)

setState

Parameters:
Name Type Description
state Boolean

On/Off

Source:

getManifest(callback)

Loads the SDK manifest

Parameters:
Name Type Description
callback function

Callback

Source:
Fires:
  • event:onGotManifest()

initSliders()

Initializes admin slider controls

Source:
Fires:
  • event:updateManifest()

updateManifest(id, value)

Updates manifest

Parameters:
Name Type Description
id String

ID of property to updated

value String

value of property to updated

Source:
Fires:
  • oPrsonas.event:sendKey()

killMinimizer()

Kills admin minified state

Source:

onGotManifest(manifest)

Got the SDK manifest

Parameters:
Name Type Description
manifest JSON

SDK Manifest JSON

Source:
Fires:
  • event:EVENT_ADMIN_GOT_MANIFEST

onMinimize()

Sets admin minified state

Source:

onMinModalControl(action)

Minified controller

Parameters:
Name Type Description
action String

[close, max]

Source:

onCameraControlBtn(id)

Value modifier controller

Parameters:
Name Type Description
id String

[DecreaseModifier, IncreaseModifier]

Source:
Fires:
  • oPrsonas.event:sendKey()

onQuitApp()

Quits application

Source:
Fires:
  • oPrsonas.app.event:close()

onResetCharacter()

Resets avatar prior to saved updates

Source:
Fires:
  • oPrsonas.event:sendKey()

onSaveCharacter()

Saves avatar changes

Source:
Fires:
  • oPrsonas.event:sendKey()

onJsonLoaded()

Project JSON is loaded

Source:
Fires:
  • event:getManifest()

onKeypadClick()

Handles admin keypad interaction

Source:

onPageLoad(pageNum, xtraData)

Displays admin

Parameters:
Name Type Description
pageNum String

Page number

xtraData Object

Additional data for template

Source:

onLoginSubmit(key)

Login submission

Parameters:
Name Type Description
key String

Key press

Source:

onClickTab()

Handles admin tab selection

Source:

onClickBtn($target, id)

Handles admin main button clicks

Parameters:
Name Type Description
$target JqueryObject

Jquery object of button pressed

id String

ID of button clicked

Source:

init()

Initializes class

Source:
Fires:
  • event:assignListeners()