• Creates a menu button that will exit the game for the player who clicks it. Returns a handle of button.

    See the detailed description in DialogAddButton.

    Parameters

    • whichDialog: HandleHolder<"dialog">

      Target dialog to add the button to.

    • doScoreScreen: boolean

      When a button with true is pressed, you quit the map and see the end game leaderboards.

      When a button with false is pressed, you quit the map to game's main menu.

    • buttonText: string

      Custom text.

    • hotkey: number

      Integer value of the ASCII upper-case character for the hotkey. Example: "F" = 70.

    Returns HandleHolder<"button">

Generated using TypeDoc