Difference between revisions of "Lua:messageDialog"
(Created page with ''''function''' messageDialog(''Text'', ''Type'', ''Button'', ...) Displays a messagebox of a specific type with a variable amount of buttons at the center of the screen with the…') |
Cheatsgames (talk | contribs) m (EXAMPLES) |
||
Line 27: | Line 27: | ||
== See also == | == See also == | ||
* [[Lua]] | * [[Lua]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==EXAMPLES== | ||
+ | |||
+ | messageDialog("NÃO NOS RESPONSABILIZAMOS POR BANIMENTOS\nCONTINUAR?", mtInformation, mbYes,mbNo) | ||
+ | |||
+ | MessageDialog('Do you really want to continue?', mtConfirmation, mbYes, mbNo, mbCancel, 0) | ||
+ | |||
+ | messageDialog("NÃO NOS RESPONSABILIZAMOS POR BANIMENTOS\nCONTINUAR?", mtError, mbYes,mbNo) | ||
+ | |||
+ | messageDialog("POR FAVOR SELECIONE O PROCESSO CORRETO", mtError, mbOK) | ||
+ | |||
+ | messageDialog("BEM VINDO!\nBY RAFAEL LIMA!", mtInformation, mbYes,mbOK) | ||
+ | |||
+ | messageDialog(mtError,'do i have?','Title',mbOK) | ||
+ | |||
+ | messageDialog('Custom dialog',mtCustom,mbYes,mbOK) | ||
+ | |||
+ | messageDialog(None,'do i have?','Title') |
Revision as of 04:00, 24 June 2016
function messageDialog(Text, Type, Button, ...)
Displays a messagebox of a specific type with a variable amount of buttons at the center of the screen with the provided text.
Returns: ButtonResult
Function Parameters
Parameter | Type | Description |
---|---|---|
Text | String | The message to show |
Type | DialogType | The type of the messagebox. |
Button | ButtonType | The kind of button. There can be multiple buttons provided |
See also
EXAMPLES
messageDialog("NÃO NOS RESPONSABILIZAMOS POR BANIMENTOS\nCONTINUAR?", mtInformation, mbYes,mbNo)
MessageDialog('Do you really want to continue?', mtConfirmation, mbYes, mbNo, mbCancel, 0)
messageDialog("NÃO NOS RESPONSABILIZAMOS POR BANIMENTOS\nCONTINUAR?", mtError, mbYes,mbNo)
messageDialog("POR FAVOR SELECIONE O PROCESSO CORRETO", mtError, mbOK)
messageDialog("BEM VINDO!\nBY RAFAEL LIMA!", mtInformation, mbYes,mbOK)
messageDialog(mtError,'do i have?','Title',mbOK)
messageDialog('Custom dialog',mtCustom,mbYes,mbOK)
messageDialog(None,'do i have?','Title')