exec/load DDLightbarMenu.js 1.14 1.15
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv1946
Modified Files:
DDLightbarMenu.js
Log Message:
Added an optional "numbered mode", where each option is displayed with a number to the left (starting at 1), and the user is allowed to choose an option by typing the number of the item. Numbered mode is disabled by default and can be enabled by setting the numberedMode property to true. For example:
lbMenu.numberedMode = true;
When numbered mode is enabled and the user starts typing a number, the menu will prompt the user for an item number. The prompt will be located on the line below the menu, so in addition to the menu's height, you'll also need an extra line on the screen to account for the item prompt. In addition, when the user presses the enter key after the item number, a carriage return/line feed will be outputted, so in numbered mode, the menu's height should not go further than 2 lines below the console height. Otherwise, the display of the menu will not be correct if the user decides not to enter a number.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net