Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Dialog

Source

function static dialog.addButton(string buttonText) returns button

Source

function static dialog.addButton(string buttonText, int hotkey) returns button

Source

Hotkey: use ASCII numbers of the capital letter.

function static dialog.addQuitButton(boolean doScoreScreen, string buttonText) returns button

Source

Adds a quit button to this dialog. If it is clicked, it ends the game for that player.

function static dialog.addQuitButton(boolean doScoreScreen, string buttonText, int hotkey) returns button

Source

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.

function static dialog.clear()

Source

Removes all buttons from a dialog

function createDialog() returns dialog

Source

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.

function static dialog.destr()

Source

function static dialog.display(player whichPlayer, boolean flag)

Source

Toggles visibility of the dialog for a player. Dialogs are invisible by default Dialogs cannot be shown at map initialization

function static dialog.setMessage(string messageText)

Source