Button (MenuMate)

From the Oblivion ConstructionSet Wiki
Revision as of 18:11, 29 November 2008 by imported>Speedo (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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!" &#10;
    PrintC "Hello world!"
  </script>
</button>

togglebutton

A button which toggles a variable between true (1) and false (0).