Scaleform Studio Lua API Reference: scaleform.AnimationComponent object reference
Controls a timeline animation
This element inherits from:
Parameters Returns integer |
Returns the current frame number which is from 0 to num_frames - 1.
|
Parameters Returns table? |
Returns a table where the keys are the table names and the values are the frame numbers.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Parameters self : | scaleform.AnimationComponent |
The animation component that the current frame will be set for.
|
frame : | integer |
The frame number which goes from 1 to num_frames.
|
Returns | This function does not return any values. |
If the animation is playing it will continue playing.
Parameters self : | scaleform.AnimationComponent |
The animation component that the current frame will be set for.
|
label : | string |
The label text assigned to a specific frame.
|
Returns | This function does not return any values. |
Parameters Returns boolean |
Returns true if the animation is player or false otherwise.
|
Parameters Returns integer |
Returns the number of available frames the animation has.
|
Parameters Returns integer |
Returns the number of frames the animation has.
|
Parameters Returns | This function does not return any values. |
Parameters Returns | This function does not return any values. |
It continues to play from the frame it previously
was stopped (or, from the beginning).
Parameters self : | scaleform.AnimationComponent |
The animation component that the current frame will be set for.
|
frame : | integer |
The frame number which goes from 1 to num_frames.
|
Returns | This function does not return any values. |
Parameters self : | scaleform.AnimationComponent |
The animation component that the current frame will be set for.
|
label : | string |
The label text assigned to a specific frame.
|
Returns | This function does not return any values. |
Parameters Returns | This function does not return any values. |
Parameters self : | scaleform.AnimationComponent |
The animation component that the current frame will be set for.
|
frame : | integer |
The frame number which goes from 1 to num_frames.
|
Returns | This function does not return any values. |
If the animation is playing it will continue playing.
This function is deprecated. Use goto_frame instead.
Parameters self : | scaleform.AnimationComponent |
The animation component that the current frame will be set for.
|
label : | string |
The label text assigned to a specific frame.
|
Returns | This function does not return any values. |
This function is deprecated. Use goto_label instead.
Parameters Returns | This function does not return any values. |
Parameters self : | scaleform.AnimationComponent |
The animation component that the current frame will be set for.
|
frame : | integer |
The frame number which goes from 1 to num_frames.
|
Returns | This function does not return any values. |
Parameters self : | scaleform.AnimationComponent |
The animation component that the current frame will be set for.
|
label : | string |
The label text assigned to a specific frame.
|
Returns | This function does not return any values. |
scaleform.Component
The root type of all actor components.
scaleform.VisualComponent
An interface to the visual component.
scaleform.ContainerComponent
An interface to container component.
scaleform.AnimationComponent.current_frame (self) : integer
Gets the current frame of the animation.
self : scaleform.AnimationComponent
The animation component that the current frame will be gotten from.
integer
scaleform.AnimationComponent
Controls a timeline animation
A strictly integral numeric value, with no decimal component.
scaleform.AnimationComponent.frame_labels (self) : table?
Gets the labels and their frame numbers for the current timeline.
self : scaleform.AnimationComponent
The animation component that the number of available frames will be gotten from.
table?The ? notation indicates that this type is optional: there may be zero or one instances of it.
A Lua table consisting of paired keys and values.
scaleform.AnimationComponent.goto_frame (self, frame)
Set the current frame of the animation.
self : scaleform.AnimationComponent
The animation component that the current frame will be set for.
frame : integer
The frame number which goes from 1 to num_frames.
scaleform.AnimationComponent.goto_label (self, label)
Set the current frame of the animation to the frame with the given label.
self : scaleform.AnimationComponent
The animation component that the current frame will be set for.
label : string
The label text assigned to a specific frame.A string of characters.
scaleform.AnimationComponent.is_playing (self) : boolean
Get whether the animation component is playing or not.
self : scaleform.AnimationComponent
The animation component that the playback state will be returned from.
booleantrue or false.
scaleform.AnimationComponent.num_available_frames (self) : integer
Gets the number of frames of the animation which are loaded and thus are readily
available.
self : scaleform.AnimationComponent
The animation component that the number of available frames will be gotten from.
integer
scaleform.AnimationComponent.num_frames (self) : integer
Gets the number of frames of the animation.
self : scaleform.AnimationComponent
The animation component that the number of frames will be gotten from.
integer
scaleform.AnimationComponent.pause (self)
Pauses animation for this object.
self : scaleform.AnimationComponent
The animation component that will pause
scaleform.AnimationComponent.play (self)
Starts playing timeline, if it exists.
self : scaleform.AnimationComponent
The animation component that will start playing.
scaleform.AnimationComponent.play_frame (self, frame)
Set the current frame and plays the animation.
self : scaleform.AnimationComponent
The animation component that the current frame will be set for.
frame : integer
The frame number which goes from 1 to num_frames.
scaleform.AnimationComponent.play_label (self, label)
Set the current frame at the given label and plays the animation.
self : scaleform.AnimationComponent
The animation component that the current frame will be set for.
label : string
The label text assigned to a specific frame.
scaleform.AnimationComponent.resume (self)
Resumes playback after pausing.
self : scaleform.AnimationComponent
The animation component that will resume playback.
scaleform.AnimationComponent.set_current_frame (self, frame)
Set the current frame of the animation.
self : scaleform.AnimationComponent
The animation component that the current frame will be set for.
frame : integer
The frame number which goes from 1 to num_frames.
scaleform.AnimationComponent.set_current_label (self, label)
Set the current frame of the animation to the frame with the given label.
self : scaleform.AnimationComponent
The animation component that the current frame will be set for.
label : string
The label text assigned to a specific frame.
scaleform.AnimationComponent.stop (self)
Stops playback after pausing.
self : scaleform.AnimationComponent
The animation component that will resume playback.
scaleform.AnimationComponent.stop_frame (self, frame)
Set the current frame and stops the animation.
self : scaleform.AnimationComponent
The animation component that the current frame will be set for.
frame : integer
The frame number which goes from 1 to num_frames.
scaleform.AnimationComponent.stop_label (self, label)
Set the current frame at the given label and stops the animation.
self : scaleform.AnimationComponent
The animation component that the current frame will be set for.
label : string
The label text assigned to a specific frame.Indicates a table.
This documentation uses the term table to mean an anonymous, temporary Lua table that contains named data values. You typically use these tables to pass data or settings to a function, or to hold data returned by a function.Indicates an object.
This documentation uses the term object to mean a named Lua table or userdata value that maintains a state. Some object types may have multiple instances existing at the same time, each with its own state; these objects typically have creation functions or accessors that you must call in order to get an instance. Some object types have only one instance, which you always access through the object's name.Indicates a named variable within a namespace, object or table; or an element within an enumeration.Indicates a code sample.Indicates an enumeration.
This documentation uses the term enumeration to mean a named Lua table that contains only a set of constant values. These values typically identify a predefined set of options for some setting or behavior. You might pass an enumeration value to a function, or test the value returned by a function against the items in the enumeration to see which option is currently set.Indicates a named variable within a namespace or object that has a pre-set constant value.Indicates a category: a semantic grouping of related API elements.Indicates a namespace.
This documentation uses the term namespace to mean a named Lua table that exists in only one single instance, intended as a container for an interface of related objects, functions and data variables.Indicates an output value returned by a function.Indicates a named function within a namespace or object.Indicates an input parameter for a function.