home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 October / WPCOCT97.iso / DXRS / ARTWOCT.DXR / 00015_ARTWhichSection,ARTSubSection.ls < prev    next >
Encoding:
Text File  |  1997-08-13  |  6.0 KB  |  127 lines

  1. on ARTWhichSection
  2.   global ARTChooseSectionList, ARTVerticalTrailSprite, ARTMusOneMusicSprite, ARTMusOneUnderLineSprite, ARTWhichPartList, ARTLitSpriteList, ARTMusicOneBeenHere, ARTMusicOneMasterList, ARTLiteratureSprite, ARTLiteratureTrailSprite, ARTLiteratureBeenHere, ARTLiteratureMasterList, ArtImageSmallSprite, ARTGraphicsSpriteList, IFLArtsNameSprite, ARTGraphicsMasterList, ARTGraphicsBeenHere, ARTLitNet, ARTMusicOnePlayCount, ARTMusOneBackgroudSprite, ARTMusicOneList, ARTComp, ARTVidSpriteList, IFLButtonList, ARTVidPalList, IFLUSERPRESSEDESCKEY
  3.   repeat with t = 1 to count(ARTChooseSectionList)
  4.     set whichSection to getAt(ARTChooseSectionList, t)
  5.     set thisSprite to getAt(whichSection, 1)
  6.     if rollOver(getAt(whichSection, 1)) then
  7.       if getAt(whichSection, 2) = 0 then
  8.         set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) + 1
  9.         if t = 2 then
  10.           set the castNum of sprite ARTLiteratureSprite to the castNum of sprite ARTLiteratureSprite + 1
  11.         end if
  12.         if t = 3 then
  13.           set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite + 1
  14.         end if
  15.         updateStage()
  16.         setAt(whichSection, 2, 1)
  17.       end if
  18.       if the mouseDown then
  19.         if getAt(ARTWhichPartList, t) <> 1 then
  20.           puppetSound(0)
  21.           repeat with f = 1 to count(ARTWhichPartList)
  22.             if getAt(ARTWhichPartList, f) = 1 then
  23.               if f = 1 then
  24.                 setAt(ARTWhichPartList, f, 0)
  25.               end if
  26.               if f = 3 then
  27.                 ARTGraphicsGo(f)
  28.                 setAt(ARTWhichPartList, f, 0)
  29.               end if
  30.               if f = 2 then
  31.                 ARTLiteratureGo(f)
  32.                 setAt(ARTWhichPartList, f, 0)
  33.               end if
  34.               if f = 4 then
  35.                 setAt(ARTWhichPartList, f, 0)
  36.               end if
  37.               if f = 5 then
  38.                 setAt(ARTWhichPartList, f, 0)
  39.               end if
  40.             end if
  41.           end repeat
  42.           setAt(ARTWhichPartList, t, 1)
  43.           if t = 3 then
  44.             set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite - 1
  45.             set the castNum of sprite IFLArtsNameSprite to 58
  46.             repeat with c = 1 to 3
  47.               set the locV of sprite getAt(whichSection, 3) to the locV of sprite getAt(whichSection, 3) - 18
  48.               updateStage()
  49.             end repeat
  50.             if ARTGraphicsBeenHere = 1 then
  51.               repeat with a = 1 to count(ARTGraphicsMasterList)
  52.                 set ChangeSprite to getAt(ARTGraphicsMasterList, a)
  53.                 set the locH of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 3)
  54.                 set the locV of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 4)
  55.                 set the ink of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 5)
  56.                 set the castNum of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 2)
  57.               end repeat
  58.               updateStage()
  59.             else
  60.               repeat with g = 1 to count(ARTGraphicsSpriteList)
  61.                 set the castNum of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 2)
  62.                 set the locH of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 3)
  63.                 set the locV of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 4)
  64.                 set the ink of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 5)
  65.               end repeat
  66.             end if
  67.           end if
  68.           if t = 2 then
  69.             set whichSection to getAt(ARTChooseSectionList, t)
  70.             set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) - 1
  71.             set the castNum of sprite ARTLiteratureSprite to the castNum of sprite ARTLiteratureSprite - 1
  72.             set the locV of sprite ARTLiteratureSprite to the locV of sprite ARTLiteratureSprite - 20
  73.             updateStage()
  74.             repeat while the locV of sprite ARTLiteratureSprite > (185 + 20)
  75.               set the locV of sprite ARTLiteratureSprite to the locV of sprite ARTLiteratureSprite - 20
  76.               updateStage()
  77.             end repeat
  78.             set the locV of sprite ARTLiteratureSprite to 185
  79.             updateStage()
  80.             repeat with g = 1 to count(ARTLitSpriteList)
  81.               set the castNum of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 2)
  82.               set the locH of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 3)
  83.               set the locV of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 4)
  84.               set the ink of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 5)
  85.             end repeat
  86.             updateStage()
  87.           end if
  88.           if t = 4 then
  89.             setAt(ARTWhichPartList, t, 0)
  90.             ARTLeaveArts(5)
  91.           end if
  92.           if t = 5 then
  93.             setAt(ARTWhichPartList, t, 0)
  94.             ARTLeaveArts(6)
  95.           end if
  96.         end if
  97.       end if
  98.       next repeat
  99.     end if
  100.     if (getAt(whichSection, 2) = 1) and (getAt(ARTWhichPartList, t) <> 1) then
  101.       set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) - 1
  102.       if t = 2 then
  103.         set the castNum of sprite ARTLiteratureSprite to the castNum of sprite ARTLiteratureSprite - 1
  104.       end if
  105.       if t = 3 then
  106.         set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite - 1
  107.       end if
  108.       updateStage()
  109.       setAt(whichSection, 2, 0)
  110.     end if
  111.   end repeat
  112. end
  113.  
  114. on ARTSubSection
  115.   global ARTWhichPartList
  116.   repeat with f = 1 to count(ARTWhichPartList)
  117.     if getAt(ARTWhichPartList, f) = 1 then
  118.       case f of
  119.         2:
  120.           ARTLiterature()
  121.         3:
  122.           ARTGraphics()
  123.       end case
  124.     end if
  125.   end repeat
  126. end
  127.