Menu (MenuMate)

Revision as of 17:34, 29 November 2008 by imported>Speedo (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A component of MenuMate.

The menu element defines the components of any menu. It should be the first element of any XML file.

Makeup

The menu element has two child elements:

  • start - This defines the name of the dialog which will be shown first when the menu is load. The menu element must contain one (and only one) start definition.
  • dialog - These element define the names of the various dialogs used in the menu. There is no limit on them.

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:

<menu>
  <start>mainmenu</start>
  <dialog>makedeposit</dialog>
  <dialog>withdrawmoney</dialog>
</menu>