Difference between revisions of "Dialog (MenuMate)"
updated
imported>Speedo |
imported>Speedo (updated) |
||
Line 7: | Line 7: | ||
==Makeup== | ==Makeup== | ||
===Name=== | ===Name=== | ||
The name of each dialog element should match the defintion | 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 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. | 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 | <param name="playerRef"/> | ||
<param | <param name="accountBalance"/> | ||
</text> | </text> | ||