Button (MenuMate)
This article has been marked by editors or authors as incomplete. Please see the Talk page for details. Discussion and collaboration can improve an article and lead to a better Wiki.
A component of MenuMate.
Buttons provide the core functionality to a menu. They must be contained within a
button
A plain button. Its only functionality is via its result script. All other types of buttons use the same formatting for text and script as the basic button.
Makeup
Text
To define the text of a button, use a text element. These are identical to the text elements used in a dialog.
Script
A result script that will be run when the button is clicked. The scripts contained within these face the same limitations as the console and scripts used by RunBatchScript.
IMPORTANT: Due to XML limitations, you must manually insert a newline character after each line of a multiple line script using the unicode code point .
Example
<button> <text format="Hello world!"/> <script> Message "Hello world!" PrintC "Hello world!" </script> </button>
togglebutton
A button which toggles a variable between true (1) and false (0).