home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-08-13 | 163.3 KB | 3,985 lines |
- Scala EX Modules
- ================
-
- Foreword
-
- This document provides an overview of the EX modules that are shipped with
- MM200 and IC200. Updates to this document will be made available at the
- web page:
-
- http://www.scala.com/scripting.
-
- In general, users of Scala products should not have to resort to hand-editing
- scripts--the authoring system should provide all necessary features. However,
- if a feature is required that is not supported by the authoring system, then
- manual updating of a script may be required. It is posible to create new
- scripts outside of the authoring system, as well as hand-edit scripts that
- were created by the authoring system.
-
- Note that loading an hand-edited or hand-authored script into the authoring
- system may produce unexpected results.
-
- -------------------------------------------------------------------------------
-
- Contents:
-
- 1. Launch EX Script Commands and Variables
- 2. FileIO EX Script Commands and Variables
- 3. Sound EX Script Commands and Variables
- 4. Input EX Script Commands and Variables
- 5. Time Script Functions and Variables
- 6. MPEG EX Script Commands and Variables
- 7. Screen Script Commands and Variables
-
- -------------------------------------------------------------------------------
-
- 1. Launch EX Script Commands and Variables
- ===========================================
-
- The Launch EX provides a single command that is used to start other programs
- outside of the Scala application.
-
- Launch (command_line, Minimized(state), Wait(state));
-
- -------------------------------------------------------------------------------
-
- 2. FileIO EX Script Commands and Variables
- ==========================================
-
- Overview
- --------
-
- Function Description
- -------- -----------
- Open() Open a file or directory.
- Close() Close a file or directory.
- ReadStr() Read a line from an open file and return it as a string.
- ReadInt() Read a line from an open file, convert it to an integer
- and return the integer.
- ReadBool() Read a line from an open file, convert it to a boolean
- (where 1=TRUE and 0=FALSE) and return the boolean.
- ReadChars() Read a number of characters from an open file and return
- it as a string.
- WriteStr() Write a string to an open file. The string is written
- as a complete line, with CR/LF appended.
- WriteInt() Write an integer to an open file. The integer is written
- as a complete line, with CR/LF appended.
- WriteBool() Write a boolean to an open file. The boolean is written
- as a complete line, with CR/LF appended.
- WriteChars() Write a number of characters to an open file. Only the
- characters are written, with no trailing CR/LF.
- MkDir() Create a directory.
- FileSize() Get the size of a file.
- RmDir() Remove a directory.
- Eof() Check for end-of-file condition on an open file.
- Erase() Erase a file.
- Rename() Rename a file.
- Copy() Copy a file.
-
- FileIO variable summary:
-
- Variable Description
- -------- -----------
- FileIO.Status Contains the status returned by the last call to
- any of the FileIO functions.
-
- Open Function
- --------------
-
- This function will open a file or directory for processing. It will
- return a filehandle that will be used in the future to reference the
- file until the file is closed.
-
- Note that all File I/O access is restricted to the "Data" directory
- within the "Scala" directory. You are not allowed to use full path
- names or drive letters when specifying file names. All file names
- are expected to be relative to the Data directory.
-
- Open has three different access modes. The first mode is READ, when
- the file is opened for READ access only READs may occur. If a Write
- is attempted and error is the result.
-
- The second mode is WRITE, which implies READ access as well. With this
- setting a file can be used for both READING and WRITING.
-
- The third mode is APPEND, which applies both READ and WRITE Access. The
- difference with APPEND is that the filepointer is not set to point at
- the end of the file as opposed to the beginning of the file as with all
- of the other modes.
-
- Syntax:
- -------
-
- FileHandle = INTEGER Open("filename", READ)
- FileHandle = INTEGER Open("filename", WRITE)
- FileHandle = INTEGER Open("filename", APPEND)
- DirHandle = INTEGER Open("directory", DIR)
-
- Returns
- -------
-
- If successful a positive integer value is returned. If there is a
- failure a zero will be returned.
-
- Close Function
- --------------
-
- The Close function will close the current open file or directory. The
- user would pass the FileHandle or DirHandle to the close function.
-
- Syntax
- ------
-
- status = INTEGER Close(INTEGER FileHandle)
- status = INTEGER Close(INTEGER DirHandle)
-
- Returns
- -------
-
- If succesful Close() returns 0.
- This command also sets FileIO.Status. The variable will
- contain 1 if successful, or 0 zero if not.
-
- ReadStr Function
- ----------------
-
- This function will read from the specified filehandle an entire line
- of text from the file.
-
- Syntax
- ------
-
- buffer = STRING ReadStr(INTEGER FileHandle)
-
- Returns
- -------
-
- Will return either a string or "" if it fails.
- This command also sets FileIO.Status. The variable will
- contain 1 if successful, or 0 zero if not.
-
- ReadInt Function
- ----------------
-
- The ReadInt Function will read from the provided filehandle a single
- integer.
-
- Syntax
- ------
-
- value = INTEGER ReadInt(INTEGER FileHandle)
-
- Returns
- -------
-
- returns an integer value.
-
- This command also sets FileIO.Status. The variable will
- contain 1 if successful, or 0 zero if not.
-
- ReadBool Function
- ------------------
-
- Reads a single line of text from a file. Then the text is converted
- into an integer. If this succeeds then a 1 is returned otherwise
- a zero is returned.
-
- Example text.dat file
-
- text result
- ------------ ------
- 80 some text ---> Returns 1 (because this converts to an 80)
- 1 ---> Returns 1
- some text 4 ---> Returns 0 (because this does not convert to an integer)
- 0 ---> Returns 0
-
- Syntax
- ------
-
- value = BOOLEAN ReadBool(INTEGER FileHandle)
-
- Returns
- -------
-
- Returns either a 0 or a 1
-
- This command also sets FileIO.Status. The variable will
- contain 1 if successful, or 0 zero if not.
-
- ReadChars Function
- ------------------
-
- This function will read the specified number of characters from the
- file. It should be noted that Scala STRING variables can not contain
- any illegal character data. NO special characters or binary data
- may be held in this type of variable.
-
- Syntax
- ------
-
- buffer = STRING ReadChars(INTEGER FileHandle, INTEGER BytesToRead)
-
- Returns
- -------
-
- Returns either a string or NULL.
-
- This command also sets FileIO.Status. The variable will
- contain 1 if successful, or 0 zero if not.
-
- WriteStr Function
- -----------------
-
- This function will write the specified string into the opened
- text file. It will add a CR/LF to the end of the line before
- it is written to the file.
-
- Syntax
- ------
-
- status = BOOLEAN WriteStr(INTEGER FileHandle, STRING buffer)
-
- Returns
- -------
-
- Returns TRUE if succesful, FALSE if failure.
-
- WriteInt Function
- ------------------
-
- This function will convert the specified integer into a string
- and write that string to a text file appending a CR/LF sequence
- to the end of the string.
-
- Syntax
- ------
-
- status = BOOLEAN WriteInt(INTEGER FileHandle, INTEGER value)
-
- Returns
- -------
-
- Returns TRUE if successful, FALSE if failure.
-
- WriteBool Function
- ------------------
-
- This function will convert the specified boolean value into a
- string (either a "1" or a "0") and append a CR/LF to the string
- and write the string to the file specified.
-
- Syntax
- ------
-
- status = BOOLEAN WriteBool(INTEGER FileHandle, BOOLEAN value)
-
- Returns
- -------
-
- Returns TRUE if successful, FALSE if failure.
-
- WriteChars Function
- -------------------
-
- Writes the specified number of bytes from the variable specified to
- a file. It will NOT add a CR/LF sequence to the end of the string
- prior to writing to the file.
-
- Syntax
- ------
-
- bytes = INTEGER WriteChars(INTEGER FileHandle, STRING buffer,
- INTEGER BytesToWrite)
-
- Returns
- -------
-
- Number of bytes written.
-
- This command also sets FileIO.Status. The variable will
- contain 1 if successful, or 0 zero if not.
-
- MkDir Function
- --------------
-
- Creates the specified directory. The function will accept any valid
- Scala filename.
-
- Syntax
- ------
-
- status = BOOLEAN MkDir("filename")
-
- Returns
- -------
-
- Returns TRUE if successful, FALSE if failure.
-
- FileSize Function
- -----------------
-
- Returns the number of bytes a specified file uses on a disk.
-
- Syntax
- ------
-
- bytes = INTEGER FileSize("filename")
-
- Returns
- -------
-
- Byte count.
-
- This command also sets FileIO.Status. The variable will
- contain 1 if successful, or 0 zero if not.
-
- RmDir Function
- ---------------
-
- Deletes the directory specified. In order for this function to be
- successful the directory must be empty first.
-
- Syntax
- ------
-
- status = BOOLEAN RmDir("filename")
-
- Returns
- -------
-
- TRUE successful, FALSE if failure
-
- Eof Function
- -------------
-
- This function will return a 1 if you have read all of the data contained
- in the file. It will return a zero otherwise.
-
- Syntax
- ------
-
- status = BOOLEAN Eof(INTEGER FileHandle)
-
- Returns
- -------
-
- TRUE if End of File
- FALSE if not at end of file
-
- This command also sets FileIO.Status. The variable will
- contain 1 if successful, or 0 zero if not.
-
- Erase function
- --------------
-
- This function will delete a file.
-
- Syntax
- ------
-
- status = BOOLEAN Erase("filename")
-
- Returns
- -------
-
- TRUE if successful, FALSE if failure
-
- Rename Function
- ---------------
-
- Renames the source file to the specified destination file.
-
- Syntax
- ------
-
- status = BOOLEAN Rename("filename1", "filename2")
-
- Returns
- -------
-
- TRUE if successful, FALSE if failure
-
- Copy Function
- --------------
-
- Copies the source file to the specified destrination file.
-
- Syntax
- ------
-
- status = BOOLEAN Copy("filename1", "filename2")
-
- Returns
- -------
-
- TRUE if successful, FALSE if failure
-
- -------------------------------------------------------------------------------
-
- 3. Sound EX Script Commands and Variables
- ==========================================
-
- The Sound EX supports pre-seek/buffering/loading and sound spooling from disk.
- This EX provides a set of commands, functions and variables for controlling and
- configuring sound from in Scala Scripts.
-
- The Sound EX supports playback of Audio CD's on a CD-ROM drive, Wave files
- (.WAV 8/16-bit mono or stereo digital audio files, also ADPCM), IFF 8SVX files
- (8-bit mono uncompressed digital audio files) and General MIDI files (.MID
- files, only type 0 and 1 are supported).
-
- MIDI playback is done entirely by the Sound EX.
-
- Sound EX Commands
-
- Below is a list of all Scala Script commands provided by the Sound EX.
- Parameters within brackets are optional.
-
- Overview
-
- CD Commands
-
- CD.Eject([FADE(secs)] [,UNIT(unit)])
- CD.Pan(Panning [,UNIT(unit)])
- CD.Pause([FADE(secs)] [,UNIT(unit)])
- CD.Play(InTrack, OutTrack [,WAIT(bool)] [,LOOPS(loops)]
- [,PAN(panval)] [,FADE(vol,secs)] [,UNIT(unit)])
- CD.PlayMSF(InMSF, OutMSF [,WAIT(bool)] [,LOOPS(loops)]
- [,PAN(panval)] [,FADE(vol,secs)] [,UNIT(unit)])
- CD.ReadToc([UNIT(unit)])
- CD.Resume([FADE(vol,secs)] [,WAIT(bool)] [,UNIT(unit)])
- CD.Stop([FADE(secs)] [,UNIT(unit)])
- CD.Sync(SyncMSF [,TRACK(bool)] [,UNIT(unit)])
- CD.Volume(FadeTo, FadeTime [,WAIT(bool)] [,UNIT(unit)])
- CD.Wait([UNIT(unit)])
-
- Midi Commands
-
- Midi.Pan(Panning)
- Midi.Pause([FADE(secs)])
- Midi.Play(FileName [,RATE(rate)] [,WAIT(bool)] [,LOOPS(loops)]
- [,PAN(panval)] [,FADE(vol,secs)])
- Midi.Resume([FADE(vol,secs)] [,WAIT(bool)])
- Midi.Stop([FADE(secs)])
- Midi.Volume(FadeTo, FadeTime [,WAIT(bool)])
- Midi.Wait()
-
- Mixer Commands
-
- Mixer.Pan([MASTER(MasterPan)] [,VOICE(VoicePan)] [,FM(FMPan)]
- [,CD(CDPan)] [,LINEIN(LineInPan)])
- Mixer.Volume(FadeTime [,MASTER(MasterVol)] [,VOICE(VoiceVol)] [,FM(FMVol)]
- [,CD(CDVol)] [,LINEIN(LineInVol)] [,MICIN(MicInVol)])
-
- Sample Commands
-
- Sample.Pan(Panning)
- Sample.Play(FileName [,RATE(rate)] [,SIGNED(bool)] [,WAIT(bool)]
- [,LOOPS(loops)] [,PAN(panval)] [,FADE(vol,secs)])
- Sample.Stop([FADE(secs)])
- Sample.Volume(FadeTo, FadeTime [,WAIT(bool)])
- Sample.Wait()
-
- Details
-
- CD.PLAY
- InTrack integer Play from track number 'InTrack'
- OutTrack integer Play until track number 'OutTrack'
- [WAIT(bool)] boolean Wait for playback to complete before
- continuing?
- [LOOPS(loops)] integer Play the sequence/track 'loops' number of
- times
- [PAN(panval)] integer Set panning value to 'panval'
- (range -255 to 255)
- [FADE(vol,secs)] integer Fade from zero to 'vol' volume
- integer Fade in 'secs' seconds
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
-
-
- CD.PLAYMSF
- InMSF string Play from 'InMSF'
- format "MM:SS.FF" (mins/secs/frames)
- OutMSF string Play until 'OutMSF'
- format "MM:SS.FF" (mins/secs/frames)
- [WAIT(bool)] boolean Wait for playback to complete before
- continuing?
- [LOOPS(loops)] integer Play the sequence/track 'loops'
- number of times
- [PAN(panval)] integer Set panning value to 'panval'
- (range -255 to 255)
- [FADE(vol,secs)] integer Fade from zero to 'vol' volume
- integer Fade in 'secs' seconds
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
-
-
- CD.SYNC
- SyncMSF string Halt script until 'SyncMSF' is reached
- format "MM:SS.FF"
- [TRACK(bool)] boolean Set to 'TRUE' if relative to start of track
- rather than start of disk.
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
-
-
- CD.WAIT - Wait for playback to complete before continuing.
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
-
-
- CD.STOP - Stop playback (playback can not be resumed)
- [FADE(secs)] integer Fade down to zero during 'secs' secs
- before stopping
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
-
-
- CD.PAUSE - Pause playback (playback can be resumed if playing)
- [FADE(secs)] integer Fade down to zero during 'secs' secs
- before stopping
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
-
-
- CD.RESUME - Resume playback (if stopped during playback)
- [FADE(vol,secs)] integer Fade upto 'vol' volume
- integer Fade in 'secs' seconds
- [WAIT(bool)] boolean Wait for fade to complete before continuing?
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
-
-
- CD.EJECT - Eject the CD (not supported by all drives)
- [FADE(secs)] integer Fade down to zero during 'secs' secs
- before ejecting
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
-
-
- CD.READTOC - Rereads the table of contents if the user has inserted a CD
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
-
-
- CD.VOLUME
- FadeTo integer Set the new volume to 'FadeTo'
- (range 0 to 255)
- FadeTime integer The fade should take 'FadeTime' secs
- (0 if no fade)
- [WAIT(bool)] boolean Wait for fade to complete before continuing?
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
- SEE ALSO: CD.HWVOL
-
-
- CD.PAN
- Panning integer Set the new panning to 'Panning'
- (range -255 to 255)
- [UNIT(unit)] integer Command is related to CD-ROM unit 'unit'
- SEE ALSO: CD.HWVOL
-
-
- SAMPLE.PLAY
- FileName string Play the sample indicated by 'FileName'
- [RATE(rate)] integer Override the default rate, set to 'Rate' Hz
- [SIGNED(bool)] boolean Override the default sign
- (file contains signed data?)
- [WAIT(bool)] boolean Wait for playback to complete
- before continuing?
- [LOOPS(loops)] integer Play the sample 'loops' number of times
- [PAN(panval)] integer Set panning value to 'panval'
- (range -255 to 255)
- [FADE(vol,secs)] integer Fade from zero to 'vol' volume
- integer Fade in 'secs' seconds
-
-
- SAMPLE.WAIT - Wait for playback to complete before continuing
-
-
- SAMPLE.STOP - Stop playback (playback can be resumed if playing)
- [FADE(secs)] integer Fade down to zero during 'secs'
- seconds before stopping
-
-
- SAMPLE.VOLUME
- FadeTo integer Set the new volume to 'FadeTo'
- (range 0 to 255)
- FadeTime integer The fade should take 'FadeTime' secs
- (0 if no fade)
- [WAIT(bool)] boolean Wait for fade to complete before continuing?
-
-
- SAMPLE.PAN
- Panning integer Set the new panning to 'Panning'
- (range -255 to 255)
-
-
- MIXER.VOLUME
- FadeTime integer The fade should take 'FadeTime' secs
- (0 if no fade)
- [MASTER(MasterVol)] integer The new Master volume (range 0 to 255)
- [VOICE(VoiceVol)] integer The new Voice/Sample volume (range 0 to 255)
- [FM(FMVol)] integer The new FM/Midi volume (range 0 to 255)
- [CD(CDVol)] integer The new CD volume (range 0 to 255)
- [LINEIN(LineInVol)] integer The new Line In volume (range 0 to 255)
- [MICIN(MicInVol)] integer The new Mic In volume (range 0 to 255)
-
-
- MIXER.PAN
- [MASTER(MasterPan)] integer The new Master panning (range -255 to 255)
- [VOICE(VoicePan)] integer The new Voice/Sample panning
- (range -255 to 255)
- [FM(FMPan)] integer The new FM/Midi panning (range -255 to 255)
- [CD(CDPan)] integer The new CD panning (range -255 to 255)
- [LINEIN(LineInPan)] integer The new Line In panning (range -255 to 255)
-
-
-
- MIDI.PLAY
- FileName string Play the Midi file indicated by 'FileName'
- [RATE(rate)] integer Override the default rate, set to 'Rate' bpm
- [WAIT(bool)] boolean Wait for playback to complete before
- continuing?
- [LOOPS(loops)] integer Play the Midi file 'loops' number of times
- [PAN(panval)] integer Set panning value to 'panval'
- (range -255 to 255)
- [FADE(vol,secs)] integer Fade from zero to 'vol' volume
- integer Fade in 'secs' seconds
-
-
- MIDI.WAIT - Wait for playback to complete before continuing
-
-
- MIDI.STOP - Stop playback (playback can not be resumed)
- [FADE(secs)] integer Fade down to zero during 'secs'
- seconds before stopping
-
-
- MIDI.PAUSE - Stop playback (playback can be resumed if playing)
- [FADE(secs)] integer Fade down to zero during 'secs'
- seconds before stopping
-
-
- MIDI.RESUME - Resume playback (if playback was previously stopped)
- [FADE(vol,secs)] integer Fade up to 'vol' volume
- integer Fade in 'secs' seconds
- [WAIT(bool)] boolean Wait for fade to complete before continuing?
-
-
- MIDI.VOLUME
- FadeTo integer Set the new volume to 'FadeTo'
- (range 0 to 255)
- FadeTime integer The fade should take 'FadeTime' secs
- (0 if no fade)
- [WAIT(bool)] boolean Wait for fade to complete before continuing?
-
-
- MIDI.PAN
- Panning integer Set the new panning to 'Panning'
- (range -255 to 255)
-
-
- Sound Variables and Functions
-
- FUNCTIONS:
-
- Name Type Description
- ------------------------------------------------------------------------
- CD.LengthTrack(tracknumber) String Length of any given tracknumber
-
- VARIABLES:
-
- Name Type Example Description
- -----------------------------------------------------------------------
- CD.DiscLength String "54:32" Total playing time whole disc
- CD.DiscTime String "23:45" Elapsed time whole disc
- CD.FirstDrive String "D" Drive letter of first CD drive
- CD.MaxTracks Integer 12 Number of tracks on disc
- CD.NumDrives Integer 1 Number of CD drives on this PC
- CD.Track Integer 3 Current track number
- CD.TrackLength String "04:56" Length this track
- CD.TrackTime String "01:23" Elapsed time this track
-
- CD variables are Read Only. You cannot assign values to them.
-
-
- Name Type Range Description
- -----------------------------------------------------------------------
- Mixer.CDPan Integer -255...255 CD Pan
- Mixer.CDVol Integer 0..255 CD Volume
- Mixer.LinePan Integer -255...255 Line Pan
- Mixer.LineVol Integer 0..255 Line Volume
- Mixer.MasterPan Integer -255...255 Master Pan
- Mixer.MasterVol Integer 0..255 Master Volume
- Mixer.MicVol Integer 0..255 Microphone Volume
- Mixer.MIDIPan Integer -255...255 MIDI Pan
- Mixer.MIDIVol Integer 0..255 MIDI Volume
- Mixer.SamplePan Integer -255...255 Sample Pan
- Mixer.SampleVol Integer 0..255 Sample Volume
-
- Mixer variables are Read/Write. You can read their current value
- or set a new value.
-
- All volume settings range from 0 to 255, while all panning settings range from
- -255 to 255 (-255 equals full left channel, 0 equals full left and right
- channel, 255 equals full right channel.)
-
- Sound Environment variables
-
- The sound for MM200 is processed through Microsoft DirectX support, and does
- not depend on proprietary hardware drivers. Most of the variables listed
- in this section are now obsolete.
-
- Environment variables are used to configure the Sound EX. Below is a sample
- configuration file for the Sound EX (sound.sca). This file should be placed
- into the "config" directory of the system.
-
- !ScalaScript
- EVENT
- CD.Hwvol = FALSE;
- Sample.Type = "NONE";
- Sample.Addr = $220;
- Sample.Irq = 5;
- Sample.Dma = 1;
- Midi.Type = "NONE";
- Midi.Addr = $330;
- Midi.Patch = "NONE";
- END
-
- Here is a brief description of the Sound EX module's Environment variables.
-
- CD.HWVOL = FALSE;
-
- The CD volume can be controlled in two ways: Either by using the CD-ROM hardware
- for controlling the volume (not supported by all manufacturers), or by using the
- soundcard's mixer functions. Set this boolean variable to TRUE if you would like
- to use the CD-ROM hardware for controlling the volume.
-
- SAMPLE.TYPE = "NONE";
-
- This variable defines the type of soundcard installed in your machine (for
- sample playback).
-
- "NONE" No card has been installed.
- "SB1.X" SoundBlaster version 1.x.
- "SB1.5" SoundBlaster version 1.5.
- "SB2.0" SoundBlaster version 2.0.
- "SBPRO" SoundBlaster Pro series.
- "SB16" SoundBlaster 16-bit cards.
- "AWE32" SoundBlaster 16-bit cards.
- "MEDIAVISION" MediaVision - use MVSOUND.
-
- SAMPLE.ADDR = $220;
-
- This variable defines the address of the soundcard. The dollar sign prefixes a
- hexa-decimal address.
-
- SAMPLE.IRQ = 5;
-
- This variable defines the soundcard's irq number. Most Blaster cards do not need
- this setting.
-
- SAMPLE.DMA = 1;
-
- This variable defines the soundcard 's dma channel. Most cards do not need this
- setting.
-
- MIDI.TYPE = "NONE";
-
- This variable defines the type of MIDI card installed in your machine (for MIDI
- playback).
-
- "NONE" No card has been installed.
- "MPU401" General Midi chip used by most cards for communication
- with external equipment - also used by the Roland RAP-10
- and Roland LAPC1/MT32 cards for internal audio.
- "AWE32" SoundBlaster AWE32 / EMU8000.
- "GUS" Gravis UltraSound - use ULTRAMID.EXE.
-
- MIDI.ADDR = $330;
-
- This variable defines the address of your MIDI card, which is normally $330 for
- MPU401 and $620 for the AWE32. The dollar sign prefixes a hexadecimal address.
-
- MIDI.PATCH = "NONE";
-
- This variable defines the name of a patch or soundfonts (SBK) file that should
- automatically be loaded upon startup .
-
-
- Example scripts
-
- The following "intro" script plays the first 10 seconds of each track on the CD.
-
- EVENT
- Group:
- INTEGER(track);
- Sequence:
- EVENT
- Group:
- WHILE(track < CD.MAXTRACK)
- Sequence:
- track = track + 1;
- CD.PLAY(track, track, Wait(FALSE));
- CD.SYNC("00:10.00", Track(TRUE));
- END
- END
-
- The following "jukebox" script uses the Console EX for reading input and writing
- messages onto the screen.
-
- EVENT
- Group:
- INTEGER(track);
- track = 1;
- Sequence:
- EVENT
- Group:
- WHILE(track > 0)
- Sequence:
- ECHO("\nEnter track number: ");
- ASK(track);
- CD.PLAY(track, track, Wait(FALSE));
- END
- END
-
- The following script plays track one on the CD and crossfades to the WAV file
- indicated, waiting for completion.
-
- EVENT
- Sequence:
- MIXER.VOLUME(Voice(0), CD(255));
- CD.PLAY(1, 1, Wait(FALSE));
- SAMPLE.PLAY(":n/archive/sounds/jazzriff.wav", Wait(FALSE));
- MIXER.FADE(10, Voice(255), CD(0));
- SAMPLE.WAIT();
- END
-
- -------------------------------------------------------------------------------
-
- 4. Input EX Script Commands
- ============================
-
- Input():
-
- Input(
- [ Mouse( BOOLEAN ) ]
- [ TouchScreen( BOOLEAN ) ]
- [ Keyboard( BOOLEAN ) ]
- [ MouseControls( BOOLEAN ) ]
- [ KeyboardControls( BOOLEAN ) ]
- [ MousePointer( STRING ) ]
- [ MouseBusyPointer( STRING ) ]
- [ PointerSelectionOnly( BOOLEAN ) ]
- )
-
- Button Input
- ------------
-
- - Mouse( BOOLEAN )
- Use a mouse as the ButtonsEX input device. This option is mutually
- exclusive with the TouchScreen option.
-
- - TouchScreen( BOOLEAN )
- Use a touch screen as the ButtonsEX input device. This option is
- mutually exclusive with the Mouse option.
-
- - Keyboard( BOOLEAN )
- Use the keyboard as the ButtonsEX input device. This can be used
- with Mouse or TouchScreen.
-
-
- Slideshow Controls
- ------------------
-
- - MouseControls( BOOLEAN )
- Allows the mouse to navigate through a slideshow. This option will
- be ignored while the Mouse() option is on AND there are buttons on
- the current page.
-
- - KeyboardControls( BOOLEAN )
- Allow the keyboard to navigate through a slideshow.
-
-
- Mouse Pointer
- -------------
-
- - MousePointer( STRING )
- Filename of normal mouse pointer image. The image file can be a .bmp
- or other image file format that Scala supports for Clips. By
- default, Scala will use Scala:\pointers\stdptr.bmp.
-
- - MouseBusyPointer( STRING )
- Filename of busy mouse pointer image. The image file can be a .bmp
- or other image file format that Scala supports for Clips. A busy
- pointer will appear when buttons are on the page but are not yet
- active. If PointerSelectionOnly (see below) is On, a busy pointer
- can appear while the player is in an idle state and there are no
- wipes in progress. By default, Scala will not show a busy pointer.
-
- - PointerSelectionOnly( BOOLEAN )
- If this is On, a mouse pointer will only appear while there are
- buttons on the current page. If this is Off, a pointer will
- appear on all pages. Of course, if the user has not set the busy
- pointer image, there will be no pointer when the player is idle.
-
- -------------------------------------------------------------------------------
-
- 5. Time Script Functions and Variables
- =======================================
-
- Time
- string TIME
-
- Environment variable containing the current time in the current format
- (defined by a system setting).
-
- Date
- string DATE
-
- Environment variable containing the current date in the current format
- (defined by a system setting).
-
- Clock
- integer CLOCK
-
- Environment variable containing the number of seconds since some magic date.
-
- SysTime
- integer SYSTIME(enum Mode)
-
- Where Mode can be:
- Mode Returned Range
- ---- --------------
- Year 1995, 1996, ...
- Month [1...12]
- Day [1...31]
- Hour [0...23]
- Minute [0...59]
- Second [0...59]
- Weekday [1...7]
-
- For example:
- SysTime(Weekday) might return 5 (Thursday).
- SysTime(Year) might return 1996.
-
- -------------------------------------------------------------------------------
-
- 6. MPEG EX Script Commands
- ===========================
-
- MPEG.Stop();
-
- MPEG.Wait();
-
- MPEG.Play(filename, <options>);
-
- MPEG.Play() required parameters:
-
- -filename
-
- MPEG.Play() optional parameters:
-
- - Pos(x,y),
-
- - Size(width,height),
-
- - Wait(boolean)
-
- -------------------------------------------------------------------------------
-
- 7. Screen Script Commands and Variables
- ===========================================
-
- This is a description of the EX commands and variables supported by
- the Screen Book and related EXes.
-
- EX Variables
- ------------
-
- Various EX variables may be set to configure certain aspects of Screen
- EX operation. These include:
-
- Screen.ViewMode (string)
- If set, this tells the system to force all background elements
- to use a specific View mode, as if the View Mode suboption was
- specified in each background command. This overrides any View
- option specified in the background command.
-
- Screen.ViewWidth (integer)
- If set, this tells the system to force all background elements
- to use a specific View width, as if the View Size suboption was
- specified in each background command. This overrides any View
- option specified in the background command.
-
- Screen.ViewHeight (integer)
- If set, this tells the system to force all background elements
- to use a specific View height, as if the View Size suboption was
- specified in each background command. This overrides any View
- option specified in the background command.
-
- Screen.Switched (boolean)
- This variable changes to TRUE when the Scala application is
- switched in, and to FALSE when it is switched out. A script can
- resume execution at a specific position by setting up
- notification on this variable. Without this notification, the
- script will exit when playback is switched out.
-
- Screen.ViewColorModel (string)
- If set, this tells the system to force all background elements
- to use a specific View ColorModel, as if the View ColorModel
- suboption was specified in each background command. This can be
- PaletteMapped, HiColor, or TrueColor. This overrides any View
- option specified in the background command.
-
- Screen.ViewRefreshRate (integer)
- It takes an integer, and determines the refresh rate used by all pages.
- Zero uses the system default.
-
- Element and Style Commands
- --------------------------
-
- An element is an on-screen object created by a Scala Script command.
- An element may be either a background or a foreground element. Each
- background element replaces any background element that appeared
- previously. Foreground elements appear in front of the current
- background element, and may overlap each other. Each foreground
- element will always obscure any overlapping elements that appeared
- previously. When a background element is replaced by a new one, all
- foreground elements that were shown on it are removed automatically.
-
- Each Scala Script command that creates an element is known as an
- element command. Each element command may have required parameters
- that it expects, and/or optional parameters that it supports. This
- section describes each of these element commands and the parameters
- that it uses.
-
- A style is a command that can be used to set up commonly used options
- for reference by one or more element commands. Each element command
- has an associated style command. A Scala Script author may choose to
- use or not to use a style command for any given element command,
- depending on the needs of the script. Style commands can be used to
- reduce RAM and CPU utilization during Scala Script playback, by
- specifying common options on the style commands and referencing those
- styles by name on element commands.
-
- Note that styles are not supported by the authoring system at this time.
- They may, however, be hand authored. Scripts created with styles will
- probably not be able to be loaded into the current authoring system.
-
- An element command may reference a style command, and override some of
- the options specified in the style command by re-specifying the same
- option again in the element command. If an option is overridden this
- way, all suboptions for that option are also overridden (unless
- otherwise noted), whether or not they were specified on the element
- command. Suboptions that are not specified for an overridden option
- will use default values. All element and style commands, unless
- otherwise noted, evaluate their parameters only once, when an element
- is created.
-
- Background Commands
- -------------------
-
- AnimStyle():
-
- This command creates a style object that can be used to specify a
- common set of options used by one or more Anim commands.
-
- Synopsis:
-
- AnimStyle( stylename
- [, Loops(loops) ]
- [, Margin(left, right, top, bottom) ]
- [, Operation(state, <operation options>) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, PlayAfter(state) ]
- [, Speed(speed) ]
- [, StopAtFirstFrame(state) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- AnimStyle(Barnum, Speed(40));
- AnimStyle(Bailey, Style(Barnum), Speed(60), Wipe("FlyLeft"));
-
- Required Parameters Used by This Class:
-
- - stylename
- The name of the style being defined.
-
- Optional Parameters Supported by This Class:
-
- - Loops(loops)
- How may times to play the animation in a loop.
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - PlayAfter(state)
- Whether the animation shall stop after the first frame
- and let the sequence list be played before resuming the
- animation. Default to FALSE. If FALSE then the animation
- will be played first, then the element in the sequence
- list will be played.
-
- - Speed(speed)
- The speed of the animation in frames per second.
-
- - StopAtFirstFrame(state)
- Whether to stop the animation on the first frame after
- completion of the animation. If this is on, the first
- frame will be the last one shown. If this is off, the
- animation's last frame will be the last one shown. The
- state defaults to off.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- Anim():
-
- This command creates an animation background.
-
- All <operation options> are available for Anim() with the exception
- of TransparentRGB. In most cases, performance will not be good enough
- for any of the <operation options> to be used.
-
- Synopsis:
-
- Anim( filename
- [, Loops(loops) ]
- [, Margin(left, right, top, bottom) ]
- [, Operation(state, <operation options>) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, PlayAfter(state) ]
- [, Speed(speed) ]
- [, StopAtFirstFrame(state) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- Anim("show.flc");
- Anim("show2.flc", Style(Barnum), Loops(5));
-
- Required Parameters Used by This Class:
-
- - filename
- The name of the file containing the image data.
-
- Optional Parameters Supported by This Class:
-
- - Loops(loops)
- How may times to play the animation in a loop.
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - PlayAfter(state)
- Whether the animation shall stop after the first frame
- and let the sequence list be played before resuming the
- animation. Default to FALSE. If FALSE then the animation
- will be played first, then the element in the sequence
- list will be played.
-
- - Speed(speed)
- The speed of the animation in frames per second.
-
- - StopAtFirstFrame(state)
- Whether to stop the animation on the first frame after
- completion of the animation. If this is on, the first
- frame will be the last one shown. If this is off, the
- animation's last frame will be the last one shown. The
- state defaults to off.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- DisplayStyle():
-
- This command creates a style object that can be used to specify a
- common set of options used by one or more Display commands.
-
- Synopsis:
-
- DisplayStyle( stylename
- [, Face(<fill options>) ]
- [, Margin(left, right, top, bottom) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, Size(width, height) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- DisplayStyle(Fred, View(Mode("NTSC 704")));
- DisplayStyle(Wilma, Style(Fred), Face(RGB(0)));
-
- Required Parameters Used by This Class:
-
- - stylename
- The name of the style being defined.
-
- Optional Parameters Supported by This Class:
-
- - Face(<fill options>)
- The appearance of the face of the element. For images,
- <fill options> defaults to nothing. For other elements,
- <fill options> defaults to RGB($ffffff).
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - Size(width, height)
- This may be used to force a visual display size that is
- different than the ViewPort size. If no Display size is
- specified, the display will be the same size as the
- ViewPort (or View). If the display size is smaller than
- the ViewPort size, the display will be centered in the
- ViewPort.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- Display():
-
- This command creates a solid color or a patterned background.
-
- Synopsis:
-
- Display(
- [, Face(<fill options>) ]
- [, Margin(left, right, top, bottom) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, Size(width, height) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- Display(Face(RGB($ffffff)));
- Display(Style(Fred), Face(Tile("scalabang.bmp")), Size(608,400));
-
- Optional Parameters Supported by This Class:
-
- - Face(<fill options>)
- The appearance of the face of the element. For images,
- <fill options> defaults to nothing. For other elements,
- <fill options> defaults to RGB($ffffff).
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - Size(width, height)
- This may be used to force a visual display size that is
- different than the ViewPort size. If no Display size is
- specified, the display will be the same size as the
- ViewPort (or View). If the display size is smaller than
- the ViewPort size, the display will be centered in the
- ViewPort.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- MovieStyle():
-
- MovieStyle() creates a style object that can be used to specify a
- common set of options used by one or more Movie commands.
-
- Synopsis:
-
- MovieStyle(stylename,
- [, Loops(loops) ]
- [, Margin(left, right, top, bottom) ]
- [, Operation(state, <operation options>) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, PlayAfter(state) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Volume(volume) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- MovieStyle(Barnum, Speed(40));
- MovieStyle(Bailey, Style(Barnum), Speed(60), Wipe("FlyLeft"));
-
- Required Parameters Used by This Class:
-
- - stylename
- The name of the style being defined.
-
- Optional Parameters Supported by This Class:
-
- - Loops(loops)
- How may times to play the animation in a loop.
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - PlayAfter(state)
- Whether the animation shall stop after the first frame
- and let the sequence list be played before resuming the
- animation. Default to FALSE. If FALSE then the animation
- will be played first, then the element in the sequence
- list will be played.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Volume(volume)
- This specifies the volume for the movie / movieclip.
- Range is 0 to 255. Defaults to 255 meaning full
- volume. 0 is silence.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- Movie()
-
- Movie() creates an movie background.
-
- All <operation options> are available for Movie() with the exception
- of TransparentRGB. In most cases, performance will not be good enough
- for any of the <operation options> to be used.
-
- Synopsis:
-
- Movie(filename,
- [, Loops(loops) ]
- [, Margin(left, right, top, bottom) ]
- [, Operation(state, <operation options>) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, PlayAfter(state) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Volume(volume) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
-
- Examples:
-
- Movie("show.avi");
- Movie("show2.avi", Style(Barnum), Loops(5));
-
- Required Parameters Used by This Class:
-
- - filename
- The name of the file containing the image data.
-
- Optional Parameters Supported by This Class:
-
- - Loops(loops)
- How may times to play the animation in a loop.
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - PlayAfter(state)
- Whether the animation shall stop after the first frame
- and let the sequence list be played before resuming the
- animation. Default to FALSE. If FALSE then the animation
- will be played first, then the element in the sequence
- list will be played.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Volume(volume)
- This specifies the volume for the movie / movieclip.
- Range is 0 to 255. Defaults to 255 meaning full
- volume. 0 is silence.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- PictureStyle():
-
- This command creates a style object that can be used to specify a
- common set of options used by one or more Picture commands.
-
- Synopsis:
-
- PictureStyle( stylename
- [, Face(<fill options>) ]
- [, Margin(left, right, top, bottom) ]
- [, Operation(state, <operation options>) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- PictureStyle(MaryAnn,
- Operation(On, ImagePalette(RGBPen(1, $ff00ff, $ffff00))));
- PictureStyle(Ginger, Style(MaryAnn));
-
- Required Parameters Used by This Class:
-
- - stylename
- The name of the style being defined.
-
- Optional Parameters Supported by This Class:
-
- - Face(<fill options>)
- The appearance of the face of the element. For images,
- <fill options> defaults to nothing. For other elements,
- <fill options> defaults to RGB($ffffff).
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- Picture():
-
- This command creates a still image background.
-
- Synopsis:
-
- Picture( filename
- [, Face(<fill options>) ]
- [, Margin(left, right, top, bottom) ]
- [, Operation(state, <operation options>) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- Picture("pic1.bmp");
- Picture("pic2.bmp", Style(Ginger), Operation(On, Resize(800, 600)));
-
- Required Parameters Used by This Class:
-
- - filename
- The name of the file containing the image data.
-
- Optional Parameters Supported by This Class:
-
- - Face(<fill options>)
- The appearance of the face of the element. For images,
- <fill options> defaults to nothing. For other elements,
- <fill options> defaults to RGB($ffffff).
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- Foreground Commands
- -------------------
-
- AnimClipStyle():
-
- AnimClipStyle() creates a style object that can be used to specify a
- common set of options used by one or more AnimClip commands.
-
- Synopsis:
-
- AnimClipStyle( stylename,
- [, Loops(loops) ]
- [, Margin(left, right, top, bottom) ]
- [, Operation(state, <operation options>) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, Speed(speed) ]
- [, StopAtFirstFrame(state) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, Transparent(state) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Wait(state) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- AnimClipStyle(Barnum, Speed(40));
- AnimClipStyle(Bailey, Style(Barnum), Speed(60), Wipe("FlyLeft"));
-
- Required Parameters Used by This Class:
-
- - stylename
- The name of the style being defined.
-
- Optional Parameters Supported by This Class:
-
- - Loops(loops)
- How may times to play the animation in a loop.
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - Speed(speed)
- The speed of the animation in frames per second.
-
- - StopAtFirstFrame(state)
- Whether to stop the animation on the first frame after
- completion of the animation. If this is on, the first
- frame will be the last one shown. If this is off, the
- animation's last frame will be the last one shown. The
- state defaults to off.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - Transparent(state)
- This specifies if there should be any transparent areas
- in the front image. This option is used with the
- Operation(TransparentRGB()) option to turn on
- transparency.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Wait(state)
- Whether the player shall wait until the animation is
- finished before continuing with the sequence list.
- Defaults to FALSE. If FALSE we will not wait until the
- current animclip is finished before continuing the script.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- AnimClip()
-
- AnimClip() creates an animated object that may be placed on a page.
-
- All <operation options> are available for AnimClip(), but, in most cases,
- performance will not be good enough for them to be used.
-
- Synopsis:
-
- AnimClip( filename,
- [, Loops(loops) ]
- [, Margin(left, right, top, bottom) ]
- [, Operation(state, <operation options>) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, Speed(speed) ]
- [, StopAtFirstFrame(state) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, Transparent(state) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Wait(state) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- AnimClip("show.flc");
- AnimClip("show2.flc", Style(Barnum), Loops(5));
-
- Required Parameters Used by This Class:
-
- - filename
- The name of the file containing the image data.
-
- Optional Parameters Supported by This Class:
-
- - Loops(loops)
- How may times to play the animation in a loop.
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - Speed(speed)
- The speed of the animation in frames per second.
-
- - StopAtFirstFrame(state)
- Whether to stop the animation on the first frame after
- completion of the animation. If this is on, the first
- frame will be the last one shown. If this is off, the
- animation's last frame will be the last one shown. The
- state defaults to off.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - Transparent(state)
- This specifies if there should be any transparent areas
- in the front image. This option is used with the
- Operation(TransparentRGB()) option to turn on
- transparency.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Wait(state)
- Whether the player shall wait until the animation is
- finished before continuing with the sequence list.
- Defaults to FALSE. If FALSE we will not wait until the
- current animclip is finished before continuing the script.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- BoxStyle():
-
- This command creates a style object that can be used to specify a
- common set of options used by one or more Box commands.
-
- Synopsis:
-
- BoxStyle( stylename
- [, Align(horizontal, vertical) ]
- [, Antialias(state) ]
- [, Backdrop(state, <fill options>) ]
- [, Bevel(state, Thickness(pixels), Base(color),
- Left(<fill options>), Right(<fill options>),
- Top(<fill options>), Bottom(<fill options>)) ]
- [, Border(left, right, top, bottom) ]
- [, Face(state, <fill options>) ]
- [, Focus(state, <fill options>) ]
- [, Outline(state, Thickness(pixels), <fill options>) ]
- [, Replace(state) ]
- [, Shadow(state, Offset(horizontal, vertical), <fill options>) ]
- [, Shift(x, y) ]
- [, Style(stylename) ]
- [, Transparent(state) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- BoxStyle(Rowan, Wipe("Center", Speed(7)));
- BoxStyle(Martin, Style(Rowan), Outline(on, Thickness(2), Pen(3)));
-
- Required Parameters Used by This Class:
-
- - stylename
- The name of the style being defined.
-
- Optional Parameters Supported by This Class:
-
- - Align(horizontal, vertical)
- This determines whether the element is positioned based on
- its X,Y values, or by the Background's size and margins.
- These tables describe the alignment values and their
- meanings:
-
- Horizontal Description
- ---------- -----------
- None The left edge of the element's face is
- positioned relative to the left edge of the
- background. The element's X value and the
- cumulative effect of all applicable Offset
- commands are used for positioning the element.
-
- Left The left edge of the element's face is
- positioned at the Background's left margin.
- The element's X value and all applicable
- Offset commands are ignored.
-
- Center The vertical centerline of the element's face
- is positioned midway between the Background's
- left and right margins. The element's X value
- and all applicable Offset commands are
- ignored.
-
- Right The right edge of the element's face is
- positioned at the Background's right margin.
- The element's X value and all applicable
- Offset commands are ignored.
-
- Vertical Description
- -------- -----------
- None The top edge of the element's face is
- positioned relative to the left edge of the
- background. The element's Y value and the
- cumulative effect of all applicable Offset
- commands are used for positioning the element.
-
- Top The top edge of the element's face is
- positioned at the Background's top margin. The
- element's Y value and all applicable Offset
- commands are ignored.
-
- Middle The horizontal centerline of the element's
- face is positioned midway between the
- Background's top and bottom margins. The
- element's Y value and all applicable Offset
- commands are ignored.
-
- Bottom The bottom edge of the element's face is
- positioned at the Background's bottom margin.
- The element's Y value and all applicable
- Offset commands are ignored.
-
- If this option is not specified, the element's alignment
- defaults to (None, None).
-
- - Antialias(state)
- This determines if the element is antialiased. The state
- defaults to off.
-
- - Backdrop(state, <fill options>)
- The appearance of the bounding box of the element behind
- the face and other style options applied to the element.
- The state defaults to off. <fill options> defaults to
- RGB($7f7f7f).
-
- - Bevel(state, Thickness(pixels), Base(color),
- Left(<fill options>), Right(<fill options>),
- Top(<fill options>), Bottom(<fill options>))
- A beveled edge added outside the element's bounding box.
- The state defaults to off. Thickness may be 1 or greater,
- and defaults to 2. Base is a hint to the authoring station
- to assist with choosing bevel colors, and is not used by
- the system otherwise. The Base color is specified as a
- 4-byte hexadecimal number, where each byte encodes zero,
- red, green, and blue, from MSB to LSB. The bevel colors
- default to shades of grey.
-
- - Border(left, right, top, bottom)
- Extra space added to the edges of the element, measured in
- pixels. This effectively extends the element's bounding
- box without affecting the position of the element's face
- or the size of its face image. The border values may be 0
- or greater, and all default to 0.
-
- - Face(state, <fill options>)
- The appearance of the face of the element. The state
- defaults to on. For images, <fill options> defaults to
- nothing. For other elements, <fill options> defaults to
- RGB($ffffff).
-
- - Focus(state, <fill options>)
- How to highlight the face of the last-wiped-in element.
- When a new element gets wiped in, the face of this element
- reverts to its normal face appearance. If a group of
- elements are wiped in together, each element with this
- option specified will be highlighted. The state defaults
- to off. <fill options> defaults to RGB($ffff7f).
-
- - Outline(state, Thickness(pixels), <fill options>)
- A colored outline added to the element. The state defaults
- to off. Thickness may be 1 or greater, and defaults to 1.
- <fill options> defaults to RGB(0).
-
- - Replace(state)
- This determines whether an element command will create a
- new element or replace an existing element previously
- created by the same command. If the state is On, the
- element command will replace the previous element created
- by the same command. If the state is Off, a new element
- will be created, and any previous elements created by the
- same command will remain on the screen. This defaults to
- Replace(On).
-
- - Shadow(state, Offset(horizontal, vertical), <fill options>)
- A drop shadow drawn behind the element, drawn in a solid
- color. The state defaults to off. Either or both of the
- offsets can be positive or negative, and are measured in
- pixels. <fill options> defaults to RGB(0).
-
- - Shift(x, y)
- The amount the element's face, outline, and shadow are
- shifted from the specified element position. This is
- intended to be used for different button states to move
- the face without moving the backdrop or bevel. The offset
- values may be any numbers, and default to (0, 0).
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Transparent(state)
- Whether or not pen zero is transparent. The state defaults
- to off. If this is on, any portion of the foreground
- element drawn in pen zero will not be visible, but will
- show through to the image beneath this foreground element.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- Box():
-
- This command creates a foreground object that is a rectangle drawn
- in a solid color or a pattern.
-
- Synopsis:
-
- Box( X, Y , width, height
- [, Align(horizontal, vertical) ]
- [, Antialias(state) ]
- [, Backdrop(state, <fill options>) ]
- [, Bevel(state, Thickness(pixels), Base(color),
- Left(<fill options>), Right(<fill options>),
- Top(<fill options>), Bottom(<fill options>)) ]
- [, Border(left, right, top, bottom) ]
- [, Face(state, <fill options>) ]
- [, Focus(state, <fill options>) ]
- [, Outline(state, Thickness(pixels), <fill options>) ]
- [, Replace(state) ]
- [, Shadow(state, Offset(horizontal, vertical), <fill options>) ]
- [, Shift(x, y) ]
- [, Style(stylename) ]
- [, Transparent(state) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- Box(x, y, width, height, Face(Pen(4)));
- Box(x, y, width, height, Style(Martin), Face(on, RGB($326496)));
-
- Required Parameters Used by This Class:
-
- - X
- The horizontal position of the element's face. This
- position may be modified by the effects of Offset commands
- in containing clusters, and by Foreground's Align option.
- See those options' descriptions for more details.
-
- - Y
- The vertical position of the element's face. This position
- may be modified by the effects of Offset commands in
- containing clusters, and by Foreground's Align option. See
- those options' descriptions for more details.
-
- - width
- The horizontal dimension of the rectangle.
-
- - height
- The vertical dimension of the rectangle.
-
- Optional Parameters Supported by This Class:
-
- - Align(horizontal, vertical)
- This determines whether the element is positioned based on
- its X,Y values, or by the Background's size and margins.
- These tables describe the alignment values and their
- meanings:
-
- Horizontal Description
- ---------- -----------
- None The left edge of the element's face is
- positioned relative to the left edge of the
- background. The element's X value and the
- cumulative effect of all applicable Offset
- commands are used for positioning the element.
-
- Left The left edge of the element's face is
- positioned at the Background's left margin.
- The element's X value and all applicable
- Offset commands are ignored.
-
- Center The vertical centerline of the element's face
- is positioned midway between the Background's
- left and right margins. The element's X value
- and all applicable Offset commands are
- ignored.
-
- Right The right edge of the element's face is
- positioned at the Background's right margin.
- The element's X value and all applicable
- Offset commands are ignored.
-
- Vertical Description
- -------- -----------
- None The top edge of the element's face is
- positioned relative to the left edge of the
- background. The element's Y value and the
- cumulative effect of all applicable Offset
- commands are used for positioning the element.
-
- Top The top edge of the element's face is
- positioned at the Background's top margin. The
- element's Y value and all applicable Offset
- commands are ignored.
-
- Middle The horizontal centerline of the element's
- face is positioned midway between the
- Background's top and bottom margins. The
- element's Y value and all applicable Offset
- commands are ignored.
-
- Bottom The bottom edge of the element's face is
- positioned at the Background's bottom margin.
- The element's Y value and all applicable
- Offset commands are ignored.
-
- If this option is not specified, the element's alignment
- defaults to (None, None).
-
- - Antialias(state)
- This determines if the element is antialiased. The state
- defaults to off.
-
- - Backdrop(state, <fill options>)
- The appearance of the bounding box of the element behind
- the face and other style options applied to the element.
- The state defaults to off. <fill options> defaults to
- RGB($7f7f7f).
-
- - Bevel(state, Thickness(pixels), Base(color),
- Left(<fill options>), Right(<fill options>),
- Top(<fill options>), Bottom(<fill options>))
- A beveled edge added outside the element's bounding box.
- The state defaults to off. Thickness may be 1 or greater,
- and defaults to 2. Base is a hint to the authoring station
- to assist with choosing bevel colors, and is not used by
- the system otherwise. The Base color is specified as a
- 4-byte hexadecimal number, where each byte encodes zero,
- red, green, and blue, from MSB to LSB. The bevel colors
- default to shades of grey.
-
- - Border(left, right, top, bottom)
- Extra space added to the edges of the element, measured in
- pixels. This effectively extends the element's bounding
- box without affecting the position of the element's face
- or the size of its face image. The border values may be 0
- or greater, and all default to 0.
-
- - Face(state, <fill options>)
- The appearance of the face of the element. The state
- defaults to on. For images, <fill options> defaults to
- nothing. For other elements, <fill options> defaults to
- RGB($ffffff).
-
- - Focus(state, <fill options>)
- How to highlight the face of the last-wiped-in element.
- When a new element gets wiped in, the face of this element
- reverts to its normal face appearance. If a group of
- elements are wiped in together, each element with this
- option specified will be highlighted. The state defaults
- to off. <fill options> defaults to RGB($ffff7f).
-
- - Outline(state, Thickness(pixels), <fill options>)
- A colored outline added to the element. The state defaults
- to off. Thickness may be 1 or greater, and defaults to 1.
- <fill options> defaults to RGB(0).
-
- - Replace(state)
- This determines whether an element command will create a
- new element or replace an existing element previously
- created by the same command. If the state is On, the
- element command will replace the previous element created
- by the same command. If the state is Off, a new element
- will be created, and any previous elements created by the
- same command will remain on the screen. This defaults to
- Replace(On).
-
- - Shadow(state, Offset(horizontal, vertical), <fill options>)
- A drop shadow drawn behind the element, drawn in a solid
- color. The state defaults to off. Either or both of the
- offsets can be positive or negative, and are measured in
- pixels. <fill options> defaults to RGB(0).
-
- - Shift(x, y)
- The amount the element's face, outline, and shadow are
- shifted from the specified element position. This is
- intended to be used for different button states to move
- the face without moving the backdrop or bevel. The offset
- values may be any numbers, and default to (0, 0).
- The amount the element's face, outline, and shadow are
- shifted from the specified element position. This is
- intended to be used for different button states to move
- the face without moving the backdrop or bevel. The offset
- values may be any numbers, and default to (0, 0).
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Transparent(state)
- Whether or not pen zero is transparent. The state defaults
- to off. If this is on, any portion of the foreground
- element drawn in pen zero will not be visible, but will
- show through to the image beneath this foreground element.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- Button():
-
- Button() creates an interactive element on the display.
- Buttons do not support styles.
-
- Synopsis:
-
- Button(
- [ Wipe(wipename, <wipe options>) ]
- [ HotKey( [shift-][alt-][ctrl-]<keyname> ) ]
- [ BoxedHit(on|off) ]
- [ LinkPositions(on|off) ]
- [ MatchSize(on|off) ]
- [ Normal(
- [ Text|Clip|AnimClip|MovieClip|Box( <command params here> ), ]
- [ Use|Goto(<branch parameters>) ] ) ]
- [ Highlight( [ MousePointer( <filename> ), ]
- [ Text|Clip|AnimClip|MovieClip|Box( <command params here> ), ]
- [ Use|Goto(<branch parameters>) ] ) ]
- [ Select( [ MousePointer( <filename> ), ]
- [ Text|Clip|AnimClip|MovieClip|Box( <command params here> ), ]
- [ Use|Goto(<branch parameters>) ] ) ]
- [ SelectDown( [ Use|Goto(<branch parameters>) ] ) ]
- );
-
- Examples:
-
- Button(HotKey("F"), MatchSize(On),
- Normal(Text(20, 20, "hello", Wrap(Off, Auto(610)))),
- Select(Goto("btn: hello", Bookmark(On))));
- Button(HotKey("F12"), MatchSize(On),
- Normal(Text(20, 20, "Test button",
- Backdrop(On, Image("Scala:\buttons\steel\steel01.bmp")),
- Wrap(Off, Auto(610)))),
- Highlight(Text(20, 20, "Test button",
- Backdrop(On, Image("Scala:\buttons\steel\steel02.bmp")),
- Wrap(Off, Auto(610)))),
- Select(Text(20, 20, "Test button",
- Backdrop(On, Image("Scala:\buttons\steel\steel03.bmp")),
- Shift(10, 10), Wrap(Off, Auto(610))), Goto("_TempName1")));
- Button(Wipe("Flyon", Direction(0)), HotKey("Space"), MatchSize(On),
- Normal(Text(20, 20, "foo", Wrap(Off, Auto(610)))),
- Select(Text(20, 20, "foo", Wrap(Off, Auto(610))), Return()));
-
- Optional parameters:
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- - HotKey( [shift-][alt-][ctrl-]<keyname> )
- Specifies the key that triggers the button's selection. Buttons
- support all the keys below along with all of the qualifiers,
- although many of them don't really make sense to use
- (shift-1, ctrl-alt-DEL).
-
- UP, DOWN, LEFT, RIGHT, ENTER, HELP, TAB,
- SPACE, BACKSPACE, ESCAPE, F1-F12, A-Z,
- !\#$%&'()*+,-./:;<=>?@[\]^_`{|}~
-
- The authoring station only allows A-Z, 0-9, F1-F12, and SPACE,
- and doesn't permit modifiers.
-
- Keys are specified in double quotes (they are string parameters).
- For example:
-
- HotKey("SHIFT-ENTER"),
- HotKey("ALT-F1"),
- HotKey("&"),
- HotKey("CTRL-R"),
-
- - BoxedHit(on|off)
- Tells the button to use the bounding box as the hit area
- for the mouse.
-
- - LinkPositions(on|off)
- Pertains only to authoring.
-
- - MatchSize(on|off)
- If on, all faces will have the same rectangular size.
-
- - Normal(
- [ Text|Clip|AnimClip|MovieClip|Box( <command params here> ), ]
- [ Use|Goto(<branch parameters>) ]*
- ),
- The Text, Clip, AnimClip, MovieClip, or Box option is an
- embedded Element command. With the exception of the Wipe
- options, the embedded Element command supports all normal
- options. Wipe options will be ignored.
-
- The Use|Goto branches are embedded player branches and accept
- their normal parameters.
-
- - Highlight(
- [ MousePointer( <filename> ), ]
- [ Text|Clip|AnimClip|MovieClip|Box( <command params here> ), ]
- [ Use|Goto(<branch parameters>) ]*
- ),
- The Text, Clip, AnimClip, MovieClip, or Box option is an
- embedded Element command. With the exception of the Wipe
- options, the embedded Element command supports all normal
- options. Wipe options will be ignored.
-
- The Use|Goto branches are embedded player branches and accept
- their normal parameters.
-
- - Select(
- [ MousePointer( <filename> ), ]
- [ Text|Clip|AnimClip|MovieClip|Box( <command params here> ), ]
- [ Use|Goto(<branch parameters>) ]*
- ),
- The Text, Clip, AnimClip, MovieClip, or Box option is an
- embedded Element command. With the exception of the Wipe
- options, the embedded Element command supports all normal
- options. Wipe options will be ignored.
-
- The Use|Goto branches are embedded player branches and accept
- their normal parameters.
-
- - SelectDown(
- [ Use|Goto(<branch parameters>) ]*
- ),
- The Use|Goto branches are embedded player branches and accept
- their normal parameters.
-
- ClipStyle():
-
- This command creates a style object that can be used to specify a
- common set of options used by one or more Clip commands.
-
- Synopsis:
-
- ClipStyle( stylename
- [, Align(horizontal, vertical) ]
- [, Antialias(state) ]
- [, Backdrop(state, <fill options>) ]
- [, Bevel(state, Thickness(pixels), Base(color),
- Left(<fill options>), Right(<fill options>),
- Top(<fill options>), Bottom(<fill options>)) ]
- [, Border(left, right, top, bottom) ]
- [, Face(state, <fill options>) ]
- [, Focus(state, <fill options>) ]
- [, Operation(state, <operation options>) ]
- [, Outline(state, Thickness(pixels), <fill options>) ]
- [, Replace(state) ]
- [, Shadow(state, Offset(horizontal, vertical), <fill options>) ]
- [, Shift(x, y) ]
- [, Style(stylename) ]
- [, Transparent(state) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- ClipStyle(Ricky, Operation(On, Crop(10, 10, 80, 80)));
- ClipStyle(Lucy, Style(Ricky), Operation(On, Resize(100, 100)));
-
- Required Parameters Used by This Class:
-
- - stylename
- The name of the style being defined.
-
- Optional Parameters Supported by This Class:
-
- - Align(horizontal, vertical)
- This determines whether the element is positioned based on
- its X,Y values, or by the Background's size and margins.
- These tables describe the alignment values and their
- meanings:
-
- Horizontal Description
- ---------- -----------
- None The left edge of the element's face is
- positioned relative to the left edge of the
- background. The element's X value and the
- cumulative effect of all applicable Offset
- commands are used for positioning the element.
-
- Left The left edge of the element's face is
- positioned at the Background's left margin.
- The element's X value and all applicable
- Offset commands are ignored.
-
- Center The vertical centerline of the element's face
- is positioned midway between the Background's
- left and right margins. The element's X value
- and all applicable Offset commands are
- ignored.
-
- Right The right edge of the element's face is
- positioned at the Background's right margin.
- The element's X value and all applicable
- Offset commands are ignored.
-
- Vertical Description
- -------- -----------
- None The top edge of the element's face is
- positioned relative to the left edge of the
- background. The element's Y value and the
- cumulative effect of all applicable Offset
- commands are used for positioning the element.
-
- Top The top edge of the element's face is
- positioned at the Background's top margin. The
- element's Y value and all applicable Offset
- commands are ignored.
-
- Middle The horizontal centerline of the element's
- face is positioned midway between the
- Background's top and bottom margins. The
- element's Y value and all applicable Offset
- commands are ignored.
-
- Bottom The bottom edge of the element's face is
- positioned at the Background's bottom margin.
- The element's Y value and all applicable
- Offset commands are ignored.
-
- If this option is not specified, the element's alignment
- defaults to (None, None).
-
- - Antialias(state)
- This determines if the element is antialiased. The state
- defaults to off.
-
- - Backdrop(state, <fill options>)
- The appearance of the bounding box of the element behind
- the face and other style options applied to the element.
- The state defaults to off. <fill options> defaults to
- RGB($7f7f7f).
-
- - Bevel(state, Thickness(pixels), Base(color),
- Left(<fill options>), Right(<fill options>),
- Top(<fill options>), Bottom(<fill options>))
- A beveled edge added outside the element's bounding box.
- The state defaults to off. Thickness may be 1 or greater,
- and defaults to 2. Base is a hint to the authoring station
- to assist with choosing bevel colors, and is not used by
- the system otherwise. The Base color is specified as a
- 4-byte hexadecimal number, where each byte encodes zero,
- red, green, and blue, from MSB to LSB. The bevel colors
- default to shades of grey.
-
- - Border(left, right, top, bottom)
- Extra space added to the edges of the element, measured in
- pixels. This effectively extends the element's bounding
- box without affecting the position of the element's face
- or the size of its face image. The border values may be 0
- or greater, and all default to 0.
-
- - Face(state, <fill options>)
- The appearance of the face of the element. The state
- defaults to on. For images, <fill options> defaults to
- nothing. For other elements, <fill options> defaults to
- RGB($ffffff).
-
- - Focus(state, <fill options>)
- How to highlight the face of the last-wiped-in element.
- When a new element gets wiped in, the face of this element
- reverts to its normal face appearance. If a group of
- elements are wiped in together, each element with this
- option specified will be highlighted. The state defaults
- to off. <fill options> defaults to RGB($ffff7f).
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Outline(state, Thickness(pixels), <fill options>)
- A colored outline added to the element. The state defaults
- to off. Thickness may be 1 or greater, and defaults to 1.
- <fill options> defaults to RGB(0).
-
- - Replace(state)
- This determines whether an element command will create a
- new element or replace an existing element previously
- created by the same command. If the state is On, the
- element command will replace the previous element created
- by the same command. If the state is Off, a new element
- will be created, and any previous elements created by the
- same command will remain on the screen. This defaults to
- Replace(On).
-
- - Shadow(state, Offset(horizontal, vertical), <fill options>)
- A drop shadow drawn behind the element, drawn in a solid
- color. The state defaults to off. Either or both of the
- offsets can be positive or negative, and are measured in
- pixels. <fill options> defaults to RGB(0).
-
- - Shift(x, y)
- The amount the element's face, outline, and shadow are
- shifted from the specified element position. This is
- intended to be used for different button states to move
- the face without moving the backdrop or bevel. The offset
- values may be any numbers, and default to (0, 0).
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Transparent(state)
- Whether or not pen zero is transparent. The state defaults
- to off. If this is on, any portion of the foreground
- element drawn in pen zero will not be visible, but will
- show through to the image beneath this foreground element.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- Clip():
-
- This command creates a foreground object that is a rectangle
- drawn with a still image.
-
- Synopsis:
-
- Clip( X, Y , filename
- [, Align(horizontal, vertical) ]
- [, Antialias(state) ]
- [, Backdrop(state, <fill options>) ]
- [, Bevel(state, Thickness(pixels), Base(color),
- Left(<fill options>), Right(<fill options>),
- Top(<fill options>), Bottom(<fill options>)) ]
- [, Border(left, right, top, bottom) ]
- [, Face(state, <fill options>) ]
- [, Focus(state, <fill options>) ]
- [, Operation(state, <operation options>) ]
- [, Outline(state, Thickness(pixels), <fill options>) ]
- [, Replace(state) ]
- [, Shadow(state, Offset(horizontal, vertical), <fill options>) ]
- [, Shift(x, y) ]
- [, Style(stylename) ]
- [, Transparent(state) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- Clip(x, y, "pic3.bmp");
- Clip(x, y, "pic3.bmp", Style(Lucy), Bevel(on));
-
- Required Parameters Used by This Class:
-
- - X
- The horizontal position of the element's face. This
- position may be modified by the effects of Offset commands
- in containing clusters, and by Foreground's Align option.
- See those options' descriptions for more details.
-
- - Y
- The vertical position of the element's face. This position
- may be modified by the effects of Offset commands in
- containing clusters, and by Foreground's Align option. See
- those options' descriptions for more details.
-
- - filename
- The name of the file containing the image data.
-
- Optional Parameters Supported by This Class:
-
- - Align(horizontal, vertical)
- This determines whether the element is positioned based on
- its X,Y values, or by the Background's size and margins.
- These tables describe the alignment values and their
- meanings:
-
- Horizontal Description
- ---------- -----------
- None The left edge of the element's face is
- positioned relative to the left edge of the
- background. The element's X value and the
- cumulative effect of all applicable Offset
- commands are used for positioning the element.
-
- Left The left edge of the element's face is
- positioned at the Background's left margin.
- The element's X value and all applicable
- Offset commands are ignored.
-
- Center The vertical centerline of the element's face
- is positioned midway between the Background's
- left and right margins. The element's X value
- and all applicable Offset commands are
- ignored.
-
- Right The right edge of the element's face is
- positioned at the Background's right margin.
- The element's X value and all applicable
- Offset commands are ignored.
-
- Vertical Description
- -------- -----------
- None The top edge of the element's face is
- positioned relative to the left edge of the
- background. The element's Y value and the
- cumulative effect of all applicable Offset
- commands are used for positioning the element.
-
- Top The top edge of the element's face is
- positioned at the Background's top margin. The
- element's Y value and all applicable Offset
- commands are ignored.
-
- Middle The horizontal centerline of the element's
- face is positioned midway between the
- Background's top and bottom margins. The
- element's Y value and all applicable Offset
- commands are ignored.
-
- Bottom The bottom edge of the element's face is
- positioned at the Background's bottom margin.
- The element's Y value and all applicable
- Offset commands are ignored.
-
- If this option is not specified, the element's alignment
- defaults to (None, None).
-
- - Antialias(state)
- This determines if the element is antialiased. The state
- defaults to off.
-
- - Backdrop(state, <fill options>)
- The appearance of the bounding box of the element behind
- the face and other style options applied to the element.
- The state defaults to off. <fill options> defaults to
- RGB($7f7f7f).
-
- - Bevel(state, Thickness(pixels), Base(color),
- Left(<fill options>), Right(<fill options>),
- Top(<fill options>), Bottom(<fill options>))
- A beveled edge added outside the element's bounding box.
- The state defaults to off. Thickness may be 1 or greater,
- and defaults to 2. Base is a hint to the authoring station
- to assist with choosing bevel colors, and is not used by
- the system otherwise. The Base color is specified as a
- 4-byte hexadecimal number, where each byte encodes zero,
- red, green, and blue, from MSB to LSB. The bevel colors
- default to shades of grey.
-
- - Border(left, right, top, bottom)
- Extra space added to the edges of the element, measured in
- pixels. This effectively extends the element's bounding
- box without affecting the position of the element's face
- or the size of its face image. The border values may be 0
- or greater, and all default to 0.
-
- - Face(state, <fill options>)
- The appearance of the face of the element. The state
- defaults to on. For images, <fill options> defaults to
- nothing. For other elements, <fill options> defaults to
- RGB($ffffff).
-
- - Focus(state, <fill options>)
- How to highlight the face of the last-wiped-in element.
- When a new element gets wiped in, the face of this element
- reverts to its normal face appearance. If a group of
- elements are wiped in together, each element with this
- option specified will be highlighted. The state defaults
- to off. <fill options> defaults to RGB($ffff7f).
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Outline(state, Thickness(pixels), <fill options>)
- A colored outline added to the element. The state defaults
- to off. Thickness may be 1 or greater, and defaults to 1.
- <fill options> defaults to RGB(0).
-
- - Replace(state)
- This determines whether an element command will create a
- new element or replace an existing element previously
- created by the same command. If the state is On, the
- element command will replace the previous element created
- by the same command. If the state is Off, a new element
- will be created, and any previous elements created by the
- same command will remain on the screen. This defaults to
- Replace(On).
-
- - Shadow(state, Offset(horizontal, vertical), <fill options>)
- A drop shadow drawn behind the element, drawn in a solid
- color. The state defaults to off. Either or both of the
- offsets can be positive or negative, and are measured in
- pixels. <fill options> defaults to RGB(0).
-
- - Shift(x, y)
- The amount the element's face, outline, and shadow are
- shifted from the specified element position. This is
- intended to be used for different button states to move
- the face without moving the backdrop or bevel. The offset
- values may be any numbers, and default to (0, 0).
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Transparent(state)
- Whether or not pen zero is transparent. The state defaults
- to off. If this is on, any portion of the foreground
- element drawn in pen zero will not be visible, but will
- show through to the image beneath this foreground element.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- MovieClipStyle():
-
- MovieClipStyle() creates a style object that can be used to specify a
- common set of options used by one or more MovieClip commands.
-
- Synopsis:
-
- MovieClipStyle(stylename,
- [, Loops(loops) ]
- [, Margin(left, right, top, bottom) ]
- [, Operation(state, <operation options>) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, Transparent(state) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Volume(volume) ]
- [, Wait(state) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- MovieClipStyle(Barnum, Speed(40));
- MovieClipStyle(Bailey, Style(Barnum), Speed(60), Wipe("FlyLeft"));
-
- Required Parameters Used by This Class:
-
- - stylename
- The name of the style being defined.
-
- Optional Parameters Supported by This Class:
-
- - Loops(loops)
- How may times to play the animation in a loop.
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - Transparent(state)
- This specifies if there should be any transparent areas
- in the front image. This option is used with the
- Operation(TransparentRGB()) option to turn on
- transparency.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Volume(volume)
- This specifies the volume for the movie / movieclip.
- Range is 0 to 255. Defaults to 255 meaning full
- volume. 0 is silence.
-
- - Wait(state)
- Whether the player shall wait until the animation is
- finished before continuing with the sequence list.
- Defaults to FALSE. If FALSE we will not wait until the
- current animclip is finished before continuing the script.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- MovieClip()
-
- MovieClip() creates an movie background.
-
- All <operation options> are available for MovieClip(), but, in most cases,
- performance will not be good enough for them to be used.
-
- Synopsis:
-
- MovieClip(filename,
- [, Loops(loops) ]
- [, Margin(left, right, top, bottom) ]
- [, Operation(state, <operation options>) ]
- [, Palette( Clear(state), <palette options> ) ]
- [, Style(stylename) ]
- [, Tabs(Implicit(width), Explicit(tab, ...)) ]
- [, Transparent(state) ]
- [, UserPalette( Clear(state), <palette options> ) ]
- [, View(Mode(name), Size(width, height), ColorModel(colors)) ]
- [, Volume(volume) ]
- [, Wait(state) ]
- [, Wipe(wipename, <wipe options>) ]
- );
-
- Examples:
-
- MovieClip("show.avi");
- MovieClip("show2.avi", Style(Barnum), Loops(5));
-
- MovieClip() required parameters:
-
- - filename
- The name of the file containing the image data.
-
- Optional Parameters Supported by This Class:
-
- - Loops(loops)
- How may times to play the animation in a loop.
-
- - Margin(left, right, top, bottom)
- This sets margins in the Background element to be used for
- positioning foreground elements on that background. The
- margin values may be 0 or greater, and all default to 0.
-
- - Operation(state, <operation options>)
- Specifies the operations done before drawing this image.
- The state defaults to off.
-
- - Palette( Clear(state), <palette options> )
- The palette used for this background. This defines
- specific colors to be mapped to specific pens at playback
- time.
-
- Clear(state) determines whether pens from the style
- (if any) are cleared before applying pens specified in
- this Palette option.
-
- - Style(stylename)
- The name of a style style being defined is derived from.
-
- - Tabs(Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to the background. If
- both Implicit and Explicit tabs are specified, explicit
- tabs are used first, and implicit tabs are used once the
- explicit tabs are used up.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - Transparent(state)
- This specifies if there should be any transparent areas
- in the front image. This option is used with the
- Operation(TransparentRGB()) option to turn on
- transparency.
-
- - UserPalette( Clear(state), <palette options> )
- The user palette for this background. This defines
- specific colors to be mapped to user pen numbers during
- playback. These user pen numbers are used by other
- commands via the 'Pen' fill option to select colors for
- elements to be drawn in. During playback, these user pens
- may end up mapped to any playback pens, and the screen
- book will take care of converting one to the other. The
- net result is that elements may refer to a user pen
- number, and get the desired color, no matter which
- playback pen the user pen number is actually mapped to.
-
- Clear(state) determines whether user pens from the style
- (if any) are cleared before applying user pens specified
- in this UserPalette option.
-
- - View(Mode(name), Size(width, height), ColorModel(colors))
- This describes the View used for this background. Any
- combination of suboptions may be specified to uniquely
- describe the View to be used.
-
- Mode(name) identifies the mode by a name (in string form).
-
- Size(w,h) identifies the View by the maximum display size
- it supports. this is the size of the ViewPort that is created.
-
- ColorModel(colors) identifies the View by
- the maximum number of colors it supports. This can be
- PaletteMapped, HiColor, or TrueColor, and defaults to
- PaletteMapped.
-
- - Volume(volume)
- This specifies the volume for the movie / movieclip.
- Range is 0 to 255. Defaults to 255 meaning full
- volume. 0 is silence.
-
- - Wait(state)
- Whether the player shall wait until the animation is
- finished before continuing with the sequence list.
- Defaults to FALSE. If FALSE we will not wait until the
- current animclip is finished before continuing the script.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- Text():
-
- This command creates a foreground object that is one or more words
- of text drawn with a specified font and effects.
-
- Synopsis:
-
- Text( X, Y , string
- [, Append( string,
- Font(typeface, size),
- Bold(state, Delta(value)),
- Italic(state, Delta(value)),
- Spacing(pixels),
- Kerning(state),
- Face(state, <fill options>),
- Focus(state, <fill options>),
- Outline(state, Thickness(pixels), <fill options>),
- Shadow(state, Offset(h, v), <fill options>),
- Under(state, Position(top), Thickness(height),
- Air(size), <fill options>) ]
- [, Align(horizontal, vertical) ]
- [, Antialias(state) ]
- [, Backdrop(state, <fill options>) ]
- [, Bevel(state, Thickness(pixels), Base(color),
- Left(<fill options>), Right(<fill options>),
- Top(<fill options>), Bottom(<fill options>)) ]
- [, Bold(state, Delta(value)) ]
- [, Border(left, right, top, bottom) ]
- [, Face(state, <fill options>) ]
- [, Focus(state, <fill options>) ]
- [, Font(typeface, size) ]
- [, Italic(state, Delta(value)) ]
- [, Justify(horizontal, vertical) ]
- [, Kerning(state) ]
- [, Leading(pixels) ]
- [, Outline(state, Thickness(pixels), <fill options>) ]
- [, Replace(state) ]
- [, Shadow(state, Offset(horizontal, vertical), <fill options>) ]
- [, Shift(x, y) ]
- [, Size(width, height) ]
- [, Spacing(pixels) ]
- [, Tabs(Relative(state), Implicit(width), Explicit(tab, ...)) ]
- [, Transparent(state) ]
- [, Under(state, Position(top), Thickness(height), Air(size),
- <fill options>) ]
- [, Update(type) ]
- [, Wipe(wipename, <wipe options>) ]
- [, Wrap(state) ]
- );
-
- Examples:
-
- Text(x, y, "Larry");
- Text(x, y, "Curly", Face(on, Pen(3)));
- Text(x, y, "",
- Transparent(on), Under(on, Pen(1)),
- Append("John,", Face(on, RGB($ff0000))),
- Append(" Paul,", Face(on, RGB($00ff00))),
- Append(" George,", Face(on, RGB($0000ff))),
- Append(" and Ringo!", Face(on, RGB($ffff00))))
-
- Required Parameters Used by This Class:
-
- - X
- The horizontal position of the element's face. This
- position may be modified by the effects of Offset commands
- in containing clusters, and by Foreground's Align option.
- See those options' descriptions for more details.
-
- - Y
- The vertical position of the element's face. This position
- may be modified by the effects of Offset commands in
- containing clusters, and by Foreground's Align option. See
- those options' descriptions for more details.
-
- - string
- The text string to be displayed. If this is an expression,
- and the Live option is turned on, the string displayed by
- the Text element will change each time this expression
- changes.
-
-
- Optional repeatable Parameters Supported by This Class:
-
- - Append(string,
- Font(typeface, size),
- Bold(state, Delta(value)),
- Italic(state, Delta(value)),
- Spacing(pixels),
- Kerning(state),
- Face(state, <fill options>),
- Focus(state, <fill options>),
- Outline(state, Thickness(pixels), <fill options>),
- Shadow(state, Offset(h, v), <fill options>),
- Under(state, Position(top), Thickness(height),
- Air(size), <fill options>)
-
- This may be repeated in a Text command to create Text
- elements with in-line style changes. Each occurrence of
- the Append option creates a text segment. A text segment
- is also created by the string provided to the Text command
- itself. All text segments will be concatenated together in
- the same order as they appear in the Text command.
-
- Optional Parameters Supported by This Class:
-
- - Align(horizontal, vertical)
- This determines whether the element is positioned based on
- its X,Y values, or by the Background's size and margins.
- These tables describe the alignment values and their
- meanings:
-
- Horizontal Description
- ---------- -----------
- None The left edge of the element's face is
- positioned relative to the left edge of the
- background. The element's X value and the
- cumulative effect of all applicable Offset
- commands are used for positioning the element.
-
- Left The left edge of the element's face is
- positioned at the Background's left margin.
- The element's X value and all applicable
- Offset commands are ignored.
-
- Center The vertical centerline of the element's face
- is positioned midway between the Background's
- left and right margins. The element's X value
- and all applicable Offset commands are
- ignored.
-
- Right The right edge of the element's face is
- positioned at the Background's right margin.
- The element's X value and all applicable
- Offset commands are ignored.
-
- Vertical Description
- -------- -----------
- None The top edge of the element's face is
- positioned relative to the left edge of the
- background. The element's Y value and the
- cumulative effect of all applicable Offset
- commands are used for positioning the element.
-
- Top The top edge of the element's face is
- positioned at the Background's top margin. The
- element's Y value and all applicable Offset
- commands are ignored.
-
- Middle The horizontal centerline of the element's
- face is positioned midway between the
- Background's top and bottom margins. The
- element's Y value and all applicable Offset
- commands are ignored.
-
- Bottom The bottom edge of the element's face is
- positioned at the Background's bottom margin.
- The element's Y value and all applicable
- Offset commands are ignored.
-
- If this option is not specified, the element's alignment
- defaults to (None, None).
-
- - Antialias(state)
- This determines if the element is antialiased. The state
- defaults to off.
-
- - Backdrop(state, <fill options>)
- The appearance of the bounding box of the element behind
- the face and other style options applied to the element.
- The state defaults to off. <fill options> defaults to
- RGB($7f7f7f).
-
- - Bevel(state, Thickness(pixels), Base(color),
- Left(<fill options>), Right(<fill options>),
- Top(<fill options>), Bottom(<fill options>))
- A beveled edge added outside the element's bounding box.
- The state defaults to off. Thickness may be 1 or greater,
- and defaults to 2. Base is a hint to the authoring station
- to assist with choosing bevel colors, and is not used by
- the system otherwise. The Base color is specified as a
- 4-byte hexadecimal number, where each byte encodes zero,
- red, green, and blue, from MSB to LSB. The bevel colors
- default to shades of grey.
-
- - Bold(state, Delta(value))
- Indicates whether the text should be bolder than normal.
- The state defaults to off. Text weight is calculated from
- 1 (thin) to 12 (black). The Delta value may range from -11
- to 11, and defaults to 3. This gives the ability to use
- any weight within the supported range with any font. Note
- that the Delta value is relative to the font's nominal
- weight, not an absolute weight value. Note also that some
- fonts won't look different at each available Delta value,
- and that bitmap fonts cannot be made thinner than their
- nominal weight.
-
- - Border(left, right, top, bottom)
- Extra space added to the edges of the element, measured in
- pixels. This effectively extends the element's bounding
- box without affecting the position of the element's face
- or the size of its face image. The border values may be 0
- or greater, and all default to 0.
-
- - Face(state, <fill options>)
- The appearance of the face of the element. The state
- defaults to on. For images, <fill options> defaults to
- nothing. For other elements, <fill options> defaults to
- RGB($ffffff).
-
- - Focus(state, <fill options>)
- Highlight the face of the last-wiped-in element.
- When a new element gets wiped in, the face of this element
- reverts to its normal face appearance. If a group of
- elements are wiped in together, each element with this
- option specified will be highlighted. The state defaults
- to off. <fill options> defaults to RGB($ffff7f).
-
- It affects the face color of focus text only; it cannot
- be used to set the color of shadow or outline, nor can
- it be used to set the face color to transparent (in the
- way Face( Off, ... ) sets the face color to transparent.)
- The underline color will only change if, after evaluation,
- the face, focus, and underline color of every text segment
- are the same AND the face, focus, and underline state of
- every text segment are in the ON state, then the focus pen
- affects the underline color too.
-
- - Font(typeface, size)
- The typeface and size to be used for drawing the text.
-
- - Italic(state, Delta(value))
- Indicates whether the text should be more or less italic
- than normal (most fonts are normally upright). The state
- defaults to off. Text slant is calculated from -99 (full
- left slant) to 99 (full right slant). The Delta value may
- range from -198 to 198, and defaults to 32. This gives the
- ability to use any slant within the supported range with
- any font. Note that the Delta value is relative to the
- font's nominal slant, not an absolute slant value.
-
- - Justify(horizontal, vertical)
- The justification of the text within its bounding box (if
- any). Horizontal can be Left, Center, or Right, and
- defaults to Left. Vertical can be Top, Middle, or Bottom,
- and defaults to Top. This option has no effect if no Size
- option is specified, and there is only one line of text.
-
- - Kerning(state)
- Indicates whether or not the text is kerned. The state
- defaults to off.
-
- - Leading(pixels)
- Indicates the vertical distance between lines of text in a
- Text element. Pixels may be any positive or negative
- number, and defaults to 0. This represents the number of
- pixels of space added below the bottom of each line.
-
- - Outline(state, Thickness(pixels), <fill options>)
- A colored outline added to the element. The state defaults
- to off. Thickness may be 1 or greater, and defaults to 1.
- <fill options> defaults to RGB(0).
-
- - Replace(state)
- This determines whether an element command will create a
- new element or replace an existing element previously
- created by the same command. If the state is On, the
- element command will replace the previous element created
- by the same command. If the state is Off, a new element
- will be created, and any previous elements created by the
- same command will remain on the screen. This defaults to
- Replace(On).
-
- - Shadow(state, Offset(horizontal, vertical), <fill options>)
- A drop shadow drawn behind the element, drawn in a solid
- color. The state defaults to off. Either or both of the
- offsets can be positive or negative, and are measured in
- pixels. <fill options> defaults to RGB(0).
-
- - Shift(x, y)
- The amount the element's face, outline, and shadow are
- shifted from the specified element position. This is
- intended to be used for different button states to move
- the face without moving the backdrop or bevel. The offset
- values may be any numbers, and default to (0, 0).
-
- - Size(width, height)
- The horizontal and vertical dimensions of the bounding box
- for the Text element, measured in pixels. If Wrap is on,
- this will wrap text to fit the bounding box's width. If
- Wrap is off, text is clipped at the width of the bounding
- box. In both cases, text is clipped at the height of the
- bounding box.
-
- - Spacing(pixels)
- Indicates the intercharacter spacing of the text. Pixels
- may be any positive or negative number, and defaults to 0.
- This represents the number of pixels of space added to the
- right side of each character.
-
- - Tabs(Relative(state), Implicit(width), Explicit(tab, ...))
- A description of tab stops, relative to either the element
- or the background. If both Implicit and Explicit tabs are
- specified, explicit tabs are used first, and implicit tabs
- are used once the explicit tabs are used up.
-
- Relative(state) determines whether tabs are relative to
- the element or to the background. If TRUE, tabs are
- relative to the left edge of the element. Otherwise, tabs
- are relative to the left edge of the background. The
- Relative state defaults to FALSE.
-
- Implicit(width) set the distance between implied tab
- stops. This represents the number of pixels from each tab
- stop to the next. The width may be 1 or greater, and
- defaults to 50.
-
- Explicit(tab, ...) sets a list of one or more explicit tab
- stops. Each tab stop represents a number of pixels from
- the tab reference point, and may be 0 or greater. Any
- number of tab stops may be specified, but they must be
- listed in increasing order. There are no default Explicit
- tabs.
-
- - Transparent(state)
- Whether or not pen zero is transparent. The state defaults
- to off. If this is on, any portion of the foreground
- element drawn in pen zero will not be visible, but will
- show through to the image beneath this foreground element.
-
- - Under(state, Position(top), Thickness(height), Air(size),
- <fill options>)
- The underline of the text, if any. The state defaults to
- off. Position is measured in pixels from the top of the
- underline to the baseline of the text, increasing
- downward, and defaults to 1. Thickness is the height of
- the underline measured in pixels, and defaults to 2. Air
- is the distance in pixels between the underline and the
- nearest text pixel, and defaults to 1.
-
- - Update(type)
- Whether or not the text element updates when the string
- parameter is an expression, and that expression changes
- value. The type can be one of None, Normal, or Extended,
- and defaults to Extended. If the string parameter is
- constant, this option has no effect.
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping in the element.
- If no wipe is specified, the "Cut" wipe is used.
-
- - Wrap(state)
- Whether or not the text element wraps at the edge of its
- bounding box. The state defaults to off. If no Size option
- is specified, this option is ignored.
-
- Non-Element Commands
- --------------------
-
- These are descriptions of other commands supported by the Screen book
- and related software. These commands do not create elements, but they
- can affect elements that are displayed.
-
- Offset():
-
- The Offset command, when used in the Group list of a Scala Script
- cluster, offsets the positions of all Foreground elements by the
- specified offset amount. If Offset commands are used in nested
- clusters, the net result of each Offset command is added together
- to determine the effective offset for Foreground elements in the
- most nested cluster. The effect of having an Offset command in a
- group list between several foreground elements is undefined.
-
- This command is useful when grouping related Foreground elements
- so the group can be moved around easily during authoring. The
- Offset command can be used for positioning the group, and
- Foreground elements within the group are positioned relative to
- the group's effective position, taking into account the offsets
- of all nested groups.
-
- Required Parameters:
-
- - X
- The horizontal offset, relative to the left edge of the
- background.
-
- - Y
- The vertical offset, relative to the top edge of the
- background.
-
- WipeOut():
-
- The WipeOut command wipes out an element that has been wiped in.
-
- WipeOut(elementname,
- [ Wipe(wipename, <wipe options>) ]
- );
-
- WipeOut() required parameters:
-
- - elementname
- The script label of the command that created the
- foreground element to be wiped out, or the label of a
- block containing at least one foreground element to be
- wiped out.
-
- Optional parameters:
-
- - Wipe(wipename, <wipe options>)
- A description of the wipe used for wiping out the element.
-
- Option Groups
- -------------
-
- These are descriptions of the option groups that are used in several
- different classes. Rather than repeat the descriptions for each class
- that supports these options, this section describes them once.
-
- <fill options>:
- There are several fill options, only one of which can be used at a
- time. If none of these options are used, the behaviour depends on
- the element.
-
- All fill options have a default Pen if there is a user palette,
- and a default RGB if there is no user palette.
-
- - Pen(pen)
- A pen used for filling the specified area.
-
- - RGB(color)
- A solid color used for filling the specified area. This
- is not used directly, but the closest matching pen from the
- current background's palette is used.
-
- - Tile(filename,
- Justify(horizontal, vertical),
- Offset(direction, amount),
- <operation options>)
- (implemented only for Box, Display, and Foreground's Backdrop)
- Specifies an image to be tiled onto the specified area,
- and options describing how it is to be tiled.
-
- Filename specifies the name of the file containing the
- image data to be used. This image file may be a stretcher
- file or a standard bitmap file.
-
- Justify(horizontal, vertical) specifies how the image is
- justified when tiling.
-
- Offset(direction, amount) specifies the offset for the
- tiled image from one row (or column) to the next.
-
- <operation options> specifies the operations done before
- drawing this image.
-
- - Image(filename, <operation options>)
- (implemented only for Box, Display, and Foreground's Backdrop)
- Specifies an image to be drawn into the specified area.
- The image will be sized to fit the filled area, using an
- appropriate scaling method for the source image.
-
- Filename specifies the name of the file containing the
- image data to be used. This image file may be a stretcher
- file or a standard bitmap file.
-
- <operation options> specifies the operations done before
- drawing this image.
-
- <operation options>:
- There are several operation options, which may be used in
- combination. The options specified are applied in this order:
-
- - Crop(left, top, width, height)
- A sub-part of the image to be displayed. By default, the
- image is not cropped and the entire source image is used.
-
- - Flip(horizontal, vertical)
- (vertical flip not implemented yet)
- Flip the source image in the horizontal and/or vertical
- direction before using it for drawing the element. This
- defaults to Flip(off, off).
-
- - Rotate(angle)
- Rotate the source image clockwise the specified angle
- before using it for drawing the element. The angle is
- specified in degrees clockwise from North, and is limited
- to the range 0 through 359, inclusive.
-
- - Resize(width, height)
- Scale the image, using absolute scaling.
-
- Width indicates the new width in pixels for the image.
- This may be 1 or greater, and defaults to the nominal
- width of the image.
-
- Height indicates the new height in pixels for the image.
- This may be 1 or greater, and defaults to the nominal
- height of the image.
-
- - ImagePalette( <palette options> )
- Remap one or more pens in the source image to the pens
- from the current background's palette that most closely
- match the specified colors.
-
- - Dither(state, Auto(autostate))
- Use Floyd-Steinberg dithering to make the source image
- more closely match its original coloring using the current
- background's palette. This defaults to off.
-
- Auto(autostate) is used to tell the software to ignore the
- Dither state provided, and to determine the dither state
- based on whether the image is a true color image. If
- autostate is on and the image is a true color image, then
- the image will be dithered. If autostate is on and the
- image is not a true color image, the image will not be
- dithered. If autostate is off, then the supplied dither
- state will be used. Autostate defaults to off.
-
- - TransparentRGB(Color,TransparentDelta(Delta))
- This option allows you to choose a transparent color.
- The color should be given as a 32bit RGB number
- (like $7f7f7f). If TransparentDelta is specified,
- all the colors within the specified delta range from the
- main color will be transparent as well. Delta is unsigned.
-
- <palette options>:
- There is one palette option, which may be repeated as many times
- as needed. If a Palette option is specified on a style command and
- an element command that references that style, both will be used
- in this way: first, the palette will be set from the style's
- Palette option, then from the element command's Palette option. If
- a pen is set more than once, the last color set for the pen will
- be used.
-
- - RGBPen(pen, color, ...)
- Set a specific pen to a specific color. Color is specified
- as a 3-byte hexadecimal number, where each byte encodes
- red, green, and blue, from MSB to LSB.
- Color may be repeated. If more than one color is
- specified, each color is assigned to the next consecutive pen,
- starting at the specified pen.
-
- <wipe options>:
- These wipe options may be used in any combination. Some wipes may
- impose certain restrictions on the values of these options, and
- may ignore some other options altogether.
-
- - Speed(value)
- Indicates a subjective speed for the wipe. The value may
- range from 1 (slow) to 10 (fast) for most wipes, and
- defaults to 5. Some wipes may allow speeds outside the
- range 1-10. In all cases, the number chosen will be used
- as a guide for the Screen book to choose a wipe wpeed that
- results in a smooth wipe.
-
- - Direction(dir)
- Indicates the direction of travel for the wipe.
-
- - Flip(horizontal, vertical)
- Indicates whether the wipe is flipped horizontally and/or
- vertically. This defaults to Flip(off, off).
-