This shows you the differences between two versions of the page.
— |
gemus_script_reference:functions:show_message [2020/05/12 11:29] (current) Jimbo created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Back to [[.:|Script Function Reference]] | ||
+ | ====== Show_Message() ====== | ||
+ | |||
+ | The Show_Message() function displays a message to the user and waits until the user clicks an 'OK' button before continuing. | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | <code>Show_Message(message)</code> | ||
+ | |||
+ | ===== Arguments ===== | ||
+ | |||
+ | ^ Argument ^ Required ^ Description ^ | ||
+ | | //message// | Yes | The message you want to display. There is one preset message, which you can display by setting //message// to the string literal GAME_NOT_SUPPORTED. Any [[..:environment_variables|script environment variables]] found in //message// will be replaced by their actual values when the script is executed. | | ||
+ | \\ | ||
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | <code> | ||
+ | Show_Message(You have to load this game manually: %gamefile%) | ||
+ | |||
+ | Show_Message(GAME_NOT_SUPPORTED) | ||
+ | </code> | ||
+ | |||
+ | ===== Remarks ===== | ||
+ | |||
+ | The Show_Message function can be used to help you bug-test your own custom scripts. You can use the %commandline% environment variable to see the contents of the emulator's command line at any one time. | ||
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | * [[.:|Script Function Reference]] |