Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 07-30-2011, 05:46 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The createAnimation() isn't exactly changing the position of the control, the only variable that is persistenly changed is the visibility. Everything else is just a transition, temporary modification of the values.
You can however combine some animations, especially with the moveupdown and moveleftright animations, e.g. doing a half interval with having interval half of the duration.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.