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

  1. /*
  2. ** Emboss.fred.pre
  3. **
  4. ** $VER: Emboss.fred.pre 1.0.0 (23.10.93)
  5. **
  6. ** If the Emboss.fred script appears in the InvokeADPro list,
  7. ** this program will ask the user which way to emboss.
  8. **
  9. ** Clips Exported:
  10. **    FREDEmbossDirection    -    1 to emboss in;
  11. **                    0 to emboss out.
  12. **
  13. ** NOTE: Clip names are case sensitive.
  14. **
  15. ** This script requires FRED v1.4.0 (or higher) to run.  Also required is
  16. ** ADPro v2.5.0 (or higher).
  17. **
  18. ** Copyright © 1993 ASDG, Incorporated
  19. ** All Rights Reserved
  20. */
  21.  
  22.  
  23. ADDRESS "ADPro"
  24. OPTIONS RESULTS
  25.  
  26. PARSE ARG NumberOfCells NumberOfFrames
  27.  
  28. NL = '0A'X
  29. SQ = '27'X
  30. DQ = '22'X
  31. TRUE  = 1
  32. FALSE = 0
  33.  
  34.  
  35. /*
  36. ** Ask the user which way to emboss.
  37. */
  38.  
  39. ADPRO_TO_FRONT
  40.  
  41. OKAYN '"Emboss.fred"' '"Direction to emboss"' '"In|Out|Cancel"'
  42. IF (RC = 0) THEN DO
  43.     SCREEN_TO_FRONT "FRED"
  44.     EXIT 10
  45. END
  46. ELSE
  47.     Direction = 2 - RC
  48.  
  49.  
  50. /*
  51. ** Update the clips.
  52. */
  53.  
  54. SETCLIP( "FREDEmbossDirection", Direction )
  55.  
  56. EXIT 0
  57.