Merge pull request #8 from filux/translations2
[megaglest-data.git] / data / cegui / themes / default / xml_schemas / Animation.xsd
blob9022cc3465010a1827e1da20fcb0b216c4f73a3c
1 <?xml version="1.0" ?>
2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
3 <xsd:element name="Animations" type="animAnimationsType" />
4 <xsd:complexType name="animAnimationsType">
5 <xsd:sequence>
6 <xsd:element name="AnimationDefinition" type="animAnimationDefinitionType" minOccurs="0" maxOccurs="unbounded" />
7 </xsd:sequence>
8 </xsd:complexType>
9 <xsd:complexType name="animAnimationDefinitionType">
10 <xsd:sequence>
11 <xsd:element name="Affector" type="animAffectorType" minOccurs="1" maxOccurs="unbounded" />
12 <xsd:element name="Subscription" type="animSubscriptionType" minOccurs="0" maxOccurs="unbounded" />
13 </xsd:sequence>
14 <xsd:attribute name="name" type="xsd:string" use="required" />
15 <xsd:attribute name="duration" type="xsd:decimal" use="required" />
16 <xsd:attribute name="replayMode" type="animReplayModeEnum" use="optional" default="loop" />
17 <xsd:attribute name="autoStart" type="xsd:boolean" use="optional" default="false" />
18 </xsd:complexType>
19 <xsd:complexType name="animAffectorType">
20 <xsd:sequence>
21 <xsd:element name="KeyFrame" type="animKeyFrameType" minOccurs="1" maxOccurs="unbounded" />
22 </xsd:sequence>
23 <xsd:attribute name="applicationMethod" type="animApplicationMethodEnum" use="optional" default="absolute" />
24 <xsd:attribute name="property" type="xsd:string" use="required" />
25 <xsd:attribute name="interpolator" type="xsd:string" use="required" />
26 </xsd:complexType>
27 <xsd:complexType name="animKeyFrameType">
28 <xsd:attribute name="position" type="xsd:decimal" use="required" />
29 <xsd:attribute name="value" type="xsd:string" use="optional" default="" />
30 <xsd:attribute name="progression" type="xsd:string" use="optional" default="" />
31 <xsd:attribute name="sourceProperty" type="xsd:string" use="optional" default="" />
32 </xsd:complexType>
33 <xsd:complexType name="animSubscriptionType">
34 <xsd:attribute name="event" type="xsd:string" use="required" />
35 <xsd:attribute name="action" type="animActionEnum" use="required" />
36 </xsd:complexType>
37 <xsd:simpleType name="animReplayModeEnum">
38 <xsd:restriction base="xsd:string">
39 <xsd:enumeration value="once" />
40 <xsd:enumeration value="loop" />
41 <xsd:enumeration value="bounce" />
42 </xsd:restriction>
43 </xsd:simpleType>
44 <xsd:simpleType name="animApplicationMethodEnum">
45 <xsd:restriction base="xsd:string">
46 <xsd:enumeration value="absolute" />
47 <xsd:enumeration value="relative" />
48 <xsd:enumeration value="relative multiply" />
49 </xsd:restriction>
50 </xsd:simpleType>
51 <xsd:simpleType name="animProgressionEnum">
52 <xsd:restriction base="xsd:string">
53 <xsd:enumeration value="linear" />
54 <xsd:enumeration value="discrete" />
55 <xsd:enumeration value="quadratic accelerating" />
56 <xsd:enumeration value="quadratic decelerating" />
57 </xsd:restriction>
58 </xsd:simpleType>
59 <xsd:simpleType name="animActionEnum">
60 <xsd:restriction base="xsd:string">
61 <xsd:enumeration value="Start" />
62 <xsd:enumeration value="Stop" />
63 <xsd:enumeration value="Pause" />
64 <xsd:enumeration value="Unpause" />
65 <xsd:enumeration value="TogglePause" />
66 </xsd:restriction>
67 </xsd:simpleType>
68 </xsd:schema>