Difference between revisions of "Dialog (MenuMate)"
imported>Speedo m |
imported>Speedo (updated) |
||
Line 12: | Line 12: | ||
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]]. | 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 | 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=== | ===Buttons=== |
Revision as of 20:56, 29 November 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.
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>