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

  1. on GTSPreviewGame
  2.   global GTSGamesMasterList, GTSButtonsSprite, GTSButtonCastNum, GTSbuttonCount, IFLgamesNameSprite, ADDADCOntTwo, IFLButtonList, ADDAdCount, ADDADvertSprite, GTSOptionList, GTSPreview, GTSGOELSEWHERE, GTSRemOne, GTSRemTwo, GTSRemThree, GTSPreviewOrderList, GTSChoosen, GTSRAting, GTSRateingList, GTSOfHowManyList
  3.   if GTSPreview = 0 then
  4.     set GTSPreview to 1
  5.     set GTSGOELSEWHERE to 1
  6.     wait(1)
  7.     set GTSRemOne to getAt(getAt(GTSOptionList, 3), 4)
  8.     set GTSRemTwo to getAt(getAt(GTSOptionList, 2), 4)
  9.     set GTSRemThree to getAt(getAt(GTSOptionList, 4), 4)
  10.     setAt(getAt(GTSOptionList, 3), 4, 5)
  11.     setAt(getAt(GTSOptionList, 2), 4, 5)
  12.     setAt(getAt(GTSOptionList, 4), 4, 5)
  13.     repeat with f = 1 to count(GTSGamesMasterList)
  14.       set TwochangeSprite to getAt(GTSGamesMasterList, f)
  15.       if count(TwochangeSprite) > 2 then
  16.         setAt(TwochangeSprite, 2, the castNum of sprite getAt(TwochangeSprite, 1))
  17.         setAt(TwochangeSprite, 5, the ink of sprite getAt(TwochangeSprite, 1))
  18.         setAt(TwochangeSprite, 3, the locH of sprite getAt(TwochangeSprite, 1))
  19.         setAt(TwochangeSprite, 4, the locV of sprite getAt(TwochangeSprite, 1))
  20.       else
  21.         setAt(TwochangeSprite, 2, 0)
  22.       end if
  23.       if (getAt(TwochangeSprite, 1) <> 9) and (getAt(TwochangeSprite, 1) <> 16) then
  24.         set the locH of sprite getAt(TwochangeSprite, 1) to 2000
  25.         set the locV of sprite getAt(TwochangeSprite, 1) to 2000
  26.       end if
  27.     end repeat
  28.     set the locH of sprite ADDADvertSprite to 2000
  29.     set GTSbuttonCount to 0
  30.     repeat with f = 1 to count(IFLButtonList)
  31.       set ThisTempList to getAt(IFLButtonList, f)
  32.       setAt(ThisTempList, 2, the castNum of sprite getAt(ThisTempList, 1))
  33.     end repeat
  34.     repeat with t = 39 to 47
  35.       if t <> IFLgamesNameSprite then
  36.         set the locH of sprite t to 2000
  37.       end if
  38.     end repeat
  39.     set ADDADCOntTwo to 0
  40.     set ADDAdCount to 0
  41.     set the locH of sprite ADDADvertSprite to 2000
  42.     set the castNum of sprite 9 to 80
  43.     set Howmany to getAt(GTSOfHowManyList, GTSChoosen)
  44.     case Howmany of
  45.       1:
  46.         set the castNum of sprite 10 to the number of member "GTSOfOne"
  47.       2:
  48.         set the castNum of sprite 10 to the number of member "GTSOfTwo"
  49.       3:
  50.         set the castNum of sprite 10 to the number of member "GTSOfThree"
  51.       4:
  52.         set the castNum of sprite 10 to the number of member "GTSOfFour"
  53.       5:
  54.         set the castNum of sprite 10 to the number of member "GTSOffive"
  55.     end case
  56.     set the castNum of sprite 11 to getAt(GTSPreviewOrderList, 1)
  57.     repeat with x = 10 to 11
  58.       set the locH of sprite x to 548
  59.       set the locV of sprite x to 380
  60.       set the ink of sprite x to 0
  61.     end repeat
  62.     set the castNum of sprite 12 to getAt(getAt(GTSPreviewOrderList, 2), GTSChoosen)
  63.     set the locH of sprite 12 to 18
  64.     set the locV of sprite 12 to 161
  65.     set the ink of sprite 12 to 0
  66.     set the castNum of sprite GTSRAting to getAt(getAt(GTSRateingList, GTSChoosen), 1) + 1
  67.     set the locH of sprite GTSRAting to 435
  68.     set the locV of sprite GTSRAting to 310
  69.     set the ink of sprite GTSRAting to 36
  70.     set the member of sprite 30 to member "leftbrowse"
  71.     set the member of sprite 31 to member "rightbrowse"
  72.     set the loc of sprite 30 to point(2000, 423)
  73.     set the loc of sprite 31 to point(578, 423)
  74.     set the ink of sprite 30 to 0
  75.     set the ink of sprite 31 to 0
  76.     updateStage()
  77.   end if
  78. end
  79.  
  80. on GTSLeavePreview
  81.   global GTSGamesMasterList, IFLButtonList, IFLgamesNameSprite, GTSHeadCastNum, GTSVisitCoverSprite, ADDADvertSprite, GTSPreview, GTSGOELSEWHERE, GTSRemOne, GTSRemTwo, GTSRemThree, GTSPreviewCounter, IFLUSERPRESSEDESCKEY
  82.   set GTSPreviewCounter to 1
  83.   set GTSPreview to 0
  84.   set GTSGOELSEWHERE to 0
  85.   repeat with f = 1 to count(GTSGamesMasterList)
  86.     set TwochangeSprite to getAt(GTSGamesMasterList, f)
  87.     if count(TwochangeSprite) > 2 then
  88.       set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  89.       set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  90.       set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  91.       set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
  92.       set the visible of sprite getAt(TwochangeSprite, 1) to 1
  93.     else
  94.       set the locH of sprite getAt(TwochangeSprite, 1) to 2000
  95.     end if
  96.     set the locH of sprite 24 to 2000
  97.   end repeat
  98.   repeat with f = 1 to count(IFLButtonList)
  99.     set TwochangeSprite to getAt(IFLButtonList, f)
  100.     set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  101.     set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  102.     set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  103.   end repeat
  104.   setAt(getAt(GTSOptionList, 3), 4, GTSRemOne)
  105.   setAt(getAt(GTSOptionList, 2), 4, GTSRemTwo)
  106.   setAt(getAt(GTSOptionList, 4), 4, GTSRemThree)
  107.   updateStage()
  108.   set IFLUSERPRESSEDESCKEY to 0
  109. end
  110.