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