home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 December / WPCDEC97.ISO / DXRS / GTSWDEC.DXR / 00137_GTSImplementOption.ls < prev    next >
Encoding:
Text File  |  1997-10-15  |  4.9 KB  |  132 lines

  1. on GTSImplementOption x
  2.   global GTSOptionList, GTSYesOrCancel, GTSSizeList, GTSNameList, GTSInstallSprite, GTSChoosen, GTSBatchInstallList, GTS95List, GTSButtonsSprite, GTSExplainSprite, GTSWIN95, GTSPlaySprite, GTSPlayInstallList, IFLUSERPRESSEDESCKEY, DriveLtr
  3.   set ThisList to getAt(GTSOptionList, x)
  4.   if x = 3 then
  5.     if GTSWIN95 = 1 then
  6.       set WhichScenario to getAt(getAt(GTS95List, GTSChoosen), 1)
  7.     else
  8.       set WhichScenario to getAt(getAt(GTS311List, GTSChoosen), 1)
  9.     end if
  10.     if WhichScenario = 2 then
  11.       if GTSWIN95 = 1 then
  12.         set WhichTextBox to getAt(getAt(GTS95List, GTSChoosen), 2)
  13.       else
  14.         set WhichTextBox to getAt(getAt(GTS311List, GTSChoosen), 2)
  15.       end if
  16.       set the castNum of sprite GTSExplainSprite to WhichTextBox
  17.       set the locH of sprite GTSExplainSprite to 224
  18.       set the locV of sprite GTSExplainSprite to 283
  19.       set the ink of sprite GTSExplainSprite to 0
  20.     else
  21.       set the castNum of sprite getAt(ThisList, 5) to getAt(ThisList, 6)
  22.       set the locH of sprite getAt(ThisList, 5) to getAt(ThisList, 7)
  23.       set the locV of sprite getAt(ThisList, 5) to getAt(ThisList, 8)
  24.       set the ink of sprite getAt(ThisList, 5) to 37
  25.     end if
  26.   else
  27.     set the castNum of sprite getAt(ThisList, 5) to getAt(ThisList, 6)
  28.     set the locH of sprite getAt(ThisList, 5) to getAt(ThisList, 7)
  29.     set the locV of sprite getAt(ThisList, 5) to getAt(ThisList, 8)
  30.     set the ink of sprite getAt(ThisList, 5) to 37
  31.   end if
  32.   updateStage()
  33.   if x = 2 then
  34.     wait(1)
  35.     set IFLUSERPRESSEDESCKEY to 2
  36.     GTSPreviewGame()
  37.   end if
  38.   if x = 4 then
  39.     if the machineType > 200 then
  40.       set TempName to getAt(GTSPlayInstallList, GTSChoosen)
  41.       if TempName <> "0" then
  42.         open(DriveLtr & TempName)
  43.       end if
  44.     else
  45.       put "play"
  46.     end if
  47.     set the locH of sprite 23 to 2000
  48.     set the locH of sprite GTSPlaySprite to 2000
  49.     setAt(getAt(GTSOptionList, 4), 4, 5)
  50.     wait(1)
  51.     set the locH of sprite getAt(ThisList, 5) to 2000
  52.     updateStage()
  53.   end if
  54.   if x = 1 then
  55.     GTSGameStop()
  56.   end if
  57.   if x = 3 then
  58.     repeat while the mouseDown
  59.     end repeat
  60.     repeat while 1
  61.       if WhichScenario = 2 then
  62.         if the mouseCast = WhichTextBox then
  63.           repeat while 1
  64.             if word the mouseWord of field WhichTextBox = "INSTALL" then
  65.               set GTSThisword to the mouseWord
  66.               set the foreColor of word GTSThisword of field WhichTextBox to 0
  67.               repeat while word the mouseWord of field WhichTextBox = "INSTALL"
  68.                 if the mouseDown then
  69.                   set GTSYesOrCancel to 1
  70.                   set the castNum of sprite GTSExplainSprite to 52
  71.                   set the locH of sprite GTSExplainSprite to 2000
  72.                   set the castNum of sprite getAt(ThisList, 5) to 38
  73.                   set the locH of sprite getAt(ThisList, 5) to 200
  74.                   set the locV of sprite getAt(ThisList, 5) to 200
  75.                   set the ink of sprite getAt(ThisList, 5) to 37
  76.                   cursor(4)
  77.                   updateStage()
  78.                   exit repeat
  79.                 end if
  80.               end repeat
  81.               set the foreColor of word GTSThisword of field WhichTextBox to 255
  82.             end if
  83.             if word the mouseWord of field WhichTextBox = "CANCEL" then
  84.               set GTSThisword to the mouseWord
  85.               set the foreColor of word GTSThisword of field WhichTextBox to 0
  86.               repeat while word the mouseWord of field WhichTextBox = "CANCEL"
  87.                 if the mouseDown then
  88.                   set GTSYesOrCancel to 2
  89.                   set the castNum of sprite GTSExplainSprite to 52
  90.                   set the locH of sprite GTSExplainSprite to 2000
  91.                   updateStage()
  92.                   exit repeat
  93.                 end if
  94.               end repeat
  95.               set the foreColor of word GTSThisword of field WhichTextBox to 255
  96.             end if
  97.             if GTSYesOrCancel > 0 then
  98.               exit repeat
  99.               next repeat
  100.             end if
  101.             if (the mouseCast <> WhichTextBox) and the mouseDown then
  102.               beep()
  103.             end if
  104.           end repeat
  105.         end if
  106.       else
  107.         set GTSYesOrCancel to 1
  108.       end if
  109.       if GTSYesOrCancel = 1 then
  110.         set GTSYesOrCancel to 0
  111.         if the machineType > 200 then
  112.           set TempName to getAt(GTSPlayInstallList, GTSChoosen)
  113.           if TempName <> "0" then
  114.             open(DriveLtr & TempName)
  115.           end if
  116.         end if
  117.         cursor(-1)
  118.         set the castNum of sprite GTSExplainSprite to 52
  119.         set the locH of sprite GTSExplainSprite to 2000
  120.         set the locH of sprite getAt(ThisList, 5) to 2000
  121.         set the locH of sprite GTSInstallSprite to 2000
  122.         set the locH of sprite 22 to 2000
  123.         setAt(getAt(GTSOptionList, 3), 4, 5)
  124.         updateStage()
  125.       else
  126.         set GTSYesOrCancel to 0
  127.       end if
  128.       exit repeat
  129.     end repeat
  130.   end if
  131. end
  132.