home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 July / WPCJUL96.ISO / file.exe / GTSFINJ.DXR / 00015_GTSPreviewGame,GTSLeavePreview.ls < prev    next >
Encoding:
Text File  |  1996-05-15  |  4.1 KB  |  91 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
  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 the castNum of sprite 10 to getAt(GTSPreviewOrderList, 1)
  44.     set the castNum of sprite 11 to getAt(GTSPreviewOrderList, 2)
  45.     repeat with x = 10 to 11
  46.       set the locH of sprite x to 548
  47.       set the locV of sprite x to 423
  48.       set the ink of sprite x to 36
  49.     end repeat
  50.     set the castNum of sprite 12 to getAt(getAt(GTSPreviewOrderList, 3), GTSChoosen)
  51.     set the locH of sprite 12 to 177
  52.     set the locV of sprite 12 to 241
  53.     set the ink of sprite 12 to 36
  54.     set the castNum of sprite GTSRAting to getAt(getAt(GTSRateingList, GTSChoosen), 1) + 1
  55.     set the locH of sprite GTSRAting to 52
  56.     set the locV of sprite GTSRAting to 186
  57.     set the ink of sprite GTSRAting to 36
  58.     updateStage()
  59.   end if
  60. end
  61.  
  62. on GTSLeavePreview
  63.   global GTSGamesMasterList, IFLButtonList, IFLgamesNameSprite, GTSHeadCastNum, GTSVisitCoverSprite, ADDADvertSprite, GTSPreview, GTSGOELSEWHERE, GTSRemOne, GTSRemTwo, GTSRemThree, GTSPreviewCounter
  64.   set GTSPreviewCounter to 0
  65.   set GTSPreview to 0
  66.   set GTSGOELSEWHERE to 0
  67.   repeat with f = 1 to count(GTSGamesMasterList)
  68.     set TwochangeSprite to getAt(GTSGamesMasterList, f)
  69.     if count(TwochangeSprite) > 2 then
  70.       set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  71.       set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  72.       set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  73.       set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
  74.       set the visible of sprite getAt(TwochangeSprite, 1) to 1
  75.     else
  76.       set the locH of sprite getAt(TwochangeSprite, 1) to 2000
  77.     end if
  78.     set the locH of sprite 24 to 2000
  79.   end repeat
  80.   repeat with f = 1 to count(IFLButtonList)
  81.     set TwochangeSprite to getAt(IFLButtonList, f)
  82.     set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  83.     set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  84.     set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  85.   end repeat
  86.   setAt(getAt(GTSOptionList, 3), 4, GTSRemOne)
  87.   setAt(getAt(GTSOptionList, 2), 4, GTSRemTwo)
  88.   setAt(getAt(GTSOptionList, 4), 4, GTSRemThree)
  89.   updateStage()
  90. end
  91.