home *** CD-ROM | disk | FTP | other *** search
/ DIM Series: Yumi Fukawa / DIM Series: Yumi Fukawa.iso / pc / data / photo_l.dxr / 00003_photo album common script.ls < prev    next >
Encoding:
Text File  |  1998-06-10  |  1.7 KB  |  76 lines

  1. global kphotosprnum, kmovielinksprnum, kautoslidestrsprnum, gautoslide, gautoslidespeed, gautoslidewaitticks, gautoslidewaittickslist, galbummode, gcurphotoorder, gcurphotonum
  2.  
  3. on updatephotoview
  4.   busycurs()
  5.   if count(gcurphotoorder) = 0 then
  6.     sendSprite(kphotosprnum, #mresetphotonum)
  7.   else
  8.     sendSprite(kphotosprnum, #msetphotonum, getAt(gcurphotoorder, gcurphotonum))
  9.   end if
  10.   sendSprite(kphotosprnum, #mupdatephotoview)
  11.   updatemovielinkview()
  12.   updateStage()
  13.   resetcurs()
  14. end
  15.  
  16. on setcurphotonum vphotonum
  17.   set gcurphotonum to vphotonum
  18.   updatephotoview()
  19. end
  20.  
  21. on setcurphotonumnoupdate vphotonum
  22.   set gcurphotonum to vphotonum
  23. end
  24.  
  25. on incphotonum
  26.   set gcurphotonum to cropvaluerotate(gcurphotonum + 1, 1, count(gcurphotoorder))
  27.   updatephotoview()
  28. end
  29.  
  30. on decphotonum
  31.   set gcurphotonum to cropvaluerotate(gcurphotonum - 1, 1, count(gcurphotoorder))
  32.   updatephotoview()
  33. end
  34.  
  35. on doautoslide
  36.   if not gautoslide then
  37.     exit
  38.   end if
  39.   if (the ticks - gautoslidewaitticks) < getAt(gautoslidewaittickslist, gautoslidespeed) then
  40.     exit
  41.   end if
  42.   incphotonum()
  43.   if not galbummode then
  44.     updatethumbnailandmarker()
  45.   end if
  46.   set gautoslidewaitticks to the ticks
  47. end
  48.  
  49. on autoclickreaction
  50.   playclicksnd()
  51.   setautoslidestate(not gautoslide)
  52. end
  53.  
  54. on setautoslidestate vstate
  55.   set gautoslide to vstate
  56. end
  57.  
  58. on changeautoslidespeed vvalue
  59.   set gautoslidespeed to vvalue
  60. end
  61.  
  62. on updatemovielinkview
  63.   if gcurphotonum = 0 then
  64.     exit
  65.   end if
  66.   if count(gcurphotoorder) < gcurphotonum then
  67.     exit
  68.   end if
  69.   set amovielinknum to getmovielinknum(getAt(gcurphotoorder, gcurphotonum))
  70.   if amovielinknum > 0 then
  71.     sendSprite(kmovielinksprnum, #mshowspr)
  72.   else
  73.     sendSprite(kmovielinksprnum, #mhidespr)
  74.   end if
  75. end
  76.