home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 December / WPCDEC97.ISO / DXRS / ARTWDEC.DXR / 00015_ARTWhichSection,ARTSubSection.ls < prev    next >
Encoding:
Text File  |  1997-10-13  |  5.3 KB  |  121 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.             put "image on stage"
  72.             set the castNum of sprite 3 to 251
  73.             set the loc of sprite 3 to point(200, 200)
  74.             set the ink of sprite 3 to 36
  75.             updateStage()
  76.           end if
  77.           if (ARTMusicOneBeenHere = 0) and (t <> 1) then
  78.             repeat with y = 4 to count(whichSection)
  79.               set ThisList to getAt(whichSection, y)
  80.               set the castNum of sprite getAt(ThisList, 1) to getAt(ThisList, 2)
  81.               set the locH of sprite getAt(ThisList, 1) to getAt(ThisList, 3)
  82.               set the locV of sprite getAt(ThisList, 1) to getAt(ThisList, 4)
  83.               set the ink of sprite getAt(ThisList, 1) to getAt(ThisList, 5)
  84.             end repeat
  85.           end if
  86.           updateStage()
  87.         end if
  88.       end if
  89.       next repeat
  90.     end if
  91.     if (getAt(whichSection, 2) = 1) and (getAt(ARTWhichPartList, t) <> 1) then
  92.       set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) - 1
  93.       if t = 1 then
  94.         set the ink of sprite getAt(whichSection, 3) to 36
  95.       end if
  96.       if t = 3 then
  97.         set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite - 1
  98.       end if
  99.       updateStage()
  100.       setAt(whichSection, 2, 0)
  101.     end if
  102.   end repeat
  103. end
  104.  
  105. on ARTSubSection
  106.   global ARTWhichPartList
  107.   repeat with f = 1 to count(ARTWhichPartList)
  108.     if getAt(ARTWhichPartList, f) = 1 then
  109.       case f of
  110.         1:
  111.           ARTMusicOne()
  112.         2:
  113.           ARTPlayZARNAK()
  114.           put "handler"
  115.         3:
  116.           ARTGraphics()
  117.       end case
  118.     end if
  119.   end repeat
  120. end
  121.