Creation/Dev/Script/Client/TGUIAnimation

From Graal Bible
Revision as of 16:33, 2 December 2012 by Deas Voice (talk | contribs) (found this on the forums, thought it was missing on here)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


  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