Difference between revisions of "Menu (MenuMate)"
Jump to navigation
Jump to search
updated
imported>Speedo m (→Makeup) |
imported>Speedo (updated) |
||
Line 5: | Line 5: | ||
==Makeup== | ==Makeup== | ||
The menu element has two child elements: | The menu element has two child elements: | ||
*start - This defines the name of the dialog which will be shown first when the menu is | *'''start''' - This defines the name of the dialog which will be shown first when the menu is loaded. | ||
*'''dialog''' - These elements define the names of the various dialogs used in the menu. There is no limit on them. | |||
Both start and dialog elements have two attributes: | |||
*'''name''' - The name of the particular dialog. | |||
*'''file''' - The name of the file containing this dialog. The path for this file works from the directory which contains the primary XML file with the menu element. Optional. | |||
==Example== | ==Example== | ||
Say we want to create a menu for a banking system. It will contain three dialogs: a main dialog, a dialog to make deposits, and a dialog to withdraw money. Our menu element would look something like: | Say we want to create a menu for a banking system. It will contain three dialogs: a main dialog, a dialog to make deposits, and a dialog to withdraw money. We will define the main dialog in the primary XML file, but define the deposit and withdrawal dialogs in their own files. Our menu element would look something like: | ||
<pre> | <pre> | ||
<menu> | <menu> | ||
<start | <start name="mainmenu"/> | ||
<dialog | <dialog name="makedeposit" file="deposit.xml"/> | ||
<dialog | <dialog name="withdrawmoney" file="withdraw.xml"/> | ||
</menu> | </menu> | ||
</pre> | </pre> | ||
[[Category:MenuMate]] | [[Category:MenuMate]] |