~~Title: Dialog~~ Lets you display various types of dialog to the user and retrieve the selection or entered text. ==Request dialog== Dialog && int && ID of the chosen button. && dlgtype && string && Type of dialog ("r"). && message && string && Message to display. && [buttons] && string && Buttons to show to the user. && [title] && string && Dialog title. Shows a request dialog with one or more buttons. Returns the ID of the chosen button. The //buttons// string can separate multiple buttons with a `|` symbol. If //buttons// is not provided the default value is `OK|Cancel`. The last button (i.e. Cancel) always has ID `0`. Other buttons are numbered from left-to-right beginning with `1`. ==String dialog== Dialog && map && Button choice and entered string. && dlgtype && string && Type of dialog ("s" or "sp"). && message && string && Message to display. && [default] && string && Default input string. && [max] && int && Maximum length of input string. && [buttons] && string && Buttons to show to the user. && [title] && string && Dialog title. Shows a string dialog with one or more buttons. The user can enter a string up to the specified maximum. Set the //dlgtype// argument to "s" for a standard string dialog, or "sp" for a password dialog. The //buttons// string can separate multiple buttons with a `|` symbol. If //buttons// is not provided the default value is `OK|Cancel`. The return value is a //map// with two members; **choice** provides the selected button ID and **text** provides the string the user entered. ==Choice dialog== Dialog && string && Selected option. && dlgtype && string && Type of dialog ("c" or "cs"). && message && string && Message to display. && options && string && List of options to display. && [title] && string && Dialog title. Shows a dialog with a drop-down list of choices. Set the //dlgtype// argument to "c" for a standard choice dialog, or "cs" for a sorted choice dialog. The //options// string should contain one or more choices in the following format: `