Multi button content.

interface MultiButton<T extends string, Callback> {
    callback?: (selected: string) => Promise<Callback>;
    iconPath?: string;
    name: T;
    text: ScriptDialogueString;
}

Type Parameters

  • T extends string
  • Callback

Properties

callback?: (selected: string) => Promise<Callback>

A function that is executed when the button is pressed. This function is executed before returning from MultiButtonDialogue#open.

iconPath?: string

Path to an icon used for the icon

name: T

Name used by the button, response is recorded using this name

Displayed button's value