Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Game_Message

The game object class for the state of the message window that displays text or selections.

class

Game_Message

Hierarchy

  • Game_Message

Index

Properties

Protected _background

_background: number

Protected _choiceBackground

_choiceBackground: number

Protected _choiceCallback

_choiceCallback: function

Type declaration

    • (n: number): void
    • Parameters

      • n: number

      Returns void

Protected _choiceCancelType

_choiceCancelType: number

Protected _choiceDefaultType

_choiceDefaultType: number

Protected _choicePostionType

_choicePostionType: number

Protected _choices

_choices: Array<string>

Protected _faceIndex

_faceIndex: number

Protected _faceName

_faceName: string

Protected _itemChoiceItypeId

_itemChoiceItypeId: number

Protected _itemChoiceVariableId

_itemChoiceVariableId: number

Protected _numInputMaxDigits

_numInputMaxDigits: number

Protected _numInputVariableId

_numInputVariableId: number

Protected _positionType

_positionType: number

Protected _scrollMode

_scrollMode: boolean

Protected _scrollNoFast

_scrollNoFast: boolean

Protected _scrollSpeed

_scrollSpeed: number

Protected _texts

_texts: Array<string>

Methods

add

  • add(text: string): void

allText

  • allText(): string

background

  • background(): number

choiceBackground

  • choiceBackground(): number

choiceCancelType

  • choiceCancelType(): number

choiceDefaultType

  • choiceDefaultType(): number

choicePositionType

  • choicePositionType(): number

choices

  • choices(): Array<string>

clear

  • clear(): void

faceIndex

  • faceIndex(): number

faceName

  • faceName(): string

hasText

  • hasText(): boolean

isBusy

  • isBusy(): boolean
  • Returns true if the game message object has text, choices, number input, or item choice.

    memberof

    Game_Message

    Returns boolean

isChoice

  • isChoice(): boolean

isItemChoice

  • isItemChoice(): boolean

isNumberInput

  • isNumberInput(): boolean

itemChoiceItypeId

  • itemChoiceItypeId(): number

itemChoiceVariableId

  • itemChoiceVariableId(): number

newPage

  • newPage(): void

numInputMaxDigits

  • numInputMaxDigits(): number

numInputVariableId

  • numInputVariableId(): number

onChoice

  • onChoice(n: number): void

positionType

  • positionType(): number

scrollMode

  • scrollMode(): boolean

scrollNoFast

  • scrollNoFast(): boolean

scrollSpeed

  • scrollSpeed(): number

setBackground

  • setBackground(background: number): void
  • Sets the background of the message window; options are 0 (fully opaque), 1 (transparent), 2 (invisible background). The default is 0.

    memberof

    Game_Message

    Parameters

    • background: number

    Returns void

setChoiceBackground

  • setChoiceBackground(background: number): void

setChoiceCallback

  • setChoiceCallback(callback: function): void
  • Sets a callback to be associated with a specific choice; a callback is a JavaScript function that will be run when the choice is selected.

    memberof

    Game_Message

    Parameters

    • callback: function
        • (n: number): void
        • Parameters

          • n: number

          Returns void

    Returns void

setChoicePositionType

  • setChoicePositionType(positionType: number): void
  • Sets the position of the choice window associated with the message window.

    memberof

    Game_Message

    Parameters

    • positionType: number

    Returns void

setChoices

  • setChoices(choices: Array<string>, defaultType: number, cancelType: number): void
  • Sets the choices within the choice window; sets the default and cancel choices for the window.

    memberof

    Game_Message

    Parameters

    • choices: Array<string>
    • defaultType: number
    • cancelType: number

    Returns void

setFaceImage

  • setFaceImage(faceName: string, faceIndex: number): void

setItemChoice

  • setItemChoice(variableId: number, itemType: number): void
  • Sets the choice and associates it with a variable id; sets the itemtype id associated with the choice.

    memberof

    Game_Message

    Parameters

    • variableId: number
    • itemType: number

    Returns void

setNumberInput

  • setNumberInput(variableId: number, maxDigits: number): void
  • Sets the number input and associates it with a variable id; the max number of digits can also be set.

    memberof

    Game_Message

    Parameters

    • variableId: number
    • maxDigits: number

    Returns void

setPositionType

  • setPositionType(positionType: number): void

setScroll

  • setScroll(speed: number, noFast: boolean): void
  • Sets the scroll speed of the message window; disable fast movement if noFast is set to true.

    memberof

    Game_Message

    Parameters

    • speed: number
    • noFast: boolean

    Returns void

Generated using TypeDoc