Menu (MenuMate)

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

A component of MenuMate.

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

Makeup[edit | edit source]

The menu element has two child elements:

  • 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[edit | edit source]

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:

<menu>
  <start name="mainmenu"/>
  <dialog name="makedeposit" file="deposit.xml"/>
  <dialog name="withdrawmoney" file="withdraw.xml"/>
</menu>