Page 1 of 1

[ALWAYS]IGUIInOutFader Question

Posted: Tue May 10, 2005 12:22 pm
by fatcat46
How do I use the IGUIInOutFader in my project?

Posted: Tue May 10, 2005 4:43 pm
by keless
you create an inoutfader, then set a fade in time, when you want it to fade out you set a fade out time. Its just that easy. Though, you'll also have to remove it from the GUI Environment when you're done with it.

Posted: Tue May 10, 2005 4:57 pm
by fatcat46
Ok thanks but what code do i need (exemples please)? :roll:

Posted: Tue May 10, 2005 5:21 pm
by keless
the code is so simple you can figure it out from the documentation. furthermore, I have posted this code already, please use the search feature of the forum

Posted: Wed May 11, 2005 12:23 pm
by fatcat46
Simply as that? But, one last question : the "fader.fadeIn(1000);" where do I place it (before , in or after de Main Loop)?
Thanks for the Help!! :roll: :roll:

Posted: Wed May 11, 2005 7:15 pm
by keless
it needs to be called only once; if you continue to call it in your main loop you will be resetting the fade out timer every update so nothing will appear to change

Posted: Wed May 11, 2005 8:29 pm
by fatcat46
keless wrote:it needs to be called only once; if you continue to call it in your main loop you will be resetting the fade out timer every update so nothing will appear to change
So, I'll place it before or after the loop. Thanks!

Posted: Thu May 12, 2005 9:07 pm
by fatcat46
It doesn't works!!!

Code: Select all

fader->fadeIn(1000);
while(device->run())
{
  //Main Loop...
}
fader->fadeOut(1000);
device->Drop();
return 0;
:?: HELP :?: