Scaleform Studio Lua API Reference: scaleform namespace reference

scaleform namespace reference

Description

The core classes used in the Scaleform Studio.

Namespaces

Namespace which contains functions for getting information about Scaleform Studio.
The EventListener type.
The Scaleform Studio physics interface.

Objects

Dispatches events based on activity detected by the device's motion sensor.
Generic objects located in a scene.
Controls a timeline animation
Represents a bevel filter.
An interface to bitmap component.
A general implementation for a blur family of filters, which include Glow and Shadow functionality.
An interface to camera component.
Represents a color matrix filter.
The root type of all actor components.
An interface to container component.
A color transform class that modifies all pixels being rendered.
Represents an easing functor.
The base object for managing event listeners and dispatching events to the listeners.
Represents a set of filters.
A Sound object for audio.
Dispatches events in response to the device's location sensor.
Represents a glow filter.
Internal C++ Event Listener binding object.
The native system object handle type.
Used for formatting of paragraphs.
Describes a Actor's physical properties.
Drives the Physics simulation of all child objects that have physical properties
An interface to script component.
Represents a shadow filter.
An interface to shape component.
A Sound object for playing audio through Wwise Wwise is only available if Scaleform Studio is compiled with it enabled (by default it is enabled).
An interface to sound component for Wwise audio.
Represents a sprite object.
Represents a stage.
Represent the text field.
Used for formatting of text.
Represents a timer.
An interface to timer objects.
A Lua interface to Tweener.
An interface to the visual component.

Enumerations

The alignment types for paragraph formatting.
The possible analog or touchpad controls which generate 2 axis input.
The blend modes that can be applied to the actor.
The possible game pad buttons that generate press events.
The type of easing performed.
EdgeAAMode specified edge anti-aliasing state per object.
The list of events.
The possible keyboard keys.
An internal enumeration assigned to the constant PropertyType on tables which are supported for properties on Actors and Components.
The relative reference points that can be specified on the actor.
The different anti-aliasing modes can be set for a text component.
The different filters that can be applied to text.
The types of timers.
An internal enumeration that controls behavior of tweeners.
The vertical alignment modes that can be set for a text component.
The view alignment mode of the stage.
The view scale mode of the stage.

Functions

Parameters
This function does not accept any parameters.
Returns

userdata

The module.

Parameters
This function does not accept any parameters.
Returns

integer

The current time in milliseconds

This value will wrap every ~49 days.

Parameters

init :

scaleform.Path?

An table arguments to initialize the returned scaleform.Path table with. // Only defined members of scaleform.Path are copied from the input type.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

scaleform.Path

Returns a fully constructed Path table.

Parameters

init :

scaleform.Point?

A partial table of values used to initialize the Point.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

scaleform.Point

Returns a fully constructed Point table.

Parameters

init :

scaleform.Point3?

An table arguments to initialize the returned scaleform.Point3 table with. // Only defined members of scaleform.Point3 are copied from the input type.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

scaleform.Point3

Returns a fully constructed Point3 table.

Parameters

init :

scaleform.Point3?

A partial table of values used to initialize the Point3.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

scaleform.Point3

Returns a fully constructed Point3 table.

Parameters

args :

any*

The text/values to be displayed.

The * notation indicates that there may be zero or more instances of the specified type.
Returns
This function does not return any values.
Parameters

init :

scaleform.Rect?

An table arguments to initialize the returned scaleform.Rect table with. // Only defined members of scaleform.Rect are copied from the input type.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

scaleform.Rect

Returns a fully constructed rectangle table.

Parameters

init :

scaleform.Rect?

A partial table of values used to initialize the Rect.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

scaleform.Rect

Returns a fully constructed Rect table.

Parameters

init :

scaleform.Size?

An table arguments to initialize the returned scaleform.Size table with. // Only defined members of scaleform.Size are copied from the input type.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

scaleform.Size

Returns a fully constructed size table.

Parameters

init :

scaleform.Size?

A partial table of values used to initialize the Size.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

scaleform.Size

Returns a fully constructed Size table.

Parameters

init :

scaleform.Viewport?

An table arguments to initialize the returned scaleform.Viewport table with. // Only defined members of scaleform.Viewport are copied from the input type.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

scaleform.Viewport

Returns a fully constructed Viewport table.

 scaleform.build
Namespace which contains functions for getting information about Scaleform Studio.
 scaleform.EventListener
The EventListener type.
 scaleform.physics
The Scaleform Studio physics interface.
 scaleform.Accelerometer
Dispatches events based on activity detected by the device's motion sensor.
 scaleform.Actor
Generic objects located in a scene.
 scaleform.AnimationComponent
Controls a timeline animation
 scaleform.BevelFilter
Represents a bevel filter.
 scaleform.BitmapComponent
An interface to bitmap component.
 scaleform.BlurFilter
A general implementation for a blur family of filters, which include Glow and Shadow functionality.
 scaleform.CameraComponent
An interface to camera component.
 scaleform.ColorMatrixFilter
Represents a color matrix filter.
 scaleform.Component
The root type of all actor components.
 scaleform.ContainerComponent
An interface to container component.
 scaleform.Cxform
A color transform class that modifies all pixels being rendered.
 scaleform.Easing
Represents an easing functor.
 scaleform.EventDispatcher
The base object for managing event listeners and dispatching events to the listeners.
 scaleform.Filter
 scaleform.FilterSet
Represents a set of filters.
 scaleform.FMODSound
A Sound object for audio.
 scaleform.Geolocation
Dispatches events in response to the device's location sensor.
 scaleform.GlowFilter
Represents a glow filter.
 scaleform.LuaEventListener
Internal C++ Event Listener binding object.
 scaleform.LuaHandle
The native system object handle type.
 scaleform.ParagraphFormat
Used for formatting of paragraphs.
 scaleform.PhysicsBodyComponent
Describes a Actor's physical properties.
 scaleform.PhysicsWorldComponent
Drives the Physics simulation of all child objects that have physical properties
 scaleform.ScriptComponent
An interface to script component.
 scaleform.ShadowFilter
Represents a shadow filter.
 scaleform.ShapeComponent
An interface to shape component.
 scaleform.Sound
A Sound object for playing audio through Wwise Wwise is only available if Scaleform Studio is compiled with it enabled (by default it is enabled).
 scaleform.SoundComponent
An interface to sound component for Wwise audio.
 scaleform.SpriteComponent
Represents a sprite object.
 scaleform.Stage
Represents a stage.
 scaleform.TextComponent
Represent the text field.
 scaleform.TextFormat
Used for formatting of text.
 scaleform.Timer
Represents a timer.
 scaleform.TimerBase
An interface to timer objects.
 scaleform.Tweener
A Lua interface to Tweener.
 scaleform.VisualComponent
An interface to the visual component.
 scaleform.AlignModes
The alignment types for paragraph formatting.
 scaleform.AnalogControls
The possible analog or touchpad controls which generate 2 axis input.
 scaleform.BlendModes
The blend modes that can be applied to the actor.
 scaleform.Buttons
The possible game pad buttons that generate press events.
 scaleform.EasingTypes
The type of easing performed.
 scaleform.EdgeAAModes
EdgeAAMode specified edge anti-aliasing state per object.
 scaleform.EventTypes
The list of events.
 scaleform.Keys
The possible keyboard keys.
 scaleform.PropertyTypes
An internal enumeration assigned to the constant PropertyType on tables which are supported for properties on Actors and Components.
 scaleform.RefPoints
The relative reference points that can be specified on the actor.
 scaleform.TextAAModes
The different anti-aliasing modes can be set for a text component.
 scaleform.TextFilterTypes
The different filters that can be applied to text.
 scaleform.TimerTypes
The types of timers.
 scaleform.TweenerModes
An internal enumeration that controls behavior of tweeners.
 scaleform.VAlignModes
The vertical alignment modes that can be set for a text component.
 scaleform.ViewAlignModes
The view alignment mode of the stage.
 scaleform.ViewScaleModes
The view scale mode of the stage.
 scaleform.get_module () : userdata
Returns the desired module.
 userdata
The module.
A raw memory buffer that is allocated and maintained in the Lua environment.  scaleform.get_time () : integer
Returns The current time in milliseconds from the start of the player/runtime.
 integerA strictly integral numeric value, with no decimal component.  scaleform.Path (init) : scaleform.Path
Create an initialized path table.
 init : scaleform.Path?
An table arguments to initialize the returned scaleform.Path table with. [more...]
The ? notation indicates that this type is optional: there may be zero or one instances of it.
 scaleform.Path
Returns a fully constructed Path table.
 scaleform.Path
Represents a complex ShapePath.
{ filename : string?, propertyType : string, segments : table[]?, }
 scaleform.Point (init) : scaleform.Point
Create an initialized point table.
 init : scaleform.Point?
A partial table of values used to initialize the Point.
The ? notation indicates that this type is optional: there may be zero or one instances of it.
 scaleform.Point
Returns a fully constructed Point table.
 scaleform.Point
Point should be in the form of a table {x=a, y=b}
{ PropertyType : string, x : number, y : number, }
 scaleform.Point3 (init) : scaleform.Point3
Create an initialized Point3 table.
 init : scaleform.Point3?
An table arguments to initialize the returned scaleform.Point3 table with. [more...]
The ? notation indicates that this type is optional: there may be zero or one instances of it.
 scaleform.Point3
Returns a fully constructed Point3 table.
 scaleform.Point3
Point3 should be in the form of a table {x=a, y=b, z=c}
{ PropertyType : string, x : number, y : number, z : number, }
 init : scaleform.Point3?
A partial table of values used to initialize the Point3.
The ? notation indicates that this type is optional: there may be zero or one instances of it.
 scaleform.Point3
Returns a fully constructed Point3 table.
 scaleform.print (args)
Prints the text/result of an operation on the screen.
 args : any*
The text/values to be displayed.
The * notation indicates that there may be zero or more instances of the specified type.
This value may be an instance of any type.  scaleform.Rect (init) : scaleform.Rect
Create an initialized rectangle table.
 init : scaleform.Rect?
An table arguments to initialize the returned scaleform.Rect table with. [more...]
The ? notation indicates that this type is optional: there may be zero or one instances of it.
 scaleform.Rect
Returns a fully constructed rectangle table.
 scaleform.Rect
A rectangle based upon two points.
{ x1 : number, x2 : number, y1 : number, y2 : number, }
 init : scaleform.Rect?
A partial table of values used to initialize the Rect.
The ? notation indicates that this type is optional: there may be zero or one instances of it.
 scaleform.Rect
Returns a fully constructed Rect table.
 scaleform.Size (init) : scaleform.Size
Create an initialized size table.
 init : scaleform.Size?
An table arguments to initialize the returned scaleform.Size table with. [more...]
The ? notation indicates that this type is optional: there may be zero or one instances of it.
 scaleform.Size
Returns a fully constructed size table.
 scaleform.Size
Width should be in the form of a table {width=a, height=b}
{ height : number, width : number, }
 init : scaleform.Size?
A partial table of values used to initialize the Size.
The ? notation indicates that this type is optional: there may be zero or one instances of it.
 scaleform.Size
Returns a fully constructed Size table.
 scaleform.Viewport (init) : scaleform.Viewport
Create an initialized viewport table.
 init : scaleform.Viewport?
An table arguments to initialize the returned scaleform.Viewport table with. [more...]
The ? notation indicates that this type is optional: there may be zero or one instances of it.
 scaleform.Viewport
Returns a fully constructed Viewport table.
 scaleform.Stage.set_viewport (viewport)
Sets the render-target surface viewport to which the stage is scaled; coordinates are specified in pixels.
A string of characters.A Lua table consisting of paired keys and values.A numeric value.  viewport : scaleform.Viewport
A pointer to Viewport, containing the viewport information.
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.