home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
501-525
/
apd504
/
simple_dialog_box.amos
/
simple_dialog_box.amosSourceCode
Wrap
AMOS Source Code
|
1993-03-31
|
2KB
|
84 lines
'
'**************************************************************
'
' SIMPLE DIALOG BOX
' -----------------
'
' BY MALCOLM LAVERY 1993
'
'**************************************************************
'
Palette $0,$FFF,$F0
Cls 0
Global YP
'
'
Do
'
_BOX[0,"OPTIONS","PLAY GAME","PASSWORD","HIGH SCORES","RESET SCORES","EXIT",90,50,110,70]
'
Text 80,90,"YOU PICKED ITEM "+Mid$(Str$(YP),2)
Wait 50
'
Loop
'
'
Procedure _BOX[DES,TITLE$,TEX1$,TEX2$,TEX3$,TEX4$,TEX5$,X,Y,XSIZE,YSIZE]
'
Screen DES
'
Limit Mouse X+130,Y+70 To X+XSIZE+125,Y+YSIZE+40
'
Reserve Zone 6
For Z=1 To 5
Set Zone Z,X,Y+Z*10+6 To X+XSIZE,Y+Z*10+6+10
Next Z
'
Get Cblock 1,X,Y,XSIZE+16,YSIZE+1
Ink 0
Bar X,Y To X+XSIZE,Y+YSIZE
Ink 1,0
Box X+1,Y+1 To X+XSIZE-1,Y+YSIZE-1
'
Ink 1,0
'
BL=XSIZE/2
XP=X+BL-Text Length(TITLE$)/2
Text XP,Y+12,TITLE$
'
Ink 2,0
'
BL=XSIZE/2
XP=X+BL-Text Length(TEX1$)/2
Text XP,Y+12+12,TEX1$
'
BL=XSIZE/2
XP=X+BL-Text Length(TEX2$)/2
Text XP,Y+12+22,TEX2$
'
BL=XSIZE/2
XP=X+BL-Text Length(TEX3$)/2
Text XP,Y+12+32,TEX3$
'
BL=XSIZE/2
XP=X+BL-Text Length(TEX4$)/2
Text XP,Y+12+42,TEX4$
'
BL=XSIZE/2
XP=X+BL-Text Length(TEX5$)/2
Text XP,Y+12+52,TEX5$
'
Gr Writing 2
'
Repeat
YP=Mouse Zone
Box X+3,Y+YP*10+6 To X+XSIZE-3,Y+YP*10+16
Box X+3,Y+YP*10+6 To X+XSIZE-3,Y+YP*10+16
Until Mouse Click
'
Wait 5
Gr Writing 1
Put Cblock 1
Limit Mouse
'
End Proc