Difference between revisions of "Dialog (MenuMate)"

Jump to navigation Jump to search
190 bytes added ,  17:56, 6 December 2008
updated
imported>Speedo
imported>Speedo
(updated)
Line 7: Line 7:
==Makeup==
==Makeup==
===Name===
===Name===
The name of each dialog element should match the defintion with the the [[Menu_(MenuMate)|menu]] declaration.
The name of each dialog element should match the name attribute of a dialog defintion within the [[Menu_(MenuMate)|menu]] declaration.


===Text===
===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]].
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.
The text element may contain child '''param''' elements.  Each one should contain a single '''name''' attribute for a variable to be used in the format string.  See the [[:Category:MenuMate#Variables|main page]] for information about using variables.


===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.  Buttons are displayed in game in the order that they are defined within the dialog element.
See the [[Button_(MenuMate)|Button]] page.  Each dialog must contain one button element.  There is no limit on the number of buttons that a dialog may contain, but if your dialog has more than 10 buttons, you must be sure to use [[mmUpdate]] in your script so that the user can scroll through and access all of the buttons.


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


Anonymous user

Navigation menu