DialogAddQuitButton
- Parameters
whichDialog dialogTarget dialog to add the button to.
doScoreScreen booleanWhen a button with
trueis pressed, you quit the map and see the end game leaderboards.When a button with
falseis pressed, you quit the map to game's main menu.buttonText stringCustom text.
hotkey integerInteger 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