home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 June / WPCJUN97.ISO / dxrs / artwjun.dxr / 00015_ARTWhichSection,ARTSubSection.ls < prev    next >
Encoding:
Text File  |  1997-04-07  |  6.1 KB  |  131 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 = 1 then
  89.             setAt(ARTWhichPartList, t, 0)
  90.             ARTLeaveArts(4)
  91.           end if
  92.           if t = 4 then
  93.             setAt(ARTWhichPartList, t, 0)
  94.             ARTLeaveArts(5)
  95.           end if
  96.           if t = 5 then
  97.             setAt(ARTWhichPartList, t, 0)
  98.             ARTLeaveArts(6)
  99.           end if
  100.         end if
  101.       end if
  102.       next repeat
  103.     end if
  104.     if (getAt(whichSection, 2) = 1) and (getAt(ARTWhichPartList, t) <> 1) then
  105.       set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) - 1
  106.       if t = 2 then
  107.         set the castNum of sprite ARTLiteratureSprite to the castNum of sprite ARTLiteratureSprite - 1
  108.       end if
  109.       if t = 3 then
  110.         set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite - 1
  111.       end if
  112.       updateStage()
  113.       setAt(whichSection, 2, 0)
  114.     end if
  115.   end repeat
  116. end
  117.  
  118. on ARTSubSection
  119.   global ARTWhichPartList
  120.   repeat with f = 1 to count(ARTWhichPartList)
  121.     if getAt(ARTWhichPartList, f) = 1 then
  122.       case f of
  123.         2:
  124.           ARTLiterature()
  125.         3:
  126.           ARTGraphics()
  127.       end case
  128.     end if
  129.   end repeat
  130. end
  131.