・Pressed button information can be obtained with the RESULT function.
・1: OK, -1: Cancel, 0: Timeout
String to be displeday in the dialog
・Up to 256 characters can be displayed.
・If there is CHR$(10) or CHR$(13) in the display string, a line break will occur.
0 | OK (Default) |
1 | No / Yes |
2 | Back / Next |
3 | Cancel / OK |
4 | Cancel / Execute |
5 | Next |
・If not specified, it's 0.
String to be displayed in the caption field at the top of the dialog
・If the caption string is longer than 46 characters, only 46 characters are displayed.
・If not specified, "DIALOG" is displayed in the caption column.
Number of seconds before closing the dialog automatically
・If a negative value is specified, it is specified in frame count units.
・If 0 is specified, it waits until the user operates.
・If not specified, it's 0.
DIALOG "Let's get started",5,"Scenario",-120
String to be displayed in the dialog
・Up to 256 characters can be displayed.
・If there is CHR$(10) or CHR$(13) in the display string, a line break will occur.
bit0 | X Button |
bit1 | B Button |
bit2 | Y Button |
bit3 | A Button |
bit4 | Up Button |
bit5 | Down Button |
bit6 | Left Button |
bit7 | Right Button |
bit8 | L Button |
bit9 | R Button |
bit10 | ZL Button |
bit11 | ZR Button |
bit12 | Press the L Stick |
bit13 | Press the R Stick |
bit14 | Any from A/B/X/Y Button |
bit15 | Any from Up/Down/Left/Right Button |
bit16 | Any button other than press the Stick |
bit17 | Touch Screen |
・Specify the OR of the above bit values.
・Specifying zero causes an error.
String to be displayed in the caption field at the top of the dialog
・If the caption string is longer than 46 characters, only 46 characters are displayed.
・If not specified, "DIALOG" is displayed in the caption column.
Number of seconds before closing the dialog automatically
・If a negative value is specified, it is specified in frame count units.
・If 0 is specified, it waits until the user operates.
・If not specified, it's 0.
Depending on the button pressed, it returns the value which becomes 1 corresponding to a bit value of the button type argument.
・Except for touch, the same value as BUTTON() is returned.
・0 is returned in case of timeout.
R=DIALOG("ABXYLR/DirectionalKey/Touch",(1 << #B_ANY) OR (1 << 17),"Special",0)
File name string set in advance as an input value
・An error occurs if characters that cannot be used in the file name are used.
The string to display in the caption
・If the caption string is longer than 39 characters, only 39 characters are displayed.
Up to 32 characters
Obtained string
・If the return value of the RESULT function is -1, it'll be canceled (string invalid).
T$=DIALOG("NEWNAME0","SAVE",14)