home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ISV Strong Games
/
ISV_STRONG_GAMES.iso
/
flightsim
/
xwing
/
!X-Wing
/
!XWing
(
.txt
)
< prev
next >
Wrap
RISC OS BBC BASIC V Source
|
1996-07-08
|
3KB
|
83 lines
> <XWing$Dir>.!XWing
"Hourglass_Smash":
" at line: ";
"<FST$Dir>.ShellLibRT"
"Hourglass_On"
"Wimp_SlotSize",-1,-1
progsize%
pagesize%=1<<10
freespace%=&8000+progsize%
=freespace%+pagesize%
=freespace%
shell_HeapManagerInit("<FST$Dir>.",freespace%)
shell_Init
6task%=
shell_WimpInit_I(200,"Event Shell Program")
PROCshell_TraceInit("")
PROCshell_TraceOn
shell_ResourcesInit
app_init
-------------------- Initialise Variables ----------------------------
G_closedown% =
Set this to TRUE when you want the program to
! :
Dchanged% =
Used to keep track of whether the data has
K :
been changed. Call PROCfile_changed() when it
G :
has. But if the program does not use data
H :
files just ignore this variable but do not
G :
delete it as the program checks it before
& :
exiting!
-------------------- Miscelleanous Initialisation --------------------
shell_Error
"Hourglass_Off"
shell_Action(
shell_Poll_I(0,task%))
_closedown%
shell_Exit:
======================================================================
app_init
SetUp_IconBar
SetUp_Windows
SetUp_Menus
shell_InitHelpSystem(
shell_GetAppDir+".Warfare",
SetUp_IconBar
7]sicon=
shell_Iconbar(-1,"!"+
shell_GetAppName,"",120,"Warfare",0,0,0,"_menuselect_sicon")
shell_AttachHelpTag(-1,sicon,"iconbar")
shell_AttachClickSelect(-1,sicon,"_clickiconbar")
SetUp_Windows
shell_CreateWindowStatic("mainw",mainw%)
SetUp_Menus
shell_AttachMenuDBox("Warfare.Info","progInfo","_PreOpenInfo","")
_PreOpenInfo(wh%)
shell_IconPutData(wh%,4,
shell_MessageNoArgs("progInfo0"),0)
shell_IconPutData(wh%,6,
shell_MessageNoArgs("progInfo1"),0)
shell_IconPutData(wh%,5,
shell_MessageNoArgs("progInfo2"),0)
shell_IconPutData(wh%,7,
shell_MessageNoArgs("progInfo3"),0)
_menuselect_sicon(selection$)
v0%,v1%,v2%,v3%
selection$
"Start Game"
RunGame
"Help"
R'
shell_OpenWindowStatic(mainw%)
shell_MessageNoArgs("Quit"):_closedown%=
_clickiconbar(wh%,icon%)
shell_OpenWindowStatic(mainw%)
RunGame
*<FST$Dir>.Loader
================= End Of User Application ============================