This module manages the Admin modal.
- Source:
Requires
- module:common/view
- module:common/model
- module:managers/template-manager
- module:managers/admin/adminDebugger
- module:managers/prsonas-manager
- module:jHammer
- module:slider
- module:managers/language-manager
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 stateBoolean On/Off
- Source:
-
getManifest(callback)
-
Loads the SDK manifest
Parameters:
Name Type Description callbackfunction Callback
- Source:
Fires:
- event:onGotManifest()
-
initSliders()
-
Initializes admin slider controls
- Source:
Fires:
- event:updateManifest()
-
updateManifest(id, value)
-
Updates manifest
Parameters:
Name Type Description idString ID of property to updated
valueString 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 manifestJSON SDK Manifest JSON
- Source:
Fires:
- event:EVENT_ADMIN_GOT_MANIFEST
-
onMinimize()
-
Sets admin minified state
- Source:
-
onMinModalControl(action)
-
Minified controller
Parameters:
Name Type Description actionString [close, max]
- Source:
-
onCameraControlBtn(id)
-
Value modifier controller
Parameters:
Name Type Description idString [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 pageNumString Page number
xtraDataObject Additional data for template
- Source:
-
onLoginSubmit(key)
-
Login submission
Parameters:
Name Type Description keyString Key press
- Source:
-
onClickTab()
-
Handles admin tab selection
- Source:
-
onClickBtn($target, id)
-
Handles admin main button clicks
Parameters:
Name Type Description $targetJqueryObject Jquery object of button pressed
idString ID of button clicked
- Source:
-
init()
-
Initializes class
- Source:
Fires:
- event:assignListeners()