home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 2.2 / 1996-03_Disc_2.2.iso / locus / dist / setupmnu.scr < prev    next >
Text File  |  1995-09-10  |  5KB  |  125 lines

  1. ; This file uses Mike D.'s scripting routines to create a menu
  2. ; hierarchy.
  3.  
  4. ; FORMAT:
  5. ; MENU (menu#1_Title, <NONE/parentMenuName>,
  6. ;       entry#1_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
  7. ;       entry#2_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
  8. ;       .
  9. ;       .
  10. ;       .
  11. ;       entry#n_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
  12. ;       MENU_END)
  13. ;
  14. ; MENU (menu#2_Title, etc.)
  15. ;
  16. ; ...and so on.
  17.  
  18. ; IMPORTANT NOTES:
  19. ;   --When building the hierarchy,  setup uses non-case-sensetive
  20. ;       strings to identify parents and children.  So you MUST NOT
  21. ;       have two entries or menus with the same title!!
  22. ;
  23. ;   --The root level menu will have 'None' for its parent.  All other
  24. ;       windows can have anything here.  At the moment,  this field
  25. ;       isn't used for anything.  In the future,  it could provide
  26. ;       a means to identify non-unique menu entries.
  27. ;
  28. ;   --All entries in a menu either call a child menu or a function.
  29. ;       The <SUBMENU/FUNCTION/FLYMENU> field determines the behavior
  30. ;       for the corresponding entry.  If you enter SUBMENU,  the name
  31. ;       in the first field determines which submenu the entry will
  32. ;       call. You need no third field in this case (and should not
  33. ;       enter one). If you enter FLYMENU,  the third field defines
  34. ;       a function which generates a menu on the fly and tries to
  35. ;       attach it to the entry node. Writing FUNCTION to this field
  36. ;       causes the entry to call the function linked to the name
  37. ;       in the third field (the  linkage takes place in a list in the
  38. ;       list in the menuFns.c file).
  39. ;
  40. ;  A simple example follows.
  41.  
  42. MENU (Main Menu, None,
  43.   Video Options, SUBMENU,
  44.   Audio Options, SUBMENU,
  45.   Play Locus, FUNCTION, playLocus,
  46.   Quit, FUNCTION, quit,
  47.   MENU_END)
  48.  
  49.         MENU (Video Options, Main Menu,
  50.                 Resolution, SUBMENU,
  51.                 Head Mounted Display, SUBMENU,
  52.                 Previous Menu, FUNCTION, backUp,
  53.                 Play Locus, FUNCTION, playLocus,
  54.                 Quit, FUNCTION, quit,
  55.                 MENU_END)
  56.  
  57.                 MENU (Resolution, Video Options,
  58.                         320x200, FUNCTION, setRes,
  59.                         640x400, FUNCTION, demoVideoMessage,
  60.                         Previous Menu, FUNCTION, backUp,
  61.                         Play Locus, FUNCTION, playLocus,
  62.                         Quit, FUNCTION, quit,
  63.                         MENU_END)
  64.  
  65.                 MENU (Head Mounted Display, Video Options,
  66.                         Choose Type, SUBMENU,
  67.                         Com Port, SUBMENU,
  68.                         Previous Menu, FUNCTION, backUp,
  69.                         Play Locus, FUNCTION, playLocus,
  70.                         Quit, FUNCTION, quit,
  71.                         MENU_END)
  72.  
  73.                         MENU (Choose Type, Head Mounted Display,
  74.                                 No HMD, FUNCTION, setHMD,
  75.                                 Virtual I/O i*glasses, FUNCTION, setHMD,
  76.                                 Previous Menu, FUNCTION, backUp,
  77.                                 Play Locus, FUNCTION, playLocus,
  78.                                 Quit, FUNCTION, quit,
  79.                                 MENU_END)
  80.  
  81.                         MENU (Com Port, Head Mounted Display,
  82.                                 Com 1, FUNCTION, setTrackerPort,
  83.                                 Com 2, FUNCTION, setTrackerPort,
  84.                                 Com 3, FUNCTION, setTrackerPort,
  85.                                 Com 4, FUNCTION, setTrackerPort,
  86.                                 Previous Menu, FUNCTION, backUp,
  87.                                 Play Locus, FUNCTION, playLocus,
  88.                                 Quit, FUNCTION, quit,
  89.                                 MENU_END)
  90.  
  91.         MENU (Audio Options, Main Menu,
  92.                 Sound Options, SUBMENU,
  93.                 Music Options, SUBMENU,
  94.                 Previous Menu, FUNCTION, backUp,
  95.                 Play Locus, FUNCTION, playLocus,
  96.                 Quit, FUNCTION, quit,
  97.                 MENU_END)
  98.  
  99.                 MENU (Sound Options, Audio Options,
  100.                         Sound Card, SUBMENU,
  101.                         Set IRQ, FLYMENU, buildIRQmenu,
  102.                         Set DMA, FLYMENU, buildDMAmenu,
  103.                         Set Port, FLYMENU, buildDIGIportMenu,
  104.                         Detect Hardware, FUNCTION, autodetectSound,
  105.                         Detect Settings, FUNCTION, autodetectSettings,
  106.                         Test Sound, FUNCTION, testSound,
  107.                         Previous Menu, FUNCTION, backUp,
  108.                         Play Locus, FUNCTION, playLocus,
  109.                         Quit, FUNCTION, quit,
  110.                         MENU_END)
  111.  
  112.                 MENU (Music Options, Audio Options,
  113.                         MIDI Device, FLYMENU, chooseMidiDevice,
  114.                         Set MIDI Port, FLYMENU, setMidiPort,
  115.                         Previous Menu, FUNCTION, backUp,
  116.                         Play Locus, FUNCTION, playLocus,
  117.                         Quit, FUNCTION, quit,
  118.                         MENU_END)
  119.  
  120.  
  121.  
  122. ENDSCRIPT
  123.  
  124.  
  125.