MainMenu
MainMenu

The MainMenu object controls the game menu and dialogues. When JAM starts (unless JAM_NOMENU was used in the constructor) the MainMenu object will attempt to load a binary file called "Menu". If this file does not exist, a standard menu will be created.

Creation
 
MainMenuCreates a new MainMenu object
Functions
 
Menu display
HideMenuHides the game menu
ShowMenuShows the game menu
IsMenuVisibleReturns TRUE if the menu is visible
Menu items
EnableItemEnables an item
DisableItemDisables an item
CheckItemPuts a check by an item
UnCheckItemRemoves the check from an item
CheckRadioItemPuts a circular check by an item
UnCheckRadioItemRemoves the circular check by an item
IsItemDisabledReturns TRUE if the given item is disabled
IsItemCheckedReturns TRUE if the given item has a check by it
IsItemRadioReturns TRUE if the given item has a circular check by it
IsItemUnCheckedReturns TRUE if the given item has no check by it
GetItemStateReturns the state of the given item
Callback
OnSelectItemCalled when a non-default menu item is clicked
Program controls
DoMakes the object act as if the given menu item had been clicked
ShowPlayerSetupDisplays the player setup dialogue
ShowKeyboardSetupDisplays the keyboard setup dialogue for the given player
ShowSoundSetupDisplays the sound setup dialogue
ShowPasswordBoxDisplays the password box
ShowAboutBoxDisplays the game's about box



JAM © 2005 no one in partiular
Project started by David Evans in 2005