Class MessageFormData

Builds a simple two-button modal dialog.

Hierarchy

  • MessageFormData

Constructors

Methods

Constructors

Methods

  • Parameters

    • bodyText: string

    Returns MessageFormData

    Remarks

    Method that sets the body text for the modal form.

  • Parameters

    • text: string

    Returns MessageFormData

    Remarks

    Method that sets the text for the first button of the dialog.

  • Parameters

    • text: string

    Returns MessageFormData

    Remarks

    This method sets the text for the second button on the dialog.

  • Parameters

    • player: Player

      Player to show this dialog to.

    Returns Promise<MessageFormResponse>

    Remarks

    Creates and shows this modal popup form. Returns asynchronously when the player confirms or cancels the dialog.

    Throws

    This function can throw errors.

  • Parameters

    • titleText: string

    Returns MessageFormData

    Remarks

    This builder method sets the title for the modal dialog.