Crazy Eddie's GUI System
0.8.1
|
Animation XML files allow the specification of animations for CEGUI, which can later be instantiated and targetted to specific GUI elements. The same system and XML formats are also valid as part of Falagard WidgetLook definitions.
<Affector> Element
<AnimationDefinition> Element
<Animations> Element
<KeyFrame> Element
<Subscription> Element
The reference for each element is arranged into sections, as described below:
property:
Required attribute that specifies the name of the property that will be changed by this affector.applicationMethod:
Optional attribute that specifies how interpolated property values are to be applied. Valid options are:"absolute"
: The interpolated value is set as the new property value (default setting)."relative"
: The interpolated value is added to the starting value of the property."relative multiply"
: The interpolated value is multiplied with the starting value of the property.interpolator:
Required attribute that specifies the name of the interpolator that will interpret the property value to smoothly transition from one key frame value to another. The interpolator name specified must be registered with the system. Stock interpolators are provided for the following:"bool"
"colour"
"ColourRect"
"float"
"int"
"Point"
"Rect"
"Size"
"String"
"UBox"
"UDim"
"uint"
"URect"
"UVector2"
"Vector3"
name:
Required attribute that specifies a system-unique name for the animation.duration:
Required attribute that specifies the overall duration of the animation in seconds.replayMode:
Optional attribute that specifies if and how the animation will be replayed / repeated. Acceptable values are:"loop"
: Animation plays through, then restarts from the beginning (default setting)."once"
: Animation plays one time and then stops."bounce"
: Animation plays forwards and then backwards in a continual cycle.autoStart:
Optional boolean attribute that specifies whether the animation will start playing immediately. Default value is 'false' which means some external event must trigger the animation if it is to be seen.
position:
Required attribute that specifies the time interval within the animation at which point the value for this key frame should be reached. This value should be between zero and the total duration of the animation being defined.value:
Optional attribute that specifies a value for the affected property that should be in effect at the specified position within the animation. If this attribute is not given, you should specify the sourceProperty
attribute.sourceProperty:
Optional attribute specifying the name of a property from which the target value of this key frame will be fetched. If this attribute is not specified, you should specify the value
attribute.progression:
Optional attribute indicating the method of progression towards this key frame value over time. The available options are:"linear"
(default value(."discrete"
"quadratic accelerating"
"quadratic decelerating"
event:
Required attribute that specifies the event that will trigger the given action.action:
Required attribute that specifies the action that will be taken when the specified event is fired. Possible values are:"Start"
"Stop"
"Pause"
"Unpause"
"TogglePause"