home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 January / WPCJAN97.ISO / artwjan.dxr / 00017_ARTWhichSection,ARTSubSection.ls < prev    next >
Encoding:
Text File  |  1996-11-07  |  5.0 KB  |  115 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 = 1 then
  10.           set the ink of sprite getAt(whichSection, 3) to 33
  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.           if t <> 3 then
  21.             puppetSound(0)
  22.           end if
  23.           repeat with f = 1 to count(ARTWhichPartList)
  24.             if getAt(ARTWhichPartList, f) = 1 then
  25.               if f = 1 then
  26.                 setAt(ARTWhichPartList, f, 0)
  27.               end if
  28.               if f = 3 then
  29.                 ARTGraphicsGo(f)
  30.                 setAt(ARTWhichPartList, f, 0)
  31.               end if
  32.               if f = 2 then
  33.                 set IFLUSERPRESSEDESCKEY to 0
  34.                 setAt(ARTWhichPartList, f, 0)
  35.               end if
  36.             end if
  37.           end repeat
  38.           setAt(ARTWhichPartList, t, 1)
  39.           if t = 3 then
  40.             set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite - 1
  41.             set the castNum of sprite IFLArtsNameSprite to 58
  42.             repeat with c = 1 to 3
  43.               set the locV of sprite getAt(whichSection, 3) to the locV of sprite getAt(whichSection, 3) - 18
  44.               updateStage()
  45.             end repeat
  46.             if ARTGraphicsBeenHere = 1 then
  47.               repeat with a = 1 to count(ARTGraphicsMasterList)
  48.                 set ChangeSprite to getAt(ARTGraphicsMasterList, a)
  49.                 set the locH of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 3)
  50.                 set the locV of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 4)
  51.                 set the ink of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 5)
  52.                 set the castNum of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 2)
  53.               end repeat
  54.               updateStage()
  55.             else
  56.               repeat with g = 1 to count(ARTGraphicsSpriteList)
  57.                 set the castNum of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 2)
  58.                 set the locH of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 3)
  59.                 set the locV of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 4)
  60.                 set the ink of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 5)
  61.               end repeat
  62.             end if
  63.           end if
  64.           if t = 1 then
  65.             setAt(ARTWhichPartList, t, 0)
  66.             ARTLeaveArts(4)
  67.           end if
  68.           if t = 2 then
  69.             setAt(ARTWhichPartList, t, 0)
  70.             ARTLeaveArts(5)
  71.           end if
  72.           if (ARTMusicOneBeenHere = 0) and (t <> 1) then
  73.             repeat with y = 4 to count(whichSection)
  74.               set ThisList to getAt(whichSection, y)
  75.               set the castNum of sprite getAt(ThisList, 1) to getAt(ThisList, 2)
  76.               set the locH of sprite getAt(ThisList, 1) to getAt(ThisList, 3)
  77.               set the locV of sprite getAt(ThisList, 1) to getAt(ThisList, 4)
  78.               set the ink of sprite getAt(ThisList, 1) to getAt(ThisList, 5)
  79.             end repeat
  80.           end if
  81.           updateStage()
  82.         end if
  83.       end if
  84.       next repeat
  85.     end if
  86.     if (getAt(whichSection, 2) = 1) and (getAt(ARTWhichPartList, t) <> 1) then
  87.       set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) - 1
  88.       if t = 1 then
  89.         set the ink of sprite getAt(whichSection, 3) to 36
  90.       end if
  91.       if t = 3 then
  92.         set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite - 1
  93.       end if
  94.       updateStage()
  95.       setAt(whichSection, 2, 0)
  96.     end if
  97.   end repeat
  98. end
  99.  
  100. on ARTSubSection
  101.   global ARTWhichPartList
  102.   repeat with f = 1 to count(ARTWhichPartList)
  103.     if getAt(ARTWhichPartList, f) = 1 then
  104.       case f of
  105.         1:
  106.           ARTMusicOne()
  107.         2:
  108.           ARTVideo()
  109.         3:
  110.           ARTGraphics()
  111.       end case
  112.     end if
  113.   end repeat
  114. end
  115.