Custom animation

Started by Nafffen, 16 March 2023, 18:10:56


Is there a tutorial somewhere to make custom animation ? Is this even possible ?
For example an animation that combines fade in from transparent and pos sliding ?
Or a more complex one ?


Custom animations can't be provided, you will have to just implement the behavior in your own code (by keeping track of the elapsed time yourself and changing the widget properties at each timestep).

Combining existing animations might actually work: if you call showWithEffect (or hideWithEffect) twice (preferably with the same duration) but with a different type then both effects should take place simultaneously.

TGUI doesn't really have proper animation support, the showWithEffect and hideWithEffect functions only intended to provide bare minimum animation functionality.