DialogAddQuitButton

Parameters
whichDialogdialog

Target dialog to add the button to.

doScoreScreenboolean

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.

buttonTextstring

Custom text.

hotkeyinteger

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

comment

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.

patch

1.01

Source
common.j (suggest an edit or discuss on Github)
return type
button
Source code
native DialogAddQuitButton          takes dialog whichDialog, boolean doScoreScreen, string buttonText, integer hotkey returns button