Properties:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
SceneKeyboardAssign.WINDOW_PRESS_WIDTH |
number |
<optional> |
300 | The window press width |
SceneKeyboardAssign.WINDOW_PRESS_HEIGHT |
number |
<optional> |
200 | The window press height |
SceneKeyboardAssign.MAX_WAIT_TIME_FIRST |
number |
<optional> |
3000 | The max wait time in milliseconds first |
SceneKeyboardAssign.MAX_WAIT_TIME |
number |
<optional> |
1000 | The max wait time in milliseconds |
pictureBackground |
Picture2D | The title screen background picture | ||
windowKeyboard |
WindowBox | The window box used for keyboard | ||
windowInformations |
WindowBox | The window box used for informations | ||
windowChoicesMain |
WindowChoices | The main window choices | ||
windowPress |
WindowBox | The window box for pressing a new key | ||
showPress |
boolean | Indicate if the HUD should display press box | ||
currentSC |
Array.<Array.<number>> | The current pressed shortcut | ||
keysPressed |
Array.<number> | The current key pressed | ||
compareWait |
number | Wait time in milliseconds; |
Extends
Methods
-
load () async overrides
-
Load async stuff
-
Update the key
-
update () overrides
-
Update the scene
-
onKeyPressed (key) overrides
-
Handle scene key pressed
Name Type Description key
number The key ID -
onKeyReleased (key) overrides
-
Handle scene key released
Name Type Description key
number The key ID -
onKeyPressedAndRepeat (key)boolean overrides
-
Handle scene pressed and repeat key
Name Type Description key
number The key ID Returns:
Type Description boolean -
drawHUD () overrides
-
Draw the HUD scene
-
Update all the reactions interpreters
-
Update all the parallel commands
-
Add a reaction in the interpreter list
Name Type Description sender
MapObject The sender of this reaction reaction
SystemReaction The reaction to add object
MapObject The object reacting state
number The state ID parameters
Array.<SystemParameter> All the parameters coming with this reaction event
Array.<number> The time events values moving
boolean Indicate if command is a moving one -
Handle scene pressed repeat key
Name Type Description key
number The key ID Returns:
Type Description boolean -
Draw the 3D scene
-
Close the scene