Difference between revisions of "Menu (MenuMate)"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Speedo
(created)
 
imported>Speedo
Line 6: Line 6:
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 load.  The menu element '''must''' contain one (and only one) start definition.
*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.
*dialog - These elements define the names of the various dialogs used in the menu.  There is no limit on them.


==Example==
==Example==

Revision as of 01:58, 3 December 2008

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 elements 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>