DialogAddQuitButton
- Parameters
-
whichDialog 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 integer
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
- return type
button
- Source code
native DialogAddQuitButton takes dialog whichDialog, boolean doScoreScreen, string buttonText, integer hotkey returns button