home *** CD-ROM | disk | FTP | other *** search
/ Club KidSoft Volume 3 #1 / ClubKidsoft.iso / movies / catalog.dir / 00072_Script_72 < prev    next >
Text File  |  1995-02-07  |  2KB  |  64 lines

  1. -- "CatMenu" + 1
  2. on exitFrame
  3.   cursor 0
  4.   global SMenu, SMenuBar
  5.   if rollover(SMenu) = TRUE or rollover(SMenuBar) = TRUE then
  6.     go to frame the frame
  7.   else
  8.     LeaveFrame
  9.   end if
  10. end
  11.  
  12.  
  13. on mouseDown
  14.   global gMIAWOpen
  15.   if gMIAWOpen = TRUE then exit
  16.   
  17.   global SMenuItems, SMenuHilite
  18.   
  19.   if the clickOn = SMenuItems then
  20.     
  21.     -- ### BUG IN DIRECTOR: the textHeight doesn't return the correct value
  22.     -- *** CHECK THIS BEFORE SHIP!
  23.     if the machineType = 256 then
  24.       set fldTextHeight = 17
  25.     else
  26.       set fldTextHeight = 17
  27.     end if
  28.     
  29.     set itemHit = MenuSelect(SMenuItems, SMenuHilite, fldTextHeight, -2)
  30.     if itemHit <> 0 then
  31.       if marker(0) = label("CatMenu") then
  32.         if line itemHit of field "Category Menu Items" <> empty and ¼
  33. not (line itemHit of field "Category Menu Items" contains "-") then
  34.           set cat = line itemHit of field "Category Menu Items"
  35.         else
  36.           set cat = field "Category"
  37.         end if
  38.         set age = field "Age"
  39.       else -- AgesMenu
  40.         set cat = field "Category"
  41.         set age = line itemHit of field "Age Menu Items"
  42.       end if
  43.       
  44.       -- Only do anything if they chose something new
  45.       if (cat <> field "Category") or (age <> field "Age") then
  46.         SetCatalogMenus(cat, age)
  47.         puppetTransition 2, 1, 40, FALSE
  48.         ResetSummaryScreenInfo(1) 
  49.       end if
  50.     end if
  51.     
  52.     LeaveFrame
  53.   end if
  54. end
  55.  
  56. on LeaveFrame
  57.   cursor 4
  58.   -- Reshow this sprite, so isn't hidden when go to find menu
  59.   global SMenuHilite
  60.   set the visible of sprite SMenuHilite = TRUE
  61.   
  62.   ReturnTo -- uses gReturnToStack
  63. end
  64.