Difference between revisions of "Dialog (MenuMate)"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Speedo
(updated)
imported>Speedo
Line 15: Line 15:


===Buttons===
===Buttons===
See the [[Button_(MenuMate)|Button]] page.  Each dialog must contain one button element.  If more than ten buttons are defined, only the first ten will be used.
See the [[Button_(MenuMate)|Button]] page.  Each dialog must contain one button element.  If more than ten buttons are defined, only the first ten will be used.  Buttons are displayed in game in the order that they are defined within the dialog element.


==Example==
==Example==

Revision as of 09:53, 3 December 2008


A component of MenuMate.

The dialog element defines a single screen which is displayed to the player.

Makeup

Name

The name of each dialog element should match the defintion with the the menu declaration.

Text

Each dialog must contain a text element which defines the main text of the dialog. This contains a format attribute, which is a format string using OBSE format specifiers in the same manner as functions such as MessageBoxEx.

The text element may contain child param elements. Each one should contain the name of a variable which will be used by its matching format specifier.

Buttons

See the Button page. Each dialog must contain one button element. If more than ten buttons are defined, only the first ten will be used. Buttons are displayed in game in the order that they are defined within the dialog element.

Example

If we continue our bank example, our mainmenu dialog would look something like:

<mainmenu>
  <text format="Greetings %n!%rYour balance is %.0f, what do you wish to do?">
    <param>playerRef</param>
    <param>accountBalance</param>
  </text>

  <!-- buttons here -->
</mainmenu>