RUIC 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +3 -3
- data/HISTORY +110 -86
- data/README.md +220 -220
- data/bin/ruic +61 -61
- data/gui/TODO +2 -2
- data/gui/appattributesmodel.rb +51 -51
- data/gui/appelementsmodel.rb +126 -126
- data/gui/launch.rb +19 -19
- data/gui/makefile +14 -14
- data/gui/resources/style/dark.qss +459 -459
- data/gui/window.rb +90 -90
- data/gui/window.ui +753 -753
- data/lib/ruic.rb +191 -190
- data/lib/ruic/application.rb +25 -3
- data/lib/ruic/assets.rb +441 -436
- data/lib/ruic/attributes.rb +179 -178
- data/lib/ruic/behaviors.rb +0 -0
- data/lib/ruic/effect.rb +31 -31
- data/lib/ruic/interfaces.rb +0 -0
- data/lib/ruic/nicebytes.rb +29 -0
- data/lib/ruic/presentation.rb +6 -3
- data/lib/ruic/renderplugin.rb +17 -17
- data/lib/ruic/ripl.rb +45 -45
- data/lib/ruic/statemachine.rb +6 -0
- data/lib/ruic/version.rb +3 -3
- data/ruic.gemspec +25 -25
- data/test/MetaData-simple.xml +28 -28
- data/test/MetaData.xml +435 -435
- data/test/customclasses.ruic +29 -29
- data/test/filtering.ruic +42 -42
- data/test/futureassets.ruic +7 -7
- data/test/nonmaster.ruic +20 -20
- data/test/paths.ruic +16 -16
- data/test/projects/CustomClasses/CustomClasses.uia +7 -7
- data/test/projects/CustomClasses/CustomClasses.uip +40 -40
- data/test/projects/CustomClasses/FutureAsset.uip +17 -17
- data/test/projects/MissingAssets/Existing.uip +87 -87
- data/test/projects/MissingAssets/MissingAssets.uia +0 -0
- data/test/projects/MissingAssets/MissingAssets.uia-user +14 -14
- data/test/projects/MissingAssets/RoundedPlane-1/RoundedPlane-1.import +18 -18
- data/test/projects/MissingAssets/RoundedPlane-1/meshes/RoundedPlane.mesh +0 -0
- data/test/projects/MissingAssets/effects/effects.txt +0 -0
- data/test/projects/MissingAssets/effects/existing.effect +0 -0
- data/test/projects/MissingAssets/fonts/Arimo-Regular.ttf +0 -0
- data/test/projects/MissingAssets/fonts/Chivo-Black.ttf +0 -0
- data/test/projects/MissingAssets/fonts/OFL.txt +0 -0
- data/test/projects/MissingAssets/maps/effects/brushnoise.dds +0 -0
- data/test/projects/MissingAssets/maps/existing.png +0 -0
- data/test/projects/MissingAssets/maps/maps.txt +0 -0
- data/test/projects/MissingAssets/maps/materials/concrete_plain.png +0 -0
- data/test/projects/MissingAssets/maps/materials/concrete_plain_bump.png +0 -0
- data/test/projects/MissingAssets/maps/materials/spherical_checker.png +0 -0
- data/test/projects/MissingAssets/materials/concrete.material +0 -0
- data/test/projects/MissingAssets/materials/materials.txt +0 -0
- data/test/projects/MissingAssets/scripts/existing1.lua +0 -0
- data/test/projects/MissingAssets/scripts/existing2.lua +0 -0
- data/test/projects/MissingAssets/states/existing.scxml +0 -0
- data/test/projects/MissingAssets/tests/interface-navigation.scxml-test +0 -0
- data/test/projects/Paths/Paths.uia +4 -4
- data/test/projects/Paths/Paths.uip +98 -98
- data/test/projects/SimpleScene/SimpleScene.uia +4 -4
- data/test/projects/SimpleScene/SimpleScene.uip +35 -35
- data/test/properties.ruic +80 -80
- data/test/referencematerials.ruic +50 -50
- data/test/usage.ruic +54 -54
- metadata +5 -54
File without changes
|
@@ -1,14 +1,14 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
-
<Project>
|
3
|
-
<UIADebug>
|
4
|
-
<Tab>
|
5
|
-
<Tab0>
|
6
|
-
<Item Name="Source" value="MissingAssets.uia"/>
|
7
|
-
<Item Name="Line" value="-1"/>
|
8
|
-
</Tab0>
|
9
|
-
<Highlight>
|
10
|
-
<Item Name="Index" value="0"/>
|
11
|
-
</Highlight>
|
12
|
-
</Tab>
|
13
|
-
</UIADebug>
|
14
|
-
</Project>
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<Project>
|
3
|
+
<UIADebug>
|
4
|
+
<Tab>
|
5
|
+
<Tab0>
|
6
|
+
<Item Name="Source" value="MissingAssets.uia"/>
|
7
|
+
<Item Name="Line" value="-1"/>
|
8
|
+
</Tab0>
|
9
|
+
<Highlight>
|
10
|
+
<Item Name="Index" value="0"/>
|
11
|
+
</Highlight>
|
12
|
+
</Tab>
|
13
|
+
</UIADebug>
|
14
|
+
</Project>
|
@@ -1,18 +1,18 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
-
<UIP Version="1" >
|
3
|
-
<Project Revision="1" >
|
4
|
-
<Graph >
|
5
|
-
<Group id="__import__root__" >
|
6
|
-
<Model id="RoundedPlane" name="RoundedPlane" orientation="Right Handed" position="0 0 -0" rotation="0 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath=".\meshes\RoundedPlane.mesh#1" >
|
7
|
-
<Material id="lambert2" name="lambert2" blendmode="Normal" diffuse="1 1 1" emissivepower="0" opacity="100" specularamount="0" />
|
8
|
-
</Model>
|
9
|
-
</Group>
|
10
|
-
</Graph>
|
11
|
-
<Import SrcFile="..\..\Program Files (x86)\NVIDIA Corporation\UI Composer 8.0\Content\Models Library\Primitives\Planes\RoundedPlane-1.dae" ImageDir="Images" MeshDir="Meshes" >
|
12
|
-
<Mesh >
|
13
|
-
<Source >RoundedPlane</Source>
|
14
|
-
<Dest >.\meshes\RoundedPlane.mesh</Dest>
|
15
|
-
</Mesh>
|
16
|
-
</Import>
|
17
|
-
</Project>
|
18
|
-
</UIP>
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<UIP Version="1" >
|
3
|
+
<Project Revision="1" >
|
4
|
+
<Graph >
|
5
|
+
<Group id="__import__root__" >
|
6
|
+
<Model id="RoundedPlane" name="RoundedPlane" orientation="Right Handed" position="0 0 -0" rotation="0 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath=".\meshes\RoundedPlane.mesh#1" >
|
7
|
+
<Material id="lambert2" name="lambert2" blendmode="Normal" diffuse="1 1 1" emissivepower="0" opacity="100" specularamount="0" />
|
8
|
+
</Model>
|
9
|
+
</Group>
|
10
|
+
</Graph>
|
11
|
+
<Import SrcFile="..\..\Program Files (x86)\NVIDIA Corporation\UI Composer 8.0\Content\Models Library\Primitives\Planes\RoundedPlane-1.dae" ImageDir="Images" MeshDir="Meshes" >
|
12
|
+
<Mesh >
|
13
|
+
<Source >RoundedPlane</Source>
|
14
|
+
<Dest >.\meshes\RoundedPlane.mesh</Dest>
|
15
|
+
</Mesh>
|
16
|
+
</Import>
|
17
|
+
</Project>
|
18
|
+
</UIP>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<application xmlns="http://nvidia.com/uicomposer">
|
3
|
-
<assets><presentation id="main" src="Paths.uip"/></assets>
|
4
|
-
</application>
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<application xmlns="http://nvidia.com/uicomposer">
|
3
|
+
<assets><presentation id="main" src="Paths.uip"/></assets>
|
4
|
+
</application>
|
@@ -1,98 +1,98 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
-
<UIP version="3" >
|
3
|
-
<Project >
|
4
|
-
<ProjectSettings author="" company="" presentationWidth="800" presentationHeight="480" maintainAspect="False" />
|
5
|
-
<Graph >
|
6
|
-
<Scene id="Scene" >
|
7
|
-
<Layer id="Layer" >
|
8
|
-
<Camera id="Camera" />
|
9
|
-
<Light id="Light" />
|
10
|
-
<Path id="Path" >
|
11
|
-
<Material id="M1" />
|
12
|
-
<PathAnchorPoint id="AnchorPoint" name="AnchorPoint" />
|
13
|
-
<PathAnchorPoint id="AnchorPoint_001" name="AnchorPoint" />
|
14
|
-
<PathAnchorPoint id="AnchorPoint_002" name="AnchorPoint" />
|
15
|
-
<PathAnchorPoint id="AnchorPoint_003" name="AnchorPoint" />
|
16
|
-
<PathAnchorPoint id="AnchorPoint_004" name="AnchorPoint" />
|
17
|
-
</Path>
|
18
|
-
<Path id="Path2" >
|
19
|
-
<Material id="M2" />
|
20
|
-
<PathAnchorPoint id="AnchorPoint_005" name="AnchorPoint" />
|
21
|
-
<PathAnchorPoint id="AnchorPoint_006" name="AnchorPoint" />
|
22
|
-
<PathAnchorPoint id="AnchorPoint_007" name="AnchorPoint" />
|
23
|
-
<PathAnchorPoint id="AnchorPoint_008" name="AnchorPoint" />
|
24
|
-
<PathAnchorPoint id="AnchorPoint_009" name="AnchorPoint" />
|
25
|
-
</Path>
|
26
|
-
<Path id="Path3" >
|
27
|
-
<Material id="M3" />
|
28
|
-
<PathAnchorPoint id="AnchorPoint_010" name="AnchorPoint" />
|
29
|
-
<PathAnchorPoint id="AnchorPoint_011" name="AnchorPoint" />
|
30
|
-
<PathAnchorPoint id="AnchorPoint_012" name="AnchorPoint" />
|
31
|
-
<PathAnchorPoint id="AnchorPoint_013" name="AnchorPoint" />
|
32
|
-
<PathAnchorPoint id="AnchorPoint_014" name="AnchorPoint" />
|
33
|
-
</Path>
|
34
|
-
<Path id="Path4" >
|
35
|
-
<Material id="M4" />
|
36
|
-
<PathAnchorPoint id="AnchorPoint_015" name="AnchorPoint" />
|
37
|
-
<PathAnchorPoint id="AnchorPoint_016" name="AnchorPoint" />
|
38
|
-
<PathAnchorPoint id="AnchorPoint_017" name="AnchorPoint" />
|
39
|
-
<PathAnchorPoint id="AnchorPoint_018" name="AnchorPoint" />
|
40
|
-
<PathAnchorPoint id="AnchorPoint_019" name="AnchorPoint" />
|
41
|
-
</Path>
|
42
|
-
<Path id="Path5" >
|
43
|
-
<Material id="M5" />
|
44
|
-
<PathAnchorPoint id="AnchorPoint_020" name="AnchorPoint" />
|
45
|
-
<PathAnchorPoint id="AnchorPoint_021" name="AnchorPoint" />
|
46
|
-
<PathAnchorPoint id="AnchorPoint_022" name="AnchorPoint" />
|
47
|
-
<PathAnchorPoint id="AnchorPoint_023" name="AnchorPoint" />
|
48
|
-
<PathAnchorPoint id="AnchorPoint_024" name="AnchorPoint" />
|
49
|
-
</Path>
|
50
|
-
</Layer>
|
51
|
-
</Scene>
|
52
|
-
</Graph>
|
53
|
-
<Logic >
|
54
|
-
<State name="Master Slide" component="#Scene" >
|
55
|
-
<Add ref="#Layer" multisampleaa="4x" />
|
56
|
-
<Add ref="#Camera" fov="58.1806" position="437 499 -600" />
|
57
|
-
<Add ref="#Light" brightness="50" />
|
58
|
-
<State id="Scene-Slide1" name="Slide1" >
|
59
|
-
<Add ref="#Path" name="Path1" diffuse="2 0 0" opacity="50" width="17" />
|
60
|
-
<Add ref="#M1" name="Path" />
|
61
|
-
<Add ref="#AnchorPoint" incomingcontrol="0 0" outgoingcontrol="-69.5 -36.6" position="1211.2 501.3" />
|
62
|
-
<Add ref="#AnchorPoint_001" incomingcontrol="103.9 2.39999" outgoingcontrol="-103.9 -2.4" position="968.3 425.6" />
|
63
|
-
<Add ref="#AnchorPoint_002" incomingcontrol="199.1 -19.6" outgoingcontrol="-199.1 19.7" position="631.3 465" />
|
64
|
-
<Add ref="#AnchorPoint_003" incomingcontrol="161.1 12.6" outgoingcontrol="-161.1 -12.6" position="90.5 391.5" />
|
65
|
-
<Add ref="#AnchorPoint_004" incomingcontrol="81.8 -50" outgoingcontrol="234.1 -478.8" position="-234.1 478.8" />
|
66
|
-
<Add ref="#Path2" name="Path2" diffuse="3 1.66274 1.50196" opacity="50" position="110 0 0" rotation="-20 -20 0" />
|
67
|
-
<Add ref="#M2" name="Path" />
|
68
|
-
<Add ref="#AnchorPoint_005" incomingcontrol="0 0" outgoingcontrol="-51.5 28.9" position="1218.2 431.5" />
|
69
|
-
<Add ref="#AnchorPoint_006" incomingcontrol="119 9.79999" outgoingcontrol="-119.1 -9.8" position="996.1 479.5" />
|
70
|
-
<Add ref="#AnchorPoint_007" incomingcontrol="188.6 -14.6" outgoingcontrol="-188.6 14.5" position="649.3 411.6" />
|
71
|
-
<Add ref="#AnchorPoint_008" incomingcontrol="161 12.6" outgoingcontrol="-161.1 -12.6" position="95.6 544.9" />
|
72
|
-
<Add ref="#AnchorPoint_009" incomingcontrol="77.7 58.3" outgoingcontrol="221 -415.7" position="-221 415.7" />
|
73
|
-
<Add ref="#Path3" name="Path3" diffuse="2.62745 0 0" opacity="50" rotation="10 10 0" />
|
74
|
-
<Add ref="#M3" name="Path" />
|
75
|
-
<Add ref="#AnchorPoint_010" incomingcontrol="0 0" outgoingcontrol="-87.5 -41.8" position="1259.8 557.6" />
|
76
|
-
<Add ref="#AnchorPoint_011" incomingcontrol="119.1 9.79999" outgoingcontrol="-119.1 -9.8" position="965.7 464.2" />
|
77
|
-
<Add ref="#AnchorPoint_012" incomingcontrol="199.1 -19.7" outgoingcontrol="-199.1 19.7" position="581.4 487.6" />
|
78
|
-
<Add ref="#AnchorPoint_013" incomingcontrol="155 19.4" outgoingcontrol="-155 -19.4" position="60.2 505.5" />
|
79
|
-
<Add ref="#AnchorPoint_014" incomingcontrol="73.4 63.6" outgoingcontrol="241.5 -359" position="-241.5 359" />
|
80
|
-
<Add ref="#Path4" name="Path4" diffuse="3 1.85882 0" opacity="50" rotation="11 0 0" />
|
81
|
-
<Add ref="#M4" name="Path" />
|
82
|
-
<Add ref="#AnchorPoint_015" incomingcontrol="0 0" outgoingcontrol="-71.9 51.6" position="1297.3 406.2" />
|
83
|
-
<Add ref="#AnchorPoint_016" incomingcontrol="139.1 2.5" outgoingcontrol="-139.1 -2.4" position="1014.4 506.9" />
|
84
|
-
<Add ref="#AnchorPoint_017" incomingcontrol="225.7 -1.40002" outgoingcontrol="-225.7 1.4" position="600.7 414.7" />
|
85
|
-
<Add ref="#AnchorPoint_018" incomingcontrol="211.8 47.8" outgoingcontrol="-211.8 -47.8" position="46.7 474.7" />
|
86
|
-
<Add ref="#AnchorPoint_019" incomingcontrol="79.9 95.4" outgoingcontrol="325 -236" position="-325 236" />
|
87
|
-
<Add ref="#Path5" name="Path5" diffuse="2 2 0" opacity="50" rotation="9 6.9 7.9" />
|
88
|
-
<Add ref="#M5" name="Path" />
|
89
|
-
<Add ref="#AnchorPoint_020" incomingcontrol="0 0" outgoingcontrol="-81.5 -61.8" position="1271.6 516.8" />
|
90
|
-
<Add ref="#AnchorPoint_021" incomingcontrol="103.9 2.40002" outgoingcontrol="-103.9 -2.4" position="1004.8 390.8" />
|
91
|
-
<Add ref="#AnchorPoint_022" incomingcontrol="199 -19.7" outgoingcontrol="-199.1 19.7" position="638.9 445.8" />
|
92
|
-
<Add ref="#AnchorPoint_023" incomingcontrol="161.1 12.6" outgoingcontrol="-161.1 -12.6" position="66.8 352.6" />
|
93
|
-
<Add ref="#AnchorPoint_024" incomingcontrol="85 -71.9" outgoingcontrol="264.3 -483.7" position="-264.3 483.7" />
|
94
|
-
</State>
|
95
|
-
</State>
|
96
|
-
</Logic>
|
97
|
-
</Project>
|
98
|
-
</UIP>
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<UIP version="3" >
|
3
|
+
<Project >
|
4
|
+
<ProjectSettings author="" company="" presentationWidth="800" presentationHeight="480" maintainAspect="False" />
|
5
|
+
<Graph >
|
6
|
+
<Scene id="Scene" >
|
7
|
+
<Layer id="Layer" >
|
8
|
+
<Camera id="Camera" />
|
9
|
+
<Light id="Light" />
|
10
|
+
<Path id="Path" >
|
11
|
+
<Material id="M1" />
|
12
|
+
<PathAnchorPoint id="AnchorPoint" name="AnchorPoint" />
|
13
|
+
<PathAnchorPoint id="AnchorPoint_001" name="AnchorPoint" />
|
14
|
+
<PathAnchorPoint id="AnchorPoint_002" name="AnchorPoint" />
|
15
|
+
<PathAnchorPoint id="AnchorPoint_003" name="AnchorPoint" />
|
16
|
+
<PathAnchorPoint id="AnchorPoint_004" name="AnchorPoint" />
|
17
|
+
</Path>
|
18
|
+
<Path id="Path2" >
|
19
|
+
<Material id="M2" />
|
20
|
+
<PathAnchorPoint id="AnchorPoint_005" name="AnchorPoint" />
|
21
|
+
<PathAnchorPoint id="AnchorPoint_006" name="AnchorPoint" />
|
22
|
+
<PathAnchorPoint id="AnchorPoint_007" name="AnchorPoint" />
|
23
|
+
<PathAnchorPoint id="AnchorPoint_008" name="AnchorPoint" />
|
24
|
+
<PathAnchorPoint id="AnchorPoint_009" name="AnchorPoint" />
|
25
|
+
</Path>
|
26
|
+
<Path id="Path3" >
|
27
|
+
<Material id="M3" />
|
28
|
+
<PathAnchorPoint id="AnchorPoint_010" name="AnchorPoint" />
|
29
|
+
<PathAnchorPoint id="AnchorPoint_011" name="AnchorPoint" />
|
30
|
+
<PathAnchorPoint id="AnchorPoint_012" name="AnchorPoint" />
|
31
|
+
<PathAnchorPoint id="AnchorPoint_013" name="AnchorPoint" />
|
32
|
+
<PathAnchorPoint id="AnchorPoint_014" name="AnchorPoint" />
|
33
|
+
</Path>
|
34
|
+
<Path id="Path4" >
|
35
|
+
<Material id="M4" />
|
36
|
+
<PathAnchorPoint id="AnchorPoint_015" name="AnchorPoint" />
|
37
|
+
<PathAnchorPoint id="AnchorPoint_016" name="AnchorPoint" />
|
38
|
+
<PathAnchorPoint id="AnchorPoint_017" name="AnchorPoint" />
|
39
|
+
<PathAnchorPoint id="AnchorPoint_018" name="AnchorPoint" />
|
40
|
+
<PathAnchorPoint id="AnchorPoint_019" name="AnchorPoint" />
|
41
|
+
</Path>
|
42
|
+
<Path id="Path5" >
|
43
|
+
<Material id="M5" />
|
44
|
+
<PathAnchorPoint id="AnchorPoint_020" name="AnchorPoint" />
|
45
|
+
<PathAnchorPoint id="AnchorPoint_021" name="AnchorPoint" />
|
46
|
+
<PathAnchorPoint id="AnchorPoint_022" name="AnchorPoint" />
|
47
|
+
<PathAnchorPoint id="AnchorPoint_023" name="AnchorPoint" />
|
48
|
+
<PathAnchorPoint id="AnchorPoint_024" name="AnchorPoint" />
|
49
|
+
</Path>
|
50
|
+
</Layer>
|
51
|
+
</Scene>
|
52
|
+
</Graph>
|
53
|
+
<Logic >
|
54
|
+
<State name="Master Slide" component="#Scene" >
|
55
|
+
<Add ref="#Layer" multisampleaa="4x" />
|
56
|
+
<Add ref="#Camera" fov="58.1806" position="437 499 -600" />
|
57
|
+
<Add ref="#Light" brightness="50" />
|
58
|
+
<State id="Scene-Slide1" name="Slide1" >
|
59
|
+
<Add ref="#Path" name="Path1" diffuse="2 0 0" opacity="50" width="17" />
|
60
|
+
<Add ref="#M1" name="Path" />
|
61
|
+
<Add ref="#AnchorPoint" incomingcontrol="0 0" outgoingcontrol="-69.5 -36.6" position="1211.2 501.3" />
|
62
|
+
<Add ref="#AnchorPoint_001" incomingcontrol="103.9 2.39999" outgoingcontrol="-103.9 -2.4" position="968.3 425.6" />
|
63
|
+
<Add ref="#AnchorPoint_002" incomingcontrol="199.1 -19.6" outgoingcontrol="-199.1 19.7" position="631.3 465" />
|
64
|
+
<Add ref="#AnchorPoint_003" incomingcontrol="161.1 12.6" outgoingcontrol="-161.1 -12.6" position="90.5 391.5" />
|
65
|
+
<Add ref="#AnchorPoint_004" incomingcontrol="81.8 -50" outgoingcontrol="234.1 -478.8" position="-234.1 478.8" />
|
66
|
+
<Add ref="#Path2" name="Path2" diffuse="3 1.66274 1.50196" opacity="50" position="110 0 0" rotation="-20 -20 0" />
|
67
|
+
<Add ref="#M2" name="Path" />
|
68
|
+
<Add ref="#AnchorPoint_005" incomingcontrol="0 0" outgoingcontrol="-51.5 28.9" position="1218.2 431.5" />
|
69
|
+
<Add ref="#AnchorPoint_006" incomingcontrol="119 9.79999" outgoingcontrol="-119.1 -9.8" position="996.1 479.5" />
|
70
|
+
<Add ref="#AnchorPoint_007" incomingcontrol="188.6 -14.6" outgoingcontrol="-188.6 14.5" position="649.3 411.6" />
|
71
|
+
<Add ref="#AnchorPoint_008" incomingcontrol="161 12.6" outgoingcontrol="-161.1 -12.6" position="95.6 544.9" />
|
72
|
+
<Add ref="#AnchorPoint_009" incomingcontrol="77.7 58.3" outgoingcontrol="221 -415.7" position="-221 415.7" />
|
73
|
+
<Add ref="#Path3" name="Path3" diffuse="2.62745 0 0" opacity="50" rotation="10 10 0" />
|
74
|
+
<Add ref="#M3" name="Path" />
|
75
|
+
<Add ref="#AnchorPoint_010" incomingcontrol="0 0" outgoingcontrol="-87.5 -41.8" position="1259.8 557.6" />
|
76
|
+
<Add ref="#AnchorPoint_011" incomingcontrol="119.1 9.79999" outgoingcontrol="-119.1 -9.8" position="965.7 464.2" />
|
77
|
+
<Add ref="#AnchorPoint_012" incomingcontrol="199.1 -19.7" outgoingcontrol="-199.1 19.7" position="581.4 487.6" />
|
78
|
+
<Add ref="#AnchorPoint_013" incomingcontrol="155 19.4" outgoingcontrol="-155 -19.4" position="60.2 505.5" />
|
79
|
+
<Add ref="#AnchorPoint_014" incomingcontrol="73.4 63.6" outgoingcontrol="241.5 -359" position="-241.5 359" />
|
80
|
+
<Add ref="#Path4" name="Path4" diffuse="3 1.85882 0" opacity="50" rotation="11 0 0" />
|
81
|
+
<Add ref="#M4" name="Path" />
|
82
|
+
<Add ref="#AnchorPoint_015" incomingcontrol="0 0" outgoingcontrol="-71.9 51.6" position="1297.3 406.2" />
|
83
|
+
<Add ref="#AnchorPoint_016" incomingcontrol="139.1 2.5" outgoingcontrol="-139.1 -2.4" position="1014.4 506.9" />
|
84
|
+
<Add ref="#AnchorPoint_017" incomingcontrol="225.7 -1.40002" outgoingcontrol="-225.7 1.4" position="600.7 414.7" />
|
85
|
+
<Add ref="#AnchorPoint_018" incomingcontrol="211.8 47.8" outgoingcontrol="-211.8 -47.8" position="46.7 474.7" />
|
86
|
+
<Add ref="#AnchorPoint_019" incomingcontrol="79.9 95.4" outgoingcontrol="325 -236" position="-325 236" />
|
87
|
+
<Add ref="#Path5" name="Path5" diffuse="2 2 0" opacity="50" rotation="9 6.9 7.9" />
|
88
|
+
<Add ref="#M5" name="Path" />
|
89
|
+
<Add ref="#AnchorPoint_020" incomingcontrol="0 0" outgoingcontrol="-81.5 -61.8" position="1271.6 516.8" />
|
90
|
+
<Add ref="#AnchorPoint_021" incomingcontrol="103.9 2.40002" outgoingcontrol="-103.9 -2.4" position="1004.8 390.8" />
|
91
|
+
<Add ref="#AnchorPoint_022" incomingcontrol="199 -19.7" outgoingcontrol="-199.1 19.7" position="638.9 445.8" />
|
92
|
+
<Add ref="#AnchorPoint_023" incomingcontrol="161.1 12.6" outgoingcontrol="-161.1 -12.6" position="66.8 352.6" />
|
93
|
+
<Add ref="#AnchorPoint_024" incomingcontrol="85 -71.9" outgoingcontrol="264.3 -483.7" position="-264.3 483.7" />
|
94
|
+
</State>
|
95
|
+
</State>
|
96
|
+
</Logic>
|
97
|
+
</Project>
|
98
|
+
</UIP>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<application xmlns="http://nvidia.com/uicomposer">
|
3
|
-
<assets><presentation id="main" src="SimpleScene.uip"/></assets>
|
4
|
-
</application>
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<application xmlns="http://nvidia.com/uicomposer">
|
3
|
+
<assets><presentation id="main" src="SimpleScene.uip"/></assets>
|
4
|
+
</application>
|
@@ -1,35 +1,35 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
-
<UIP version="3">
|
3
|
-
<Project>
|
4
|
-
<ProjectSettings author="" company="" presentationWidth="800" presentationHeight="480" maintainAspect="False"/>
|
5
|
-
<Graph>
|
6
|
-
<Scene id="Scene">
|
7
|
-
<Layer id="Layer">
|
8
|
-
<Camera id="Camera"/>
|
9
|
-
<Light id="Light"/>
|
10
|
-
<Model id="Sphere"><Material id="Material"/></Model>
|
11
|
-
<Model id="Sphere2"><Material id="Material_001"/></Model>
|
12
|
-
<Model id="Cube"><Material id="Material_002"/></Model>
|
13
|
-
<Model id="Sphere3"><Material id="Material_003"/></Model>
|
14
|
-
</Layer>
|
15
|
-
</Scene>
|
16
|
-
</Graph>
|
17
|
-
<Logic>
|
18
|
-
<State name="Master Slide" component="#Scene">
|
19
|
-
<Add ref="#Layer"/>
|
20
|
-
<Add ref="#Camera"/>
|
21
|
-
<Add ref="#Light"/>
|
22
|
-
<Add ref="#Sphere" name="Sphere1" position="-150 60 0" sourcepath="#Sphere"/>
|
23
|
-
<Add ref="#Material" diffuse="0 0.752941 0"/>
|
24
|
-
<Add ref="#Sphere2" name="Sphere2" position="150 60.0004 0" sourcepath="#Sphere"/>
|
25
|
-
<Add ref="#Material_001" diffuse="0 0.75287 0"/>
|
26
|
-
<Add ref="#Cube" name="Cube" position="0 60 0" rotation="-30 60 -20" sourcepath="#Cube"/>
|
27
|
-
<Add ref="#Material_002" name="Material" diffuse="0.5 0 0"/>
|
28
|
-
<State id="Scene-Slide1" name="Slide1">
|
29
|
-
<Add ref="#Sphere3" name="NonMaster" position="-150 60 0" sourcepath="#Sphere"/>
|
30
|
-
<Add ref="#Material_003" diffuse="0 0.752941 0"/>
|
31
|
-
</State>
|
32
|
-
</State>
|
33
|
-
</Logic>
|
34
|
-
</Project>
|
35
|
-
</UIP>
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<UIP version="3">
|
3
|
+
<Project>
|
4
|
+
<ProjectSettings author="" company="" presentationWidth="800" presentationHeight="480" maintainAspect="False"/>
|
5
|
+
<Graph>
|
6
|
+
<Scene id="Scene">
|
7
|
+
<Layer id="Layer">
|
8
|
+
<Camera id="Camera"/>
|
9
|
+
<Light id="Light"/>
|
10
|
+
<Model id="Sphere"><Material id="Material"/></Model>
|
11
|
+
<Model id="Sphere2"><Material id="Material_001"/></Model>
|
12
|
+
<Model id="Cube"><Material id="Material_002"/></Model>
|
13
|
+
<Model id="Sphere3"><Material id="Material_003"/></Model>
|
14
|
+
</Layer>
|
15
|
+
</Scene>
|
16
|
+
</Graph>
|
17
|
+
<Logic>
|
18
|
+
<State name="Master Slide" component="#Scene">
|
19
|
+
<Add ref="#Layer"/>
|
20
|
+
<Add ref="#Camera"/>
|
21
|
+
<Add ref="#Light"/>
|
22
|
+
<Add ref="#Sphere" name="Sphere1" position="-150 60 0" sourcepath="#Sphere"/>
|
23
|
+
<Add ref="#Material" diffuse="0 0.752941 0"/>
|
24
|
+
<Add ref="#Sphere2" name="Sphere2" position="150 60.0004 0" sourcepath="#Sphere"/>
|
25
|
+
<Add ref="#Material_001" diffuse="0 0.75287 0"/>
|
26
|
+
<Add ref="#Cube" name="Cube" position="0 60 0" rotation="-30 60 -20" sourcepath="#Cube"/>
|
27
|
+
<Add ref="#Material_002" name="Material" diffuse="0.5 0 0"/>
|
28
|
+
<State id="Scene-Slide1" name="Slide1">
|
29
|
+
<Add ref="#Sphere3" name="NonMaster" position="-150 60 0" sourcepath="#Sphere"/>
|
30
|
+
<Add ref="#Material_003" diffuse="0 0.752941 0"/>
|
31
|
+
</State>
|
32
|
+
</State>
|
33
|
+
</Logic>
|
34
|
+
</Project>
|
35
|
+
</UIP>
|
data/test/properties.ruic
CHANGED
@@ -1,80 +1,80 @@
|
|
1
|
-
#!/usr/bin/env ruic
|
2
|
-
metadata 'MetaData.xml' # optional; also may be set via -m flag
|
3
|
-
uia 'projects/BMW_Cluster/BMW_Cluster.uia' # required before other commands
|
4
|
-
|
5
|
-
assert app.filename == 'BMW_Cluster.uia'
|
6
|
-
assert app.assets.length==10, "There should be 10 assets"
|
7
|
-
assert app.behaviors.length==3
|
8
|
-
assert app.presentations.length==6
|
9
|
-
|
10
|
-
assert app['#logic']
|
11
|
-
assert app['#logic'].datamodel=='{output=output}'
|
12
|
-
assert app['#logic']==app['states/logic.scxml']
|
13
|
-
assert app['#logic']==app['./states/logic.scxml']
|
14
|
-
assert app['#logic']==app['../BMW_Cluster/states/logic.scxml']
|
15
|
-
|
16
|
-
main = app['#main'] # Look up a presentation by asset id
|
17
|
-
assert main == app.main_presentation # …or ask for the main rendered presentation
|
18
|
-
assert main == app.main # …also available as a shortcut name
|
19
|
-
assert main.filename == 'BMW_Cluster.uip' # You can also ask for the full path via .file
|
20
|
-
assert main == app['BMW_Cluster.uip'] # Look up a presentation by asset id
|
21
|
-
|
22
|
-
assert !app['beejonkers'] # If an asset id doesn't exist, you'll get nil
|
23
|
-
|
24
|
-
scene = app/'main:Scene'
|
25
|
-
assert scene
|
26
|
-
assert scene==main.scene
|
27
|
-
assert scene.type == 'Scene'
|
28
|
-
assert scene.name == 'Scene'
|
29
|
-
assert scene['name'].value == 'Scene'
|
30
|
-
|
31
|
-
# Find an element based on path, prefixed with asset id
|
32
|
-
sm = app/'main:Scene.ClassicContent.ClassicContent.SimpleMedia'
|
33
|
-
assert sm.name == 'SimpleMedia'
|
34
|
-
assert sm.type == 'Model'
|
35
|
-
assert sm.path == 'main:Scene.ClassicContent.ClassicContent.SimpleMedia'
|
36
|
-
|
37
|
-
assert sm==main/'Scene.ClassicContent.ClassicContent.SimpleMedia'
|
38
|
-
|
39
|
-
assert sm.component == (main/'Scene.ClassicContent.ClassicContent')
|
40
|
-
assert sm.component.slides.length==2
|
41
|
-
assert sm.component.slides[0].name == 'Master Slide'
|
42
|
-
assert sm.component.slides[0].index == 0
|
43
|
-
assert sm.component.slides[2].name == 'CarStatus'
|
44
|
-
assert sm.component.slides[2].index == 2
|
45
|
-
assert sm.component.slides['CarStatus'].name == 'CarStatus'
|
46
|
-
assert sm.component.slides['CarStatus'] == sm.component.slides[2]
|
47
|
-
|
48
|
-
assert sm['endtime',0]==250
|
49
|
-
assert sm['endtime',1]==500
|
50
|
-
assert sm['endtime','SimpleMedia']==500
|
51
|
-
assert sm['endtime','CarStatus' ]==250
|
52
|
-
assert sm['endtime',99].nil?
|
53
|
-
|
54
|
-
assert sm['position'].linked?
|
55
|
-
assert !sm['endtime'].linked?
|
56
|
-
assert sm['endtime'].values == [250,500,250]
|
57
|
-
assert sm['endtime'].value == 250
|
58
|
-
|
59
|
-
assert sm['endtime',1]==500
|
60
|
-
assert sm['endtime','SimpleMedia']==500
|
61
|
-
assert sm['endtime','CarStatus' ]==250
|
62
|
-
|
63
|
-
sm['endtime','CarStatus'] = 750
|
64
|
-
assert sm['endtime','SimpleMedia']==500
|
65
|
-
assert sm['endtime','CarStatus' ]==750
|
66
|
-
|
67
|
-
sm['endtime'] = 100
|
68
|
-
assert sm['endtime',0]==100
|
69
|
-
assert sm['endtime',1]==100
|
70
|
-
assert sm['endtime',2]==100
|
71
|
-
|
72
|
-
assert sm['position',0].x==0
|
73
|
-
assert sm['scale',0].y == 2.88
|
74
|
-
|
75
|
-
sm['position',0].x=42
|
76
|
-
assert sm['position',0].x==42
|
77
|
-
|
78
|
-
sm['position',0].y=17
|
79
|
-
assert sm['position',0].y==17
|
80
|
-
assert sm['position',0].x==42
|
1
|
+
#!/usr/bin/env ruic
|
2
|
+
metadata 'MetaData.xml' # optional; also may be set via -m flag
|
3
|
+
uia 'projects/BMW_Cluster/BMW_Cluster.uia' # required before other commands
|
4
|
+
|
5
|
+
assert app.filename == 'BMW_Cluster.uia'
|
6
|
+
assert app.assets.length==10, "There should be 10 assets"
|
7
|
+
assert app.behaviors.length==3
|
8
|
+
assert app.presentations.length==6
|
9
|
+
|
10
|
+
assert app['#logic']
|
11
|
+
assert app['#logic'].datamodel=='{output=output}'
|
12
|
+
assert app['#logic']==app['states/logic.scxml']
|
13
|
+
assert app['#logic']==app['./states/logic.scxml']
|
14
|
+
assert app['#logic']==app['../BMW_Cluster/states/logic.scxml']
|
15
|
+
|
16
|
+
main = app['#main'] # Look up a presentation by asset id
|
17
|
+
assert main == app.main_presentation # …or ask for the main rendered presentation
|
18
|
+
assert main == app.main # …also available as a shortcut name
|
19
|
+
assert main.filename == 'BMW_Cluster.uip' # You can also ask for the full path via .file
|
20
|
+
assert main == app['BMW_Cluster.uip'] # Look up a presentation by asset id
|
21
|
+
|
22
|
+
assert !app['beejonkers'] # If an asset id doesn't exist, you'll get nil
|
23
|
+
|
24
|
+
scene = app/'main:Scene'
|
25
|
+
assert scene
|
26
|
+
assert scene==main.scene
|
27
|
+
assert scene.type == 'Scene'
|
28
|
+
assert scene.name == 'Scene'
|
29
|
+
assert scene['name'].value == 'Scene'
|
30
|
+
|
31
|
+
# Find an element based on path, prefixed with asset id
|
32
|
+
sm = app/'main:Scene.ClassicContent.ClassicContent.SimpleMedia'
|
33
|
+
assert sm.name == 'SimpleMedia'
|
34
|
+
assert sm.type == 'Model'
|
35
|
+
assert sm.path == 'main:Scene.ClassicContent.ClassicContent.SimpleMedia'
|
36
|
+
|
37
|
+
assert sm==main/'Scene.ClassicContent.ClassicContent.SimpleMedia'
|
38
|
+
|
39
|
+
assert sm.component == (main/'Scene.ClassicContent.ClassicContent')
|
40
|
+
assert sm.component.slides.length==2
|
41
|
+
assert sm.component.slides[0].name == 'Master Slide'
|
42
|
+
assert sm.component.slides[0].index == 0
|
43
|
+
assert sm.component.slides[2].name == 'CarStatus'
|
44
|
+
assert sm.component.slides[2].index == 2
|
45
|
+
assert sm.component.slides['CarStatus'].name == 'CarStatus'
|
46
|
+
assert sm.component.slides['CarStatus'] == sm.component.slides[2]
|
47
|
+
|
48
|
+
assert sm['endtime',0]==250
|
49
|
+
assert sm['endtime',1]==500
|
50
|
+
assert sm['endtime','SimpleMedia']==500
|
51
|
+
assert sm['endtime','CarStatus' ]==250
|
52
|
+
assert sm['endtime',99].nil?
|
53
|
+
|
54
|
+
assert sm['position'].linked?
|
55
|
+
assert !sm['endtime'].linked?
|
56
|
+
assert sm['endtime'].values == [250,500,250]
|
57
|
+
assert sm['endtime'].value == 250
|
58
|
+
|
59
|
+
assert sm['endtime',1]==500
|
60
|
+
assert sm['endtime','SimpleMedia']==500
|
61
|
+
assert sm['endtime','CarStatus' ]==250
|
62
|
+
|
63
|
+
sm['endtime','CarStatus'] = 750
|
64
|
+
assert sm['endtime','SimpleMedia']==500
|
65
|
+
assert sm['endtime','CarStatus' ]==750
|
66
|
+
|
67
|
+
sm['endtime'] = 100
|
68
|
+
assert sm['endtime',0]==100
|
69
|
+
assert sm['endtime',1]==100
|
70
|
+
assert sm['endtime',2]==100
|
71
|
+
|
72
|
+
assert sm['position',0].x==0
|
73
|
+
assert sm['scale',0].y == 2.88
|
74
|
+
|
75
|
+
sm['position',0].x=42
|
76
|
+
assert sm['position',0].x==42
|
77
|
+
|
78
|
+
sm['position',0].y=17
|
79
|
+
assert sm['position',0].y==17
|
80
|
+
assert sm['position',0].x==42
|