Dialogs are big dialog boxes at the center of the screen. The player can choose one button to click. WARNING: Dialogs cannot be displayed at map init! Dialogs pause the game in single player mode! In multiplayer mode dialogs do not pause the game, but prevent players, who see the dialog from playing the game. *
public function createDialog() returns dialog
public function dialog.addButton(string buttonText) returns button
public function dialog.addButton(string buttonText, int hotkey) returns button
Hotkey: use ASCII numbers of the capital letter.
public function dialog.addQuitButton(boolean doScoreScreen, string buttonText) returns button
Adds a quit button to this dialog. If it is clicked, it ends the game for that player.
public function dialog.addQuitButton(boolean doScoreScreen, string buttonText, int hotkey) returns button
Adds a quit button to this dialog. If it is clicked, it ends the game for that player. Hotkey: use ASCII numbers of the capital letter.
public function dialog.clear()
Removes all buttons from a dialog
public function dialog.destr()
public function dialog.display(player whichPlayer, boolean flag)
Toggles visibility of the dialog for a player. Dialogs are invisible by default Dialogs cannot be shown at map initialization
public function dialog.setMessage(string messageText)