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