home *** CD-ROM | disk | FTP | other *** search
/ Blender Volume 3 #4 / Blender_3_4.iso / BLENDER / FILES / Shared.Cst / 00058.ls < prev    next >
Encoding:
Text File  |  1997-01-01  |  2.3 KB  |  80 lines

  1. --WINDOW SCRIPTS
  2.  
  3. --CONTROLPANEL WINDOWS
  4. on CONTROLS
  5.   global CONTROLWINDOW, DEST
  6.   if objectP(CONTROLWINDOW) then
  7.     forget CONTROLWINDOW
  8.   end if
  9.   set horzOrigin to the stageleft + 458
  10.   set vertOrigin to the stagetop + 0 
  11.   set CONTROLWINDOWrect to rect (horzOrigin, vertOrigin, horzOrigin + 182, vertOrigin + 60)
  12.   set CONTROLWINDOW to window "CONTROLS.DIR"
  13.   set the rect of CONTROLWINDOW to CONTROLWINDOWrect
  14.   set the fileName of CONTROLWINDOW to "CONTROLS.DIR"
  15.   set the titleVisible of CONTROLWINDOW to FALSE
  16.   set the modal of CONTROLWINDOW to FALSE
  17.   set the windowType of CONTROLWINDOW to 2
  18.   open CONTROLWINDOW
  19. end
  20.  
  21.  
  22. --SURE YOU WANT TO QUIT? DIALOGUE
  23. on endMOVIE
  24.   global CONTROLWINDOW, DEST
  25.   if objectP(CONTROLWINDOW) then
  26.     forget CONTROLWINDOW
  27.   end if
  28.   set horzOrigin to the stageleft + 160
  29.   set vertOrigin to the stagetop + 130
  30.   set CONTROLWINDOWrect to rect (horzOrigin, vertOrigin, horzOrigin + 320, vertOrigin + 220)
  31.   set CONTROLWINDOW to window "CONTROL.DIR"
  32.   set the rect of CONTROLWINDOW to CONTROLWINDOWrect
  33.   set the fileName of CONTROLWINDOW to "CONTROL.DIR"
  34.   set the titleVisible of CONTROLWINDOW to FALSE
  35.   set the modal of CONTROLWINDOW to FALSE
  36.   set the windowType of CONTROLWINDOW to 2
  37.   open CONTROLWINDOW
  38. end
  39.  
  40.  
  41. --HELPSCREEN
  42. on HELPMOVIE
  43.   global CONTROLWINDOW2, DEST
  44.   set horzOrigin to the stageleft - 288
  45.   set vertOrigin to the stageTop + 100
  46.   set CONTROLWINDOW2rect to rect (horzOrigin, vertOrigin, horzOrigin + 430, vertOrigin + 206)
  47.   set CONTROLWINDOW2 to window "HELP.DIR"
  48.   set the rect of CONTROLWINDOW2 to CONTROLWINDOW2rect
  49.   set the fileName of CONTROLWINDOW2 to "HELP.DIR"
  50.   set the titleVisible of CONTROLWINDOW2 to FALSE
  51.   set the windowType of CONTROLWINDOW2 to 2
  52.   open CONTROLWINDOW2
  53.   set the modal of CONTROLWINDOW2 to FALSE
  54. end
  55.  
  56.  
  57. --DISPOSE OF WINDOWS
  58. on stopMovie
  59.   global gOpSys, TRACKINGflag
  60.   finishMovie
  61.   if gOpSys <> #PIP then
  62.     if  TRACKINGflag <> FALSE then
  63.       trackTimeStop
  64.     end if
  65.   end if
  66. end
  67.  
  68. on finishMovie
  69.   global CONTROLWINDOW, CONTROLWINDOW2, gHelpTrue
  70.   set gHelpTrue = 0
  71.   set the modal of window "CONTROL.DIR" to FALSE
  72.   set the modal of window "CONTROLS.DIR" to FALSE
  73.   set the modal of window "HELP.DIR" to FALSE
  74.   if objectP(CONTROLWINDOW) then
  75.     forget CONTROLWINDOW
  76.   end if
  77.   if objectP(CONTROLWINDOW2) then
  78.     forget CONTROLWINDOW2
  79.   end if
  80. end