home *** CD-ROM | disk | FTP | other *** search
- /*
- * Text.ifx
- * Written by Thomas Krehbiel
- *
- * Generate text.
- *
- * Inputs:
- * Word(Arg(1),1) = Frame number (1 - N)
- * Word(Arg(1),2) = Main filename ("-" if not specified)
- * Word(Arg(1),3) = Swap filename ("-" if not specified)
- * Word(Arg(1),4) = Sequence number
- * Word(Arg(1),5) = Total number of frames (N)
- *
- * Returns:
- * 0 if successful, non-zero on failure
- *
- */
-
- OPTIONS RESULTS
-
- base = 'Autofx_Text_'
-
- txt = GETCLIP(base||'Text')
- font = GETCLIP(base||'Font')
- size = GETCLIP(base||'Size')
- x = GETCLIP(base||'X')
- y = GETCLIP(base||'Y')
- shad = GETCLIP(base||'Shadow')
-
- GetMain
- IF rc ~= 0 THEN EXIT rc
- PARSE VAR result name width height .
-
- IF x = -1 THEN x = width % 2
- IF y = -1 THEN y = height % 2
-
- Text '"'font'"' size 100 '"'txt'"'
- IF shad THEN DO
- DrawMode Darken
- Point x+2 y+2
- END
- DrawMode Normal
- Point x y
-
- EXIT
-