TQS Home
Trivia Quiz Shell Version 2.8 Now Available!Bot Productions Home
 
TQS 2.0

Back to Reference

MENUITEM Element

Contains specifications for an individual item of a menu.

Syntax
<MENUITEM
  TITLE="title"
  TARGET="target"
  SHOWSTATE="showstate"
/>
Attributes
TITLE
The text of the menu item.
TARGET
The location to invoke when the menu item is chosen.
SHOWSTATE
TQS 2.5 Allows state image display to be toggled on or off for a specific menu item. If set to "1", the image for the target location state will be displayed next to the menu item; if "0", it will not. This attribute will override any other setting, either from the parent or global MENU element's SHOWSTATES attribute.
Placement

The MENUITEM element must be a child of the MENU element within an individual location element.

Children

No children are supported within the MENUITEM element.

Remarks

If the menu is set to display numbers, the text of the menu item will be the number, followed by a period and a space, then the contents of the TITLE attribute.

For more information on TQS's state tracking and scoring capabilities, read the TQS Tutorial, Part XIII.

Examples

<MENU>
  <MENUITEM
    TITLE="Chapter 3 Trivia"
    TARGET="3,1"
  />
  <MENUITEM
    TITLE="Chapter 3 Hangman"
    TARGET="3,2"
  />
</MENU>
<MENU SHOWSTATES="1">
  <MENUITEM TITLE="Trivia #1" TARGET="1"/>
  <MENUITEM TITLE="Trivia #2" TARGET="2"/>
  <MENUITEM TITLE="Trivia #3 Without State Image"
    TARGET="3" SHOWSTATE="0"/>
</MENU>


©2016 Bot Productions. All rights reserved.Last Updated: June 14, 2001