home *** CD-ROM | disk | FTP | other *** search
/ The VPRO Digital Guide 1994 / vpro.iso / vpro1 / shared.dir / 01704_SharedScripts5.ls < prev    next >
Encoding:
Text File  |  1994-08-28  |  5.0 KB  |  213 lines

  1. on ToggleControls
  2.   global GNavCastNum, LNAvCastNum
  3.   if the mouseCast = GNavCastNum then
  4.     set the visible of sprite 42 to 1
  5.   else
  6.     if the mouseCast = LNAvCastNum then
  7.       set the visible of sprite 43 to 1
  8.     else
  9.       HideNavControls()
  10.     end if
  11.   end if
  12. end
  13.  
  14. on Toggle3Controls
  15.   global GNavCastNum, LNAvCastNum, LLCastNum
  16.   if the mouseCast = GNavCastNum then
  17.     set the visible of sprite 42 to 1
  18.   else
  19.     if the mouseCast = LNAvCastNum then
  20.       set the visible of sprite 43 to 1
  21.     else
  22.       if the mouseCast = LLCastNum then
  23.         set the visible of sprite 48 to 1
  24.       else
  25.         HideControls()
  26.       end if
  27.     end if
  28.   end if
  29. end
  30.  
  31. on ToggleQTControls
  32.   global GNavCastNum, LNAvCastNum, MedCastNum, FaderCastNum
  33.   if (the mouseCast = MedCastNum) or (the mouseCast = FaderCastNum) then
  34.     DispQTControls()
  35.   else
  36.     HideQTControls()
  37.   end if
  38. end
  39.  
  40. on ToggleAudioControls
  41.   global GNavCastNum, LNAvCastNum, MedCastNum, FaderCastNum, MaskCastNum
  42.   if (the mouseCast = MedCastNum) or (the mouseCast = FaderCastNum) or (the mouseCast = MaskCastNum) then
  43.     DispAudioControls()
  44.   else
  45.     HideAudioControls()
  46.   end if
  47. end
  48.  
  49. on DispControls
  50.   repeat with i = 42 to 48
  51.     set the visible of sprite i to 1
  52.   end repeat
  53. end
  54.  
  55. on HideControls
  56.   repeat with i = 42 to 48
  57.     set the visible of sprite i to 0
  58.   end repeat
  59.   if chars(the movieName, 1, 2) = "JG" then
  60.     set the visible of sprite 48 to 1
  61.   end if
  62. end
  63.  
  64. on DispNavControls
  65.   repeat with i = 42 to 43
  66.     set the visible of sprite i to 1
  67.   end repeat
  68. end
  69.  
  70. on HideNavControls
  71.   repeat with i = 42 to 43
  72.     set the visible of sprite i to 0
  73.   end repeat
  74. end
  75.  
  76. on DispQTControls
  77.   set the visible of sprite 46 to 0
  78.   repeat with i = 44 to 45
  79.     set the visible of sprite i to 1
  80.   end repeat
  81.   puppetSprite(45, 1)
  82. end
  83.  
  84. on HideQTControls
  85.   repeat with i = 44 to 45
  86.     set the visible of sprite i to 0
  87.   end repeat
  88.   puppetSprite(45, 0)
  89. end
  90.  
  91. on DispAudioControls
  92.   repeat with i = 44 to 46
  93.     set the visible of sprite i to 1
  94.   end repeat
  95.   puppetSprite(45, 1)
  96. end
  97.  
  98. on HideAudioControls
  99.   repeat with i = 44 to 46
  100.     set the visible of sprite i to 0
  101.   end repeat
  102.   puppetSprite(45, 0)
  103. end
  104.  
  105. on DispLowerLeftControls
  106.   set the visible of sprite 48 to 1
  107. end
  108.  
  109. on Disp2LowerLeftControls
  110.   repeat with i = 47 to 48
  111.     set the visible of sprite i to 1
  112.   end repeat
  113. end
  114.  
  115. on HideLowerLeftControls
  116.   set the visible of sprite 48 to 0
  117. end
  118.  
  119. on Hide2LowerLeftControls
  120.   repeat with i = 47 to 48
  121.     set the visible of sprite i to 0
  122.   end repeat
  123. end
  124.  
  125. on LogIt theCurLoc
  126.   global gReturnList, gRetraceLoc, gMaxRetrace, gDontLog
  127.   if gDontLog <> 1 then
  128.     if voidp(gRetraceLoc) or (gRetraceLoc = 0) then
  129.       set gRetraceLoc to 1
  130.     end if
  131.     put "," & theCurLoc after gReturnList
  132.     set Jtemp to the number of items in gReturnList
  133.     if (chars(item Jtemp of gReturnList, 1, 2) = "JG") and (char 3 of item Jtemp of gReturnList <> "0") then
  134.       delete item Jtemp of gReturnList
  135.     end if
  136.     repeat with i = the number of items in gReturnList - 1 down to 2
  137.       if (item i of gReturnList = theCurLoc) or (item i of gReturnList = EMPTY) or ((chars(item i of gReturnList, 1, 2) = "JG") and (char 3 of item i of gReturnList <> "0")) then
  138.         delete item i of gReturnList
  139.       end if
  140.     end repeat
  141.     if the number of items in gReturnList > gMaxRetrace then
  142.       delete item 2 of gReturnList
  143.     end if
  144.     set gRetraceLoc to the number of items in gReturnList
  145.   end if
  146.   set gDontLog to 0
  147. end
  148.  
  149. on UpTheLog
  150.   global gReturnList, gRetraceLoc, gDontLog, LLHolder, gWasAt, ProductStatus
  151.   set ProductStatus to "hidden"
  152.   HideRandoms()
  153.   set gRetraceLoc to gRetraceLoc - 1
  154.   if gRetraceLoc = 1 then
  155.     set gRetraceLoc to the number of items in gReturnList
  156.   end if
  157.   set FraNam to item gRetraceLoc of gReturnList
  158.   if FraNam = "Home" then
  159.     go(chars(gWasAt, 1, 2), "Home")
  160.     exit
  161.   end if
  162.   if not ("AGBWJGKLKNMDPSRMSFSTWWZP" contains chars(FraNam, 1, 2)) then
  163.     set gDontLog to 1
  164.     go(FraNam)
  165.     exit
  166.   end if
  167.   if "01234" contains char 3 of FraNam then
  168.     set MovNam to chars(FraNam, 1, 2)
  169.   else
  170.     set MovNam to chars(FraNam, 1, 3)
  171.   end if
  172.   if StripExt(the movieName) = MovNam then
  173.     set gDontLog to 1
  174.     go(FraNam)
  175.   else
  176.     set gDontLog to 1
  177.     go(FraNam, MovNam)
  178.   end if
  179. end
  180.  
  181. on HubWarning
  182.   global gCurrentLoc
  183.   alert("U bent nu in het centrum van " & gCurrentLoc & ". Klik op een woord (boven, onder, rechts, of links).")
  184. end
  185.  
  186. on testlists
  187.   testSinglelists()
  188.   repeat with i = 1 to 6
  189.     testNames("RandomVideoList" & string(i))
  190.     testNames("RandomAudioList" & string(i))
  191.     testNames("RandomTextList" & string(i))
  192.   end repeat
  193. end
  194.  
  195. on testNames theListName
  196.   if the number of cast theListName > 0 then
  197.     put "testing:" && theListName & RETURN & RETURN
  198.     set testText to the text of cast theListName
  199.     repeat with i = 1 to the number of lines in testText
  200.       if the number of cast line i of testText < 1 then
  201.         put line i of testText & RETURN
  202.       end if
  203.     end repeat
  204.     put RETURN
  205.   end if
  206. end
  207.  
  208. on testSinglelists
  209.   testNames("RandomVideoList")
  210.   testNames("RandomAudioList")
  211.   testNames("RandomTextList")
  212. end
  213.