The menu package is implemented in the file core/menu.js. A compressed version of the package is available in the file core/compressed/menu.js. The package is needed in every page, which displays controllers like a talk controller, a sentence controller or the inventory controller. Normally controllers are not included in a content page but are in extra frames. Include this package after the package kernel.js in a page.
The classes MacaoMenu and MacaoMenuItem are used to display buttons on the page, which can contain images and/or text. The other classes in this package are controllers, which are inherited from MacaoMenu. The user uses controllers to interact with the MacaoObjects.
Class Summary | |
---|---|
MacaoMenu |
The class MacaoMenu is used to display a number of buttons to the user. A button can consist of an image and/or text. |
MacaoMenuItem |
The class MacaoMenuItem is used to create menu items for menus. See MacaoMenu.addMenuItem(). |
MacaoSentenceController |
The MacaoSentenceController can be added to a page to let the user build sentences from commands and object titles. The sentence is send to all objects, which have registered this controller. At the object the sentence may cause the execution of a MacaoTalkItem. |
MacaoTalkController |
The MacaoTalkController can be added to a page to display Response Talk Items to the user. The user can select one of the Talk Items to be executed. In Talk Items, which are containing an input field, the user can enter text. The text is sent as keyword to the object. See also MacaoTalkItem. |
MacaoSteeringController |
The MacaoSteeringController can be added to a page to let the user control the "walking" of a vehicle through a net via steering. Steering works by predefining the connection, which the object will use when leaving the next node. See also MacaoObject.setSteeringIndex(). |
MacaoAcceleratorController |
A MacaoAcceleratorController can be added in addition to a MacaoSteeringController to a page, in order to display a steered objects velocity. See the description of MacaoSteeringController on how to use the Accelerator Controller. |
MacaoInventory |
Create a MacaoInventory in one frame of your frameset. The inventory can be used to place items, which the user takes from page to page. |