-
Notifications
You must be signed in to change notification settings - Fork 21
/
Screen_Main.xml
85 lines (84 loc) · 2.49 KB
/
Screen_Main.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="iso-8859-1"?>
<Inst N="sequencemain" T="DataDrivenSequence">
<Inst N="transition" T="DataDrivenTransition">
<Attr N="PreviousAnim">
<![CDATA[{
"Fade":[
{"Linear1D":[0.5,0,-16,"/theRenderingScreen->Brightness",0]},
{ "SetValue1D" : [0.0,0.0,"Show" ]}
]
}
]]>
</Attr>
<Attr N="NextAnim">
<![CDATA[{
"Fade":[
{ "SetValue1D" : [0.0,0.0,"Show" ]},
{ "Wait" : [ 0.5 ] },
{ "SetValue1D" : [0.0,1.0,"Show" ]},
{"Linear1D":[0.5,-16,0,"/theRenderingScreen->Brightness",0]},
{ "Notification" : [ 0 , "InitScreen" ] }
]
}
]]>
</Attr>
</Inst>
<!-- load an external 3D scene (converted with MeshConvert tool) -->
<Inst N="Scene" P="Default.xml">
<!-- set Scene priority to be > UI2DLayer priority so IHM is drawn after 3D ( in front of ) -->
<Attr N="Priority" V="30"/>
<!-- retrieve Node3D named "Light" to make some changes on it -->
<Ref P="Node3D:Light" DontAddAsSon="true">
<!-- Ask this Node3D to be "pivot" controled -->
<Upgrd N="PivotUp"/>
<!-- the pivot is set in global coordinates -->
<Attr N="IsGlobal" V="true"/>
<!-- around z axis -->
<Attr N="PivotAxis" V="[0.000000,0.000000,1.000000]"/>
<!-- animate pivot angle with an infinite loop -->
<Inst Name="animateLightPos" Type="CoreSequenceLauncher">
<Attr N="Sequence"><![CDATA[
{"animateLightPos":[
{"DoWhile":[1,
{"Linear1D":[4,0,6.28,"Angle"]} ]}
]}
]]>
</Attr>
<!-- animation sequence starts directly -->
<Attr N="StartOnFirstUpdate" V="true" />
</Inst>
</Ref>
<!-- retrieve Node3D named "Camera" -->
<Ref P="Node3D:Camera" DontAddAsSon="true">
<!-- Ask this Node3D to be "CoordinateSystem" controled -->
<Upgrd N="CoordinateSystemUp"/>
<!-- add two lua methods (slots for buttons) -->
<Lua N="MoveUp">
return function(self)
local m=v3f(0,0,0.2)
self:localMoveNode(m)
end
</Lua>
<Lua N="MoveDown">
return function(self)
local m=v3f(0,0,-0.2)
self:localMoveNode(m)
end
</Lua>
</Ref>
</Inst>
<Inst N="UILayer" T="UI2DLayer">
<Attr N="Size" V="[1280,800]"/>
<Attr N="Priority" V="10"/>
<Attr N="GlobalPriority" V="true" />
<Attr N="RenderingScreen" V="RenderingScreen:theRenderingScreen"/>
<!-- root UIItem for 2D IHM -->
<Inst N="Interface" T="UIItem">
<Attr N="Size" V="[1280,800]"/>
<!-- create buttons in LuaImporter -->
<Inst N="buttonLua" T="LuaImporter">
<Attr N="Script" V="button.lua"/>
</Inst>
</Inst>
</Inst>
</Inst>