Many thanks for such a quick response.
Would this be a valid animation definition for this:
Code: Select all
<Animations>
<AnimationDefinition name="FadeOut" duration="0.5" replayMode="once">
<Affector property="Alpha" interpolator="float">
<KeyFrame position="0" value="1" />
<KeyFrame position="0.5" value="0" progression="quadratic decelerating" />
</Affector>
<Subscription event="MouseLeavesArea" action="Start" />
<Subscription event="MouseEntersArea" action="Pause" />
</AnimationDefinition>
<AnimationDefinition name="FadeIn" duration="0.2" replayMode="once">
<Affector property="Alpha" interpolator="float">
<KeyFrame position="0" value="0" />
<KeyFrame position="0.2" value="1" progression="quadratic accelerating" />
</Affector>
<Subscription event="MouseEntersArea" action="Start" />
<Subscription event="MouseLeavesArea" action="Pause" />
</AnimationDefinition>
</Animations>
It came from the example.xml file in the animations folder and I edited it a little.
Should the mouse leave the button before the animation finishes, would the fade out part take the alpha value from 1 or from whatever the value had reached?
And if the mouse entered the area of the button again before fade out was done, would it take it from 0 or the value it was at previously?
thanks for your help Kulik
Just started with CEGUI, trying to get my head around it all still.