home *** CD-ROM | disk | FTP | other *** search
/ Oz - The Magical Adventure / Adventure.iso / pc / dkdata / juice.dxr / orchard_47_OrchardNav.ls < prev    next >
Encoding:
Text File  |  2000-06-01  |  1.5 KB  |  60 lines

  1. on mouseEnter me
  2.   whichSprite = me.spriteNum
  3.   if whichSprite < 12 then
  4.     whichCursor = 7
  5.     cursorNum = member("a_" & whichCursor).memberNum
  6.     sprite(me.spriteNum).cursor = [member("a_" & whichCursor), member("a_" & whichCursor & "_mask")]
  7.   else
  8.     sprite(me.spriteNum).cursor = 280
  9.   end if
  10. end
  11.  
  12. on mouseLeave me
  13.   sprite(me.spriteNum).cursor = 0
  14. end
  15.  
  16. on endSprite
  17.   global gCursorHidden
  18.   repeat with i = 19 to 100
  19.     puppetSprite(i, 0)
  20.   end repeat
  21.   cursor(0)
  22.   gCursorHidden = 0
  23.   puppetSprite(119, 0)
  24. end
  25.  
  26. on mouseDown me
  27.   global gCurrentScreen, gPrevScreen
  28.   if sprite(117).member.name contains "empty" then
  29.     if OKtoLeave() then
  30.       whichSprite = me.spriteNum
  31.       whereTo = member(the member of sprite whichSprite).name
  32.       gPrevScreen = gCurrentScreen
  33.       gCurrentScreen = whereTo
  34.       if label(whereTo) > 0 then
  35.         isQTlink = 0
  36.         repeat with i = 12 to 14
  37.           if whichSprite = i then
  38.             isQTlink = 1
  39.             exit repeat
  40.           end if
  41.         end repeat
  42.         if not isQTlink then
  43.           if sprite(18).memberNum > 0 then
  44.             whichBlack = char 1 to 3 of the name of the paletteRef of the member of sprite(18) & "_black"
  45.             if label(whichBlack) > 0 then
  46.               go(whichBlack)
  47.             else
  48.               go(gCurrentScreen)
  49.             end if
  50.           else
  51.             go(gCurrentScreen)
  52.           end if
  53.         else
  54.           go(gCurrentScreen)
  55.         end if
  56.       end if
  57.     end if
  58.   end if
  59. end
  60.