Difference between revisions of "AGI Command Reference - Menu Management Commands"
Line 1: | Line 1: | ||
− | [[ | + | [[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br /> |
[[AGI Command Reference|AGI Command Reference Index]]<br /> | [[AGI Command Reference|AGI Command Reference Index]]<br /> | ||
Line 91: | Line 91: | ||
</div><br /> | </div><br /> | ||
− | [[ | + | [[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br /> |
[[AGI Command Reference|AGI Command Reference Index]] | [[AGI Command Reference|AGI Command Reference Index]] | ||
Revision as of 14:15, 26 December 2013
Tutorials and Guides Table of Contents
AGI Command Reference Index
Creating your program, you can offer the player a choice using a system of menus. These may be short one-line questions (menu header) with several answers (menu elements), or a prompt to change some of the system parameters, for example, object movement speed. Let us consider these commands.
Message n is used as the header of the menu elements which follow.
Message n is used as a menu element, where c is this element's code (a number between 0 and 255).
Ends menu creation.
enable.item(c); disable.item(c);
Enables or disables a menu item with the code c.
|-------- heading v ------------------------------- | File | ------------------------------- Menu -- >| Save | Element |------------| | Restore | |------------| |XXXXXXXXXXXX| < - menu element disabled |------------| using disable.item | Quit | --------------
If Flag(14) = 1, a menu system is shown on the screen, allowing the user to choose an item. Whether an item with the code c has been chosen can be tested using a command 'controller (c)', where c is the code assigned to the menu item.
Tutorials and Guides Table of Contents
AGI Command Reference Index
< Previous: Initialization CommandsNext: Test Commands >