home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 51 / Mobiclic51.iso / mac / DATA / COMMUNS / MOBICLIC_MENUS.CST / 00035_Script_GESTION_COIN_ROUGE_STANDARD < prev    next >
Text File  |  2003-01-30  |  978b  |  39 lines

  1. global validMBD, menusActifs, menuOuvert, pisteMenuBD, pisteCoinBD, ouvreMenuBD, fermeMenuBD, menuFermeBD, volumeOn
  2. -------------------------------------------
  3. on beginSprite
  4.   pisteCoinBD = the currentSpriteNum
  5. end
  6. ----------------------------------
  7. on mouseUp
  8.   if the pauseState=0 then
  9.     if menusActifs=1 and menuOuvert=0 then
  10.       cursor 280
  11.       ouvreMenuBD=1
  12.       menuFermeBD=0
  13.       sprite(pisteMenuBD).memberNum = member("MenuBD").number
  14.       sprite(pisteMenuBD).rect = rect(320, 382, 640, 480)
  15.       afficherPistes pisteMenuBD
  16.       updateStage
  17.       menuouvert = "BD"
  18.       put "  Ouverture Θquerre rouge"
  19.     end if
  20.   end if
  21. end
  22. -----------------------------
  23. on mouseEnter
  24.   if menusActifs=1 then
  25.     equerre pisteCoinBD
  26.   end if
  27. end
  28. -----------------------------
  29. on mouseLeave
  30.   if the pauseState=0 then
  31.     if rollOver(pisteMenuBD)=0 then
  32.       cursor -1
  33.       menuOuvert = 0
  34.       fermeMenuBD=1
  35.     end if
  36.   end if
  37. end
  38.  
  39.