home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / ADPro251-3.DMS / ADPro251-3.adf / FREDScripts.lha / FREDRenderers / DisplayRendered.fred.pre < prev    next >
Encoding:
Text File  |  1994-01-31  |  1003 b   |  53 lines

  1. /*
  2. ** DisplayRendered.fred.pre
  3. **
  4. ** $VER: DisplayRendered.fred.pre 1.3.0 (31.10.93)
  5. **
  6. ** If the DisplayRendered.fred script appears in the InvokeADPro list,
  7. ** this program will ask the user to select an amount of time to keep
  8. ** the image on-screen.
  9. **
  10. ** Clips Exported:
  11. **    FREDDisplayDuration    -    Length of time to display image
  12. **                    in seconds
  13. **
  14. ** NOTE: Clip names are case sensitive.
  15. **
  16. ** This script requires FRED v1.4.0 (or higher) to run.  Also required is
  17. ** ADPro v2.5.0 (or higher).
  18. **
  19. ** Copyright © 1992-1993 ASDG, Incorporated
  20. ** All Rights Reserved
  21. */
  22.  
  23.  
  24. ADDRESS "ADPro"
  25. OPTIONS RESULTS
  26.  
  27. PARSE ARG NumberOfCells NumberOfFrames
  28.  
  29. NL = '0A'X
  30. SQ = '27'X
  31. DQ = '22'X
  32. TRUE  = 1
  33. FALSE = 0
  34.  
  35.  
  36. /*
  37. ** Ask the user to select the amount of time to display the image.
  38. */
  39.  
  40. CALL "FREDSCRIPTS:FREDFunctions/GetAFloat" '"Seconds to display image"' 5.0 0.1 300.0 TRUE
  41. IF (RESULT = "CANCEL") THEN
  42.     EXIT 10
  43. Duration = RESULT
  44.  
  45.  
  46. /*
  47. ** Update the clips.
  48. */
  49.  
  50. SETCLIP( "FREDDisplayDuration", Duration )
  51.  
  52. EXIT 0
  53.