The game object class for the state of the message window that displays text or selections, etc.
Methods
- Adds the given text to the message
Name Type Description textstring The text to add - Gets all of the text
Returns:
Type Description string All of the text - Get the background type
Returns:
Type Description number The background type - Get the choice background type
Returns:
Type Description number The choice background type - Get the choice cancel type
Returns:
Type Description number The choice cancel type - Get the default choice type
Returns:
Type Description number The default choice type - Get the choice position type
Returns:
Type Description number The choice position type - Get the choice array
Returns:
Type Description Array The choice array - Clear message variables
- Get the face index (for face image file)
Returns:
Type Description number The face index - Get the face name (for face image file)
Returns:
Type Description string The face name - Check if there is text in the message
Returns:
Type Description boolean True if there is text - Initialize the class
- Check if the message is busy
Returns:
Type Description boolean True if busy - Check if there are choices
Returns:
Type Description boolean True if there are choices - Check if there is an item choice
Returns:
Type Description boolean True if there is an item choice - Check if there is number input
Returns:
Type Description boolean True if there is number input - Check if the text is right to left
Returns:
Type Description boolean True if RTL - Get the item choice item type id
Returns:
Type Description number The item type id - Get the item choice variable id
Returns:
Type Description number The variable id - Creates a new page
- Get the number input maximum allowed digits
Returns:
Type Description number The max allowed digits - Get the number input variable id
Returns:
Type Description number The variable id - Handling when a choice is made
Name Type Description nnumber The choice made - Get the position type
Returns:
Type Description number The position type - Check if scroll mode
Returns:
Type Description boolean True if scroll mode - Check if scroll no fast
Returns:
Type Description boolean True if scroll no fast - Get the scroll speed
Returns:
Type Description number The scroll speed - Sets the background type
Name Type Description backgroundnumber The new background type - Sets the choice background type
Name Type Description backgroundnumber The new choice background type - Sets the choice callback function
Name Type Description callbackfunction|null The callback, null if none - Sets the choice position type
Name Type Description positionTypenumber The new choice position type - Sets the choice settings
Name Type Description choicesArray The array of choices defaultTypenumber The choice default type cancelTypenumber The choice cancel type - Sets the face image settings
Name Type Description faceNamestring The face image file name faceIndexnumber The index of the face to use on the face sheet - Sets the item choice settings
Name Type Description variableIdnumber The item choice variable id to use itemTypenumber The item type to use - Sets the number input settings
Name Type Description variableIdnumber The number input variable id to use maxDigitsnumber The number input max digits to use - Sets the position type
Name Type Description positionTypenumber The new position type - Sets the scroll settings
Name Type Description speednumber The scroll speed noFastboolean If no fast mode scrolling - Sets the speaker name
Name Type Description speakerNamestring The new speaker name - Get the speaker name
Returns:
Type Description string The speaker name