home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 June / Personal_Computer_World_Jun_97.iso / dxrs / gtspcw06.dxr / 00013_GTSImplementOption.ls < prev    next >
Encoding:
Text File  |  1997-03-26  |  4.9 KB  |  133 lines

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