home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 December / WPCDEC97.ISO / DXRS / FAEWDEC.DXR / 00013_FAEImplementOption.ls < prev    next >
Encoding:
Text File  |  1997-10-14  |  4.8 KB  |  133 lines

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