call rtezrequest('Missing StusCDXLGUI.dosbit!' NL 'Either that or you loaded it from CLI' NL 'and not CD`d to the program`s directory!','Eeek!',TITLE,STAG,)
exit
end
if ~ exists("T:StusCDXLGUI.temp") then do
address command 'c:join StusCDXLGUI S:StusCDXLGUI.catalogue S:StusCDXLGUI.config to T:StusCDXLGUI.temp'
call rtezrequest('You cannot have it in Interlace with Stretch ON','They cancel each other out',TITLE,STAG,)
call START
end
LACE = 'ON'
call START
end
if rtresult = 5 & RES = 'HIGH' then do
RES = 'LOW'
call START
end
if rtresult = 5 & RES = 'LOW' then do
if BACKDROP = 'None' then do
call rtezrequest('You cannot have it in High Resolution without a backdrop.','Sorry',TITLE,STAG,)
call START
end
RES = 'HIGH'
call START
end
if rtresult = 6 & BOX = 'ON' then do
BOX = 'OFF'
call START
end
if rtresult = 6 & BOX = 'OFF' then do
BOX = 'ON'
call START
end
if rtresult = 7 & STRETCH = 'ON' then do
STRETCH = 'OFF'
call START
end
if rtresult = 7 & STRETCH = 'OFF' then do
if LACE = 'ON' then do
call rtezrequest('You cannot have it Stretched with Interlacen ON','They cancel each other out!',TITLE,STAG,)
call START
end
STRETCH = 'ON'
call START
end
if rtresult = 8 & TV = 'PAL' then do
TV = 'NTSC'
call START
end
if rtresult = 8 & TV = 'NTSC' then do
TV = 'PAL'
call START
end
if rtresult = 9 & POINTER = 'ON' then do
POINTER = 'OFF'
call START
end
if rtresult = 9 & POINTER = 'OFF' then do
POINTER = 'ON'
call START
end
if rtresult = 10 then do
ENDDELAY = rtgetstring(ENDDELAY,'Enter the delay in frames at the end of the clip before it quits:' NL 'PAL = 50 frames a second' NL 'NTSC = 60 frames a second',TITLE,'_OK|_Cancel',STAG,)
call START
end
if rtresult = 11 then do
LOOP = rtgetstring(LOOP,'Enter the amount of times you want it to play (0 is for infinity):',TITLE,'_OK|_Cancel',STAG,)
call START
end
if rtresult = 12 & ABORT = 'FIRE' then do
ABORT = 'LMB'
call START
end
if rtresult = 12 & ABORT = 'LMB' then do
ABORT = 'RMB'
call START
end
if rtresult = 12 & ABORT = 'RMB' then do
ABORT = 'OFF'
call START
end
if rtresult = 12 & ABORT = 'OFF' then do
ABORT = 'FIRE'
call START
end
if rtresult = 13 & CDROM = 'CD32' then do
CDROM = 'OTHER'
call START
end
if rtresult = 13 & CDROM = 'OTHER' then do
CDROM = 'CD32'
call START
end
if rtresult = 14 then do
rtresult = ''
call rtezrequest('Do you want to save current as configuration to use on startup,' NL 'put default configuration to be used on startup,' NL 'or erase the catalogue?','_Save Current|Revert to _Defaults|_Erase Catalogue|_Cancel',TITLE,STAG,)
if rtresult = 1 then do
address command 'StusCDXLGUI.dosbit config' FILENAME BACKDROP CDROM X Y CC SPEED LACE RES BOX STRETCH TV POINTER ENDDELAY LOOP ABORT
end
if rtresult = 2 then address command 'delete S:StusCDXLGUI.config quiet'
if rtresult = 3 then do
call rtezrequest('Do you really, really want to do this?','_No|_Dunno|Positive|_Hmm|Not _Sure',TITLE,STAG,)
if rtresult = 3 then address command 'delete S:StusCDXLGUI.catalogue quiet'
SFILE = rtgetstring(SFILE,'Please enter path and filename of script file to create/add to:',TITLE,'_OK|_Cancel',STAG,)
if SFILE = '' then call OTHER
if ~ exists(SFILE) then do
call rtezrequest('Create file and start script mode?','_Yup|_Mistake!',TITLE,STAG,)
if rtresult = 0 then call OTHER
end
if exists(SFILE) then do
call rtezrequest('File exists! Append and start script mode?','_Yup|_Mistake!',TITLE,STAG,)
if rtresult = 0 then call OTHER
end
address command 'echo "; AmigaDOS CDXL Playing Script. Created by" >>'SFILE
address command 'echo "; 'TITLE'" >>'SFILE
address command 'echo ";" >>'SFILE
SCRIPT = 'ON'
call OTHER
end
if SCRIPT = 'ON' then do
call rtezrequest('Really want to end script?','_Yup|_Whoops!',TITLE,STAG,)
if rtresult = 0 then call OTHER
call rtezrequest('Install loop at end? (so the script restarts)','_Let it go on and on|_No, just once thanks',TITLE,STAG,)
if rtezrequest = 1 then address command 'echo "execute 'SFILE'" >>'SFILE
address command 'echo "; end" >>'SFILE
address command 'protect' SFILE 'SWRD'
call rtezrequest('Complete','_Good.',TITLE,STAG,)
SCRIPT = 'OFF'
call OTHER
end
end
if rtresult = 0 then call START
call OTHER
PLAY:
if FILENAME = 'None' then do
call rtezrequest('You need to specify a CDXL filename','_Eek, forgot! Okay.',TITLE,STAG,)
call OTHER
end
if CC = 'ON' then ONE = 'MULTIPAL'
if CC = 'OFF' then ONE = ''
if SPEED = 'NORMAL' then TWO = 'XLSPEED=150'
if SPEED = 'SLOW' then TWO = ''
if LACE = 'OFF' then THREE = ''
if LACE = 'ON' then THREE = 'LACE'
if RES = 'LOW' then FOUR = 'LORES'
if RES = 'HIGH' then FOUR = 'HIRES'
if BOX = 'ON' then FIVE = 'BOXIT'
if BOX = 'OFF' then FIVE = ''
if STRETCH = 'ON' then SIX = 'SDBL'
if STRETCH = 'OFF' then SIX = ''
SEVEN = "LOOP="LOOP
if POINTER = 'ON' then EIGHT = ''
if POINTER = 'OFF' then EIGHT = 'NOPOINTER'
NINE = TV
TEN = "ENDDELAY="ENDDELAY
if ABORT = 'OFF' then ELEVEN = ''
if ABORT = 'FIRE' then ELEVEN = 'FIREABORT'
if ABORT = 'LMB' then ELEVEN = 'LMBABORT'
if ABORT = 'RMB' then ELEVEN = 'RMBABORT'
THIRTEEN = 'BACK'
if BACKDROP = 'None' then BACKDROP = ''
if BACKDROP = '' then THIRTEEN = ''
FOURTEEN = 'X'
if X = 'Default' then X = ''
if X = '' then FOURTEEN = ''
FIFTEEN = 'Y'
if Y = 'Default' then Y = ''
if Y = '' then FIFTEEN = ''
if CDROM = 'CD32' then SIXTEEN = 'CDXL'
if CDROM = 'OTHER' then SIXTEEN = 'DOSXL'
if SCRIPT = 'ON' then do
address command 'echo "cdgsxl.new' FILENAME THIRTEEN BACKDROP FOURTEEN X FIFTEEN Y ONE TWO THREE FOUR FIVE SIX SEVEN EIGHT NINE TEN ELEVEN SIXTEEN' " >>'SFILE
call rtezrequest('The command and configuration have been added to the script.','Next one then?',TITLE,STAG,)
end
if SCRIPT = 'OFF' then do
address command 'cdgsxl.new' FILENAME THIRTEEN BACKDROP FOURTEEN X FIFTEEN Y ONE TWO THREE FOUR FIVE SIX SEVEN EIGHT NINE TEN ELEVEN SIXTEEN
end
if BACKDROP = '' then BACKDROP = 'None'
if X = '' then X = 'Default'
if Y = '' then Y = 'Default'
call START
QUIT:
if SCRIPT = 'ON' then do
call rtezrequest('Script still running!','_Eek, forgot! Okay.',TITLE,STAG,)