home *** CD-ROM | disk | FTP | other *** search
- ;This is a commented simple main menu file to show how the simpler
- ;things in XBBS are done in some detail.
- ;
- ;You'll probably want to delete the comments (; lines) from this
- ;file before you actually use it.
- ;This is a very simple menu file that doesn't use any of the advanced
- ;options available in XBBS. It is intended only as a starting place.
- ;
- ;First the main menu prompt
- ;This next line makes the print yellow for ANSI users
- ~[0;1;33m
-
- ;Here's the actual prompt text
- Main (? for menu): ;Next we need to input a key into variable 0
- 0I1 0 1 1 1 ;Input 1 key, no pw mask, capitalize, hot, any printable char
-
- ;Now we process the key in var 0
- ;First we trap the question mark or no-input ([Enter]) and go to a menu
- ;if either is in var 0...the menu is at label lMenu
- 0C=
- lMenu
- 0C=?
- lMenu
- ;Next we look for a Q to Quit and go to label lQuit if we find it
- 0C=Q
- lQuit
- ;Now we'll check for an M and go to label lMessageAreas if we find it
- 0C=M
- lMessageAreas
- ;Next, U for Upload/Download areas
- 0C=U
- lFileAreas
- ;F for Feedback to sysop
- 0C=F
- lFeedBack
- ;L for Library, a Door (so you can see how to spawn a door)
- 0C=L
- lLibrary
- ;C for Configure, where the user can change some of his parameters
- 0C=C
- lConfigure
-
- ;Ok, if we get to here the user hit something we don't have an option
- ;for, so let's tell him so and fall through to the menu...
- ;Make the next line flashing red for ANSI users
- ~[0;1;5;33m
- Sorry, I don't know what 0P means...
- ;Here's the menu we promised...
- lMenu
-
- ;Make the next line red for ANSI users
- ~[0;1;33m
- You must need a menu. If not, hit [S]top...
- ;We'll make the menu green for ANSI users, what the heck...
- ~[0;2;32m
-
- Commands available at Main Menu:
- ===============================
- ~[0;1;32m
- [C]onfigure Change some of your parameters
- [F]eedback Leave Feedback to the SysOp
- [L]ibrary Text files on various subjects
- [M]essage Areas Messages from other users
- [Q]uit Logoff the system
- [U]pload/Download Areas File areas
-
- ;Now we jump back to the start of this menu
- jMain.XBS
-
- ;Here's where we send them to the Files.XBS menu if they hit [U]
- lFileAreas
- ;Gosub to Files.XBS
- JFiles.XBS
- ;Restart this menu on return
- jMain.XBS
-
- ;Here's where users go when they die...er, quit...
- lQuit
- ;We'll make sure they didn't hit [Q]uit by accident...
- ;Bright white for ANSI users...maybe they'll pay attention...
- ~[0;1;37m
-
- Are you sure you want to quit? (y-N) 0I1 0 1 1 5
- ;If they hit "Y", get rid of 'em (goto lLogoff)
- 0C=Y
- lLogoff
- ;Otherwise, restart this menu, musta been a mistake
-
- jMain.XBS
- lLogoff
-
- ;Read Goodbye file which logs them off with x
- jGoodbye.XBS
-
- ;Here's one way to invoke Doors from XBBS. This is a Spawn of
- ;Library.EXE with the following arguments: Commport, Width, Length,
- ;Graphics and Baud
- lLibrary
- ESLibrary.EXE C*p W*w L*l G*G B*B
- ;Restart this menu when finished
- jMain.XBS
-
- ;Message areas comin' at ya...
- lMessageAreas
- ;Invoke Bulls-mode with file C:\XBBS\MESS\MSGAREAS.XBS and uploading
- ;either reply packets or messages ok (1+2=3)
- *C:\XBBS\MESS\MSGAREAS.XBS 3
- ;Restart this menu afterwards
- jMAIN.XBS
-
- ;Here's where we do the feedback option
- lFeedBack
- ;Gosub to FDBK.XBS
- JFdbk.XBS
- ;On return, restart this menu
- jMain.XBS
-
- ;Here's the configuration option
- lConfigure
- ;Gosub to Configur.XBS
- JConfigur.XBS
- ;On return, restart this menu
- jMain.XBS
-
- ;That's it for the guided tour; look at the other menus in the MENU
- ;archive for more information.
-