Thread: TGuiAnimation
View Single Post
  #1  
Old 07-29-2011, 12:50 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
TGuiAnimation

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

Was messing around with this a bit last night and discovered a few things about this, if stopanimation is called during/after an animation, the GUIObject returns to its original spot.

It also seems there is no way to not use the moving to stop short of the width/height of the GuiControl that is moving so more complex motions aren't possible (IE, collapsing downward, then sliding out to the right).

Is it possible to have transitions and additional variables added (IE a delta value for the transitions) so that

PHP Code:
transition "moveoutright"
delay 1;
duration 1.5;
delta 50
would move the GUI 50 pixels to the right
Reply With Quote