home *** CD-ROM | disk | FTP | other *** search
- /*
- ** RenderAsDCTV.fred.pre
- **
- ** $VER: RenderAsDCTV.fred.pre 1.2.0 (24.10.93)
- **
- ** If the RenderAsDCTV.fred script appears in the InvokeADPro list,
- ** this program will ask the user to select a screen mode and number of
- ** colors (or bitplanes) with which the images will be rendered.
- **
- ** Clips Exported:
- ** FREDScreenType - Screen type to be used
- ** FREDRenderType - Render type to be used
- **
- ** NOTE: Clip names are case sensitive
- **
- ** This script requires FRED v1.4.0 (or higher) to run. Also required is
- ** ADPro v2.5.0 (or higher).
- **
- ** Copyright © 1992-1993 ASDG, Incorporated
- ** All Rights Reserved
- */
-
-
- ADDRESS "ADPro"
- OPTIONS RESULTS
-
- PARSE ARG NumberOfCells NumberOfFrames
-
- NL = '0A'X
- SQ = '27'X
- DQ = '22'X
- TRUE = 1
- FALSE = 0
-
-
- /*
- ** Let's assume for now that we want a 3 bitplane DCTV image.
- */
-
- ADPRO_TO_FRONT
-
- OKAYN '"RenderAsDCTV.fred"' '"Choose Number of Bit-Planes"' '"3 Bit-Planes|4 Bit-Planes|Cancel"'
- IF (RC = 0) THEN Do
- ADPRO_TO_FRONT
- OKAY1 "Process aborted."
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
- ELSE
- NumColors = 8 * RC
-
-
- /*
- ** Let's assume for now that all screens are low res, non-interlaced
- */
-
- ScreenType = 0
-
- ADPRO_TO_FRONT
-
- OKAYN '"RenderAsDCTV.fred"' '"Enable Horizontal Overscan?"' '"Overscan|Non-Overscan|Cancel"'
- IF (RC = 0) THEN DO
- ADPRO_TO_FRONT
- OKAY1 "Process aborted."
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
- ELSE IF (RC = 1) THEN
- ScreenType = ScreenType + 8
- ELSE IF (RC = 2) THEN
- ScreenType = ScreenType
-
- ADPRO_TO_FRONT
-
- OKAYN '"RenderAsDCTV.fred"' '"Enable Vertical Overscan?"' '"Overscan|Non-Overscan|Cancel"'
- IF (RC = 0) THEN DO
- ADPRO_TO_FRONT
- OKAY1 "Process aborted."
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
- ELSE IF (RC = 1) THEN
- ScreenType = ScreenType + 16
- ELSE IF (RC = 2) THEN
- ScreenType = ScreenType
-
- ADPRO_TO_FRONT
-
- OKAYN '"RenderAsDCTV.fred"' '"Enable Interlace?"' '"Interlace|Non-Interlace|Cancel"'
- IF (RC = 0) THEN DO
- ADPRO_TO_FRONT
- OKAY1 "Process aborted."
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
- ELSE IF (RC = 1) THEN
- ScreenType = ScreenType + 2
- ELSE IF (RC = 2) THEN
- ScreenType = ScreenType
-
- SCREEN_TO_FRONT "FRED"
-
-
- /*
- ** Update the clips.
- */
-
- SETCLIP( "FREDScreenType", ScreenType )
- SETCLIP( "FREDRenderType", NumColors )
-
- EXIT 0
-