home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 2.2
/
1996-03_Disc_2.2.iso
/
locus
/
dist
/
setupmnu.scr
< prev
next >
Wrap
Text File
|
1995-09-10
|
5KB
|
125 lines
; This file uses Mike D.'s scripting routines to create a menu
; hierarchy.
; FORMAT:
; MENU (menu#1_Title, <NONE/parentMenuName>,
; entry#1_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
; entry#2_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
; .
; .
; .
; entry#n_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
; MENU_END)
;
; MENU (menu#2_Title, etc.)
;
; ...and so on.
; IMPORTANT NOTES:
; --When building the hierarchy, setup uses non-case-sensetive
; strings to identify parents and children. So you MUST NOT
; have two entries or menus with the same title!!
;
; --The root level menu will have 'None' for its parent. All other
; windows can have anything here. At the moment, this field
; isn't used for anything. In the future, it could provide
; a means to identify non-unique menu entries.
;
; --All entries in a menu either call a child menu or a function.
; The <SUBMENU/FUNCTION/FLYMENU> field determines the behavior
; for the corresponding entry. If you enter SUBMENU, the name
; in the first field determines which submenu the entry will
; call. You need no third field in this case (and should not
; enter one). If you enter FLYMENU, the third field defines
; a function which generates a menu on the fly and tries to
; attach it to the entry node. Writing FUNCTION to this field
; causes the entry to call the function linked to the name
; in the third field (the linkage takes place in a list in the
; list in the menuFns.c file).
;
; A simple example follows.
MENU (Main Menu, None,
Video Options, SUBMENU,
Audio Options, SUBMENU,
Play Locus, FUNCTION, playLocus,
Quit, FUNCTION, quit,
MENU_END)
MENU (Video Options, Main Menu,
Resolution, SUBMENU,
Head Mounted Display, SUBMENU,
Previous Menu, FUNCTION, backUp,
Play Locus, FUNCTION, playLocus,
Quit, FUNCTION, quit,
MENU_END)
MENU (Resolution, Video Options,
320x200, FUNCTION, setRes,
640x400, FUNCTION, demoVideoMessage,
Previous Menu, FUNCTION, backUp,
Play Locus, FUNCTION, playLocus,
Quit, FUNCTION, quit,
MENU_END)
MENU (Head Mounted Display, Video Options,
Choose Type, SUBMENU,
Com Port, SUBMENU,
Previous Menu, FUNCTION, backUp,
Play Locus, FUNCTION, playLocus,
Quit, FUNCTION, quit,
MENU_END)
MENU (Choose Type, Head Mounted Display,
No HMD, FUNCTION, setHMD,
Virtual I/O i*glasses, FUNCTION, setHMD,
Previous Menu, FUNCTION, backUp,
Play Locus, FUNCTION, playLocus,
Quit, FUNCTION, quit,
MENU_END)
MENU (Com Port, Head Mounted Display,
Com 1, FUNCTION, setTrackerPort,
Com 2, FUNCTION, setTrackerPort,
Com 3, FUNCTION, setTrackerPort,
Com 4, FUNCTION, setTrackerPort,
Previous Menu, FUNCTION, backUp,
Play Locus, FUNCTION, playLocus,
Quit, FUNCTION, quit,
MENU_END)
MENU (Audio Options, Main Menu,
Sound Options, SUBMENU,
Music Options, SUBMENU,
Previous Menu, FUNCTION, backUp,
Play Locus, FUNCTION, playLocus,
Quit, FUNCTION, quit,
MENU_END)
MENU (Sound Options, Audio Options,
Sound Card, SUBMENU,
Set IRQ, FLYMENU, buildIRQmenu,
Set DMA, FLYMENU, buildDMAmenu,
Set Port, FLYMENU, buildDIGIportMenu,
Detect Hardware, FUNCTION, autodetectSound,
Detect Settings, FUNCTION, autodetectSettings,
Test Sound, FUNCTION, testSound,
Previous Menu, FUNCTION, backUp,
Play Locus, FUNCTION, playLocus,
Quit, FUNCTION, quit,
MENU_END)
MENU (Music Options, Audio Options,
MIDI Device, FLYMENU, chooseMidiDevice,
Set MIDI Port, FLYMENU, setMidiPort,
Previous Menu, FUNCTION, backUp,
Play Locus, FUNCTION, playLocus,
Quit, FUNCTION, quit,
MENU_END)
ENDSCRIPT