[handle] = DisplayTextObjectFX(id, x, y[, table])
id at the position specified
by x and y and it uses one of the many Hollywood transition effects
to display it. You need also specify the speed for the transition.
If layers are enabled this command will add a new layer of the type
#TEXTOBJECT to the layer stack.
Starting with Hollywood 4.0 this function uses a new syntax with just a single table as an optional argument. The old syntax is still supported for compatibility reasons. The optional table argument can be used to configure the transition effect. The following options are possible:
Type:#RANDOMEFFECT)
Speed:#NORMALSPEED)
Parameter:#RANDOMPARAMETER)
Async:True here DisplayTextObjectFX()
will exit immediately, returning a handle to an asynchronous
draw object which you can then draw using AsyncDrawFrame().
See AsyncDrawFrame for more information on asynchronous draw objects.
Async has been set to True (see above)
DisplayTextObjectFX(1, 0, 0, #VLINES, 10) ; old syntax
OR
DisplayTextObjectFX(1, 0, 0, {Type = #VLINES, Speed = 10}) ; new syntax
The above code displays text object 1 at 0:0 with a #VLINES transition
at speed 10.