home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- TransferAnim.mcc/TransferAnim.mcc
- TransferAnim.mcc/MUIA_TransferAnim_BitMap
- TransferAnim.mcc/MUIA_TransferAnim_BoingBall
- TransferAnim.mcc/MUIA_TransferAnim_Changes
- TransferAnim.mcc/MUIA_TransferAnim_DefObjHeight
- TransferAnim.mcc/MUIA_TransferAnim_DefObjWidth
- TransferAnim.mcc/MUIA_TransferAnim_Delay
- TransferAnim.mcc/MUIA_TransferAnim_Depth
- TransferAnim.mcc/MUIA_TransferAnim_DisabledFrame
- TransferAnim.mcc/MUIA_TransferAnim_DTObj
- TransferAnim.mcc/MUIA_TransferAnim_Error
- TransferAnim.mcc/MUIA_TransferAnim_File
- TransferAnim.mcc/MUIA_TransferAnim_FPS
- TransferAnim.mcc/MUIA_TransferAnim_Frame
- TransferAnim.mcc/MUIA_TransferAnim_Frames
- TransferAnim.mcc/MUIA_TransferAnim_Height
- TransferAnim.mcc/MUIA_TransferAnim_MaxWidth
- TransferAnim.mcc/MUIA_TransferAnim_Millis
- TransferAnim.mcc/MUIA_TransferAnim_NoAnim
- TransferAnim.mcc/MUIA_TransferAnim_NoLoop
- TransferAnim.mcc/MUIA_TransferAnim_ObjHeight
- TransferAnim.mcc/MUIA_TransferAnim_ObjWidth
- TransferAnim.mcc/MUIA_TransferAnim_Precision
- TransferAnim.mcc/MUIA_TransferAnim_StartFrame
- TransferAnim.mcc/MUIA_TransferAnim_SelectedFrame
- TransferAnim.mcc/MUIA_TransferAnim_Width
- TransferAnim.mcc/MUIA_TransferAnim_ViewMode
- TransferAnim.mcc/MUIM_TransferAnim_NoEvent
- TransferAnim.mcc/MUIM_TransferAnim_StarTransferAnim
- TransferAnim.mcc/MUIM_TransferAnim_StopAnim
-
-
- TransferAnim.mcc/TransferAnim.mcc
-
- TransferAnim.mcc is a customclass to display transferanimations (as known from
- web-browsers). It supports IBrowse, Voyager and AWeb tooltypes to specify
- width, height etc for the animation.
- It got support for looping animations, no-loop and delay between loops.
- You can specify frames per second, FPS, or how many milliseconds you want
- to pass between each frame. Recent versions also supports transparent ani-
- mations for easier creation of guis.
- It currently makes use ImagePool.library (included) to load, remap and cache
- the animations. If you use the same animation more than once in your program
- or if more than one program uses the same animations, the animation only needs
- to be loaded and remapped once, which will save some cpu and some memory.
-
- I'm open for suggestions and would love to hear your comments!
-
- To contact the author write to:
-
- Linus McCabe
- Rogsholmsv 6
- 515 32 Viskafors
-
- Sparkle@hehe.com
- sparkle.amiga.tm
-
- TransferAnim.mcc/MUIA_TransferAnim_BitMap
-
- NAME
- MUIA_TransferAnim_BitMap -- [..G], struct BitMap *
-
- FUNCTION
-
- This tag will hold the pointer to the bitmap containing the frames.
-
- TransferAnim.mcc/MUIA_TransferAnim_BoingBall
-
- NAME
- MUIA_TransferAnim_BoingBall -- [I..], BOOL
-
- FUNCTION
-
- By setting this attribute to TRUE during creation, you'll get the
- internal boingball animation (which is also used if no animation or
- default animation is specified or loadable).
-
- TransferAnim.mcc/MUIA_TransferAnim_Changes
-
- NAME
- MUIA_TransferAnim_Changes -- [I..], BOOL
-
- FUNCTION
-
- When this attribute is set to FALSE, the animation will continue
- to go even if the object is selected (when having an inputmode)
- or disabled.
- If it is set to TRUE, the animation will show the frames specified
- by MUIA_TransferAnim_DisabledFrame and MUIA_TransferAnim_SelectedFrame when dis-
- abled or selected.
-
- SEE ALSO
-
- MUIA_TransferAnim_DisabledFrame, MUIA_TransferAnim_SelectedFrame
-
- TransferAnim.mcc/MUIA_TransferAnim_DefObjHeight
-
- NAME
- MUIA_TransferAnim_DefObjHeight -- [I..], long
-
- FUNCTION
-
- Specifies the wished default height of the animationobject when using
- MUIV_TransferAnim_Scale or MUIV_TransferAnim_Repeat.
-
- SEE ALSO
-
- MUIA_TransferAnim_DefObjWidth, MUIA_TransferAnim_ObjHeight, MUIA_TransferAnim_ObjWidth
-
- TransferAnim.mcc/MUIA_TransferAnim_DefObjWidth
-
- NAME
- MUIA_TransferAnim_DefObjWidth -- [I..], long
-
- FUNCTION
-
- Specifies the wished default width of the animationobject when using
- MUIV_TransferAnim_Scale or MUIV_TransferAnim_Repeat.
-
- SEE ALSO
-
- MUIA_TransferAnim_DefObjHeight, MUIA_TransferAnim_ObjHeight, MUIA_TransferAnim_ObjWidth
-
- TransferAnim.mcc/MUIA_TransferAnim_Delay
-
- NAME
- MUIA_TransferAnim_Delay -- [ISG], int
-
- FUNCTION
-
- This attribute specifies the time (in milliseconds) that the anim-
- ation is held before restarting (when it is set to loop).
- Defaults to no delay.
-
- TransferAnim.mcc/MUIA_TransferAnim_Depth
-
- NAME
- MUIA_TransferAnim_Depth -- [..G], long
-
- FUNCTION
-
- Holds the depth of the animation bitmap.
-
- TransferAnim.mcc/MUIA_TransferAnim_DisabledFrame
-
- NAME
- MUIA_TransferAnim_DisabledFrame -- [IS.], long
-
- FUNCTION
-
- This attribute specifies which frame to show when the object is set
- to disabled.
- This has no effect unless MUIA_TransferAnim_Changes is set to TRUE (default).
- If MUIA_TransferAnim_Changes is set to FALSE, the animation will continue to
- display as usual, even if disabled.
-
- TransferAnim.mcc/MUIA_TransferAnim_DTObj
-
- NAME
- MUIA_TransferAnim_DTObj -- [..G], APTR
-
- FUNCTION
-
- This attribute holds a pointer to the datatype object, if availible.
-
- TransferAnim.mcc/MUIA_TransferAnim_Error
-
- NAME
- MUIA_TransferAnim_Error -- [..G], LONG
-
- FUNCTION
-
- This attribute holds a possible error condition, if something went wrong.
- The class will not fail, but might behave differently.
-
- Possible error codes atm are:
-
- ERROR_OBJECT_NOT_FOUND, the file was not found.
- DTERROR_INVALID_DATA , the file was not an image.
-
- In the first case, the object might show the prefered default animation (if it
- works ok) otherwise it will try to show the internal boingball animation.
-
- TransferAnim.mcc/MUIA_TransferAnim_File
-
- NAME
- MUIA_TransferAnim_File -- [ISG], char *
-
- FUNCTION
-
- This tag holds the filename of the animation you wish to display.
- If you set this attribute after creation, no result will be seen
- until the object go throught a new setup, ie, if it's parent group
- is set to Init & ExitChange.
-
- Display information, like number of frames, framewidth, frameheight
- etc, will be taken from the file's icon.
-
- Recognized tooltypes are:
-
- SIZE =x,y - the framesize is x by y pixels. (AWeb)
- FRAMEWIDTH =x - framewidth is x pixels (Voyager)
- WIDTH =x - framewidth is x pixels (IBrowse)
- HEIGHT =y - frameheight in pixels
- FIRST =x,y - coordinates for the first frame (AWeb)
- DELTA =x,y - how many pixels to move in x &
- y direction between frames (AWeb)
-
- Tooltypes that are not recognized by browsers (afaik)
-
- FPS =fps - How many frames per second the
- animation will be dispalyed by.
- SELECTED =f - What frame to show when the animation
- is selected (if it has inputmode)
- DISABLED =f - What frame to show when the animation
- object is disabled.
-
- Selected and disabled will only take place if the MUIA_TransferAnim_Changes
- is set to true.
-
- EXAMPLE
-
- TransferAnimObj=TransferAnimObject,
- MUIA_TransferAnim_File, "data:anims/cat_anim.jpg",
- End;
-
- TransferAnim.mcc/MUIA_TransferAnim_FPS
-
- NAME
- MUIA_TransferAnim_FPS -- [ISG], long
-
- FUNCTION
-
- This attribute specifies how many frames per second of the animation
- will be displayed.
- Defaults to 24.
-
- SEE ALSO
-
- MUIA_TransferAnim_Millis
-
- TransferAnim.mcc/MUIA_TransferAnim_Frame
-
- NAME
- MUIA_TransferAnim_Frame -- [ISG], long
-
- FUNCTION
-
- This attribute holds the currently shown frame.
- You can manually set this attribute to control you animation.
- Probably makes most sence for non playing animations.
-
- TransferAnim.mcc/MUIA_TransferAnim_Frames
-
- NAME
- MUIA_TransferAnim_Frames -- [ISG], long
-
- FUNCTION
-
- This attribute specifies how many frames the animation holds.
-
- TransferAnim.mcc/MUIA_TransferAnim_Height
-
- NAME
- MUIA_TransferAnim_Height -- [I..], long
-
- FUNCTION
-
- Specifies the height of the animation.
-
- TransferAnim.mcc/MUIA_TransferAnim_MaxWidth
-
- NAME
- MUIA_TransferAnim_MaxWidth -- [..G], long
-
- FUNCTION
-
- Holds the width of the entire bitmap.
-
- TransferAnim.mcc/MUIA_TransferAnim_Millis
-
- NAME
- MUIA_TransferAnim_Millis -- [ISG], long
-
- FUNCTION
-
- Specifies the delay in microseconds between each frame.
-
- SEE ALSO
-
- MUIA_TransferAnim_FPS
-
- TransferAnim.mcc/MUIA_TransferAnim_NoAnim
-
- NAME
- MUIA_TransferAnim_NoAnim -- [ISG], bool
-
- FUNCTION
-
- If this attribute is set to TRUE, the animation wont play.
-
- TransferAnim.mcc/MUIA_TransferAnim_NoLoop
-
- NAME
- MUIA_TransferAnim_NoLoop -- [ISG], BOOL
-
- FUNCTION
-
- If this attribute is set, the animation wont loop.
- By setting this attribute, the animation will stop playing
- after the current sequence is done. If you want immediate
- stop, use MUIM_TransferAnim_StopAnim.
-
- SEE ALSO
-
- MUIA_TransferAnim_StopAnim
-
- TransferAnim.mcc/MUIA_TransferAnim_ObjHeight
-
- NAME
- MUIA_TransferAnim_ObjHeight -- [I..], long
-
- FUNCTION
-
- Specifies the height of the animationobject when using
- MUIV_TransferAnim_Scale or MUIV_TransferAnim_Repeat.
- Both min, max and default values will be set to this value;
- If you wish to set only default height, use MUIA_TransferAnim_DefObjHeight.
-
- SEE ALSO
-
- MUIA_TransferAnim_DefObjHeight, MUIA_TransferAnim_ObjWidth, MUIA_TransferAnim_DefObjWidth
-
- TransferAnim.mcc/MUIA_TransferAnim_ObjWidth
-
- NAME
- MUIA_TransferAnim_ObjWidth -- [I..], long
-
- FUNCTION
-
- Specifies the width of the animationobject when using
- MUIV_TransferAnim_Scale or MUIV_TransferAnim_Repeat.
- Both min, max and default values will be set to this value;
- If you wish to set only default width, use MUIA_TransferAnim_DefObjWidth.
-
- SEE ALSO
-
- MUIA_TransferAnim_DefObjWidth, MUIA_TransferAnim_ObjHeight, MUIA_TransferAnim_DefObjHeight
-
- TransferAnim.mcc/MUIA_TransferAnim_Precision
-
- NAME
- MUIA_TransferAnim_Precision -- [I..], long
-
- FUNCTION
-
- Set this attribute to your preffered imageremapping precision.
- This will override users preffered setting, so you wont normally
- use this.
-
- TransferAnim.mcc/MUIA_TransferAnim_StartFrame
-
- NAME
- MUIA_TransferAnim_StartFrame -- [ISG], long
-
- FUNCTION
-
- This tag holds the first frame in the animation.
- Some animations have their first frame set to a still image (IB??)
- and then you want to skip this frame when looping, which is achieved
- by this attribute.
-
- TransferAnim.mcc/MUIA_TransferAnim_SelectedFrame
-
- NAME
- MUIA_TransferAnim_SelectedFrame -- [IS.], long
-
- FUNCTION
-
- If your animation object has an inputmode, this frame is shown when
- the object is selected. (If MUIA_TransferAnim_Changes is set to true)
-
- SEE ALSO
-
- MUIA_TransferAnim_Changes
-
- TransferAnim.mcc/MUIA_TransferAnim_Width
-
- NAME
- MUIA_TransferAnim_Width -- [I.G], long
-
- FUNCTION
-
- Specifies the width of each frame in the animation.
-
- SEE ALSO
-
- MUIA_TransferAnim_Height, MUIA_TransferAnim_MaxWidth
-
- TransferAnim.mcc/MUIA_TransferAnim_ViewMode
-
- NAME
- MUIA_TransferAnim_ViewMode -- [ISG], long
-
- FUNCTION
-
- This attribute can currently be set to three different values,
-
- MUIV_TransferAnim_Normal (default)
- MUIV_TransferAnim_Scale
- MUIV_TransferAnim_Repeat
-
- Normal mode, the animatino is displayd normally with it's original width
- and height.
-
- Scale mode, the animation is scaled to fit the objects size. In this mode
- the objects minimum size will be 5×5 pixel, preffered size the animations
- original size and maximum size is 30k×30x (aprox) pixels.
-
- Repeat mode, the animation repeats in a pattern to fill the objects entire
- space. Minimum size is the animations original size, preffered size is four
- times original size and maximum is 30k×30k pixels.
-
- Changing this attribute is best done when it's parent window is closed or
- it's parent group is within a MUIM_Group_InitChange and MUIM_Group_ExitChange.
-
- NOTES
-
- It might take a lot of cpu time to use the scale and repeat function in anim-
- ation mode.
-
- TransferAnim.mcc/MUIM_TransferAnim_NoEvent
-
- NAME
- MUIM_TransferAnim_NoEvent
-
- SYNOPSIS
- DoMethod(obj, MUIM_TransferAnim_NoEvent);
-
- FUNCTION
-
- ** Private **
-
- This is a private function and not meant for external use. However, if you
- feel experimental, you can try it out, but I doubt you'll find any use for
- it.
-
- TransferAnim.mcc/MUIM_TransferAnim_StarTransferAnim
-
- NAME
- MUIM_TransferAnim_StarTransferAnim
-
- SYNOPSIS
- DoMethod(obj, MUIM_TransferAnim_StarTransferAnim);
-
- FUNCTION
-
- Starts playing the animation if paused. If the animation is already running,
- nothing will happen.
-
- SEE ALSO
-
- MUIM_TransferAnim_StopAnim
-
- TransferAnim.mcc/MUIM_TransferAnim_StopAnim
-
- NAME
- MUIM_TransferAnim_StopAnim
-
- SYNOPSIS
- DoMethod(obj, MUIM_TransferAnim_StopAnim);
-
- FUNCTION
-
- Stops the animation from playing.
-
- SEE ALSO
-
- MUIM_TransferAnim_StarTransferAnim
-