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 text
string 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 n
number 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 background
number The new background type - Sets the choice background type
Name Type Description background
number The new choice background type - Sets the choice callback function
Name Type Description callback
function|null The callback, null if none - Sets the choice position type
Name Type Description positionType
number The new choice position type - Sets the choice settings
Name Type Description choices
Array The array of choices defaultType
number The choice default type cancelType
number The choice cancel type - Sets the face image settings
Name Type Description faceName
string The face image file name faceIndex
number The index of the face to use on the face sheet - Sets the item choice settings
Name Type Description variableId
number The item choice variable id to use itemType
number The item type to use - Sets the number input settings
Name Type Description variableId
number The number input variable id to use maxDigits
number The number input max digits to use - Sets the position type
Name Type Description positionType
number The new position type - Sets the scroll settings
Name Type Description speed
number The scroll speed noFast
boolean If no fast mode scrolling - Sets the speaker name
Name Type Description speakerName
string The new speaker name - Get the speaker name
Returns:
Type Description string The speaker name