Creation/Dev/Script/Client/TGUIAnimation: Difference between revisions
From Graal Bible
Deas Voice (talk | contribs) (found this on the forums, thought it was missing on here) |
Deas Voice (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
[[Category:Scripting Reference]] | [[Category:Scripting Reference]] | ||
{{Template:Script_Object}} | |||
Inherits from [[Creation/Dev/Script/Client/TGraalVar|TGraalVar]]. | |||
<pre> | <pre> |
Revision as of 16:36, 2 December 2012
This article is information on a script object - a pre-defined type of variable with its own set of static variables and functions. It is intended for use with the GS2 scripting language.
Inherits from TGraalVar.
TGUIAnimation (TGraalVar): amplitude - float - amplitude for moveupdown, moveleftright and zoominout currenttime - float delay - float - the animation starts after the specified number of seconds duration - float - the animation will last the specified number of seconds interval - float - interval for moveupdown, moveleftright and zoominout tabfirstonshow - boolean - calls tabfirst() after showing the control, by default true timing - string - timing function: 'linear' or 'sinus', sinus is only used for moveupdown, moveleftright and zoominout transition - string - specifies the animation type: fadeout, fadein, moveoutleft, moveinleft, moveoutright, moveinright, moveouttop, moveintop, moveoutbottom, moveinbottom, moveupdown, moveleftright, flipoutleft, flipinleft, flipoutright, flipinright, zoomin, zoomout, zoominout, growin, growout, shrinkin, shrinkout, rotateoutleft, rotateinleft, rotateoutright, rotateinright
Description
Creates an animation on the object, temporary modification of the values.
Functions
Name | Description |
obj.createanimation() | |
obj.stopanimation() |
Example
new GuiButtonCtrl("Test_Button") { profile = GuiBlueButtonProfile; x = 10; y = 10; width = 100; height = 30; text = "Button"; } with ( Test_Button.createanimation() ) { duration = 0.5; transition = "fadein"; }
Source: TGuiAnimation