home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1993-02-25 | 1.7 KB | 64 lines |
- Rem example15_1.Amos
- 'another way of producing menus
- '
- '==============================================================
- 'This Source code is from The Absolute Beginners Guide To Amos
- 'Which is Licenceware and available from F1 for 2.99 P+P free
- 'The disk contains 20 chapters covering the first 110 commands
- 'every new user will need to get to grips with.
- 'Also included are 18 example programs such as this one that
- 'relate to the tutorials and many extras besides
- 'If you a new to Amos you need this product!
- '===============================================================
- Change Mouse 2
- '
- BEGIN:
- '
- '
- Rem unpack the previously designed menu screen
- Unpack 10 To 0
- Paper 2 : Pen 0
- Centre "Click on an option, any mouse key to quit playing music and viewing picture."
- '
- '
- Rem set up the zone coordinates, gathered from the getzone.amos program
- Reserve Zone 3
- Set Zone 1,256,93 To 362,104 : Rem set loadiffcoords for zone
- Set Zone 2,256,109 To 362,119 : Rem load mod
- Set Zone 3,256,125 To 362,136 : Rem quit
- '
- '
- Rem the main loop, waiting for a selection to act on
- KEE:
- While Mouse Key=0 : Wend
- KK=Mouse Zone
- '
- '
- Rem if a valid selection is made 1,2 or 3 then gosub program
- If KK=1 Then Gosub PIC : Goto BEGIN
- If KK=2 Then Gosub LMOD : Goto BEGIN
- If KK=3 Then Edit
- Goto KEE
- '
- '
- Rem the loadiff subroutine,when finds a return, returns to the
- Rem execute the next staement in the line it camr from.
- PIC:
- F$=Fsel$("*.*","","SELECT AN IFF PICTURE")
- '
- Rem if quit selected from menu return now
- If F$="" Then Return
- Load Iff F$,0
- While Mouse Key=0 : Wend
- Return
- '
- '
- Rem the load mod subroutine similar to above
- LMOD:
- F$=Fsel$("*.*","","SELECT A TRACKER MOD")
- If F$="" Then Return
- Track Load F$,5
- Track Play 5
- While Mouse Key=0 : Wend
- Track Stop
- Return