Debian Codegraph @

Aircraft/c172p/Models/Interior/control-lock/control-lock.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5 <path>control-lock.ac</path>
6 <nopreview/>
7
8 <effect>
9 <inherits-from>Aircraft/c172p/Models/Effects/interior/lm-controllock</inherits-from>
10 <object-name>ControlLock-pocket</object-name>
11 <object-name>ControlLock-yoke</object-name>
12 </effect>
13
14 <animation>
15 <type>material</type>
16 <object-name>ControlLock-pocket</object-name>
17 <object-name>ControlLock-yoke</object-name>
18 <condition>
19 <or>
20 <not>
21 <property>sim/rendering/shaders/skydome</property>
22 </not>
23 <equals>
24 <property>sim/rendering/shaders/model</property>
25 <value>0</value>
26 </equals>
27 </or>
28 </condition>
29 <emission>
30 <red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
31 <green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
32 <blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
33 </emission>
34 </animation>
35
36 <animation>
37 <type>select</type>
38 <object-name>ControlLock-yoke</object-name>
39 <condition>
40 <property>sim/model/c172p/cockpit/control-lock-visible</property>
41 </condition>
42 </animation>
43
44 <animation>
45 <type>select</type>
46 <object-name>ControlLock-pocket</object-name>
47 <condition>
48 <not>
49 <property>sim/model/c172p/cockpit/control-lock-visible</property>
50 </not>
51 </condition>
52 </animation>
53
54 <animation>
55 <type>pick</type>
56 <object-name>ControlLock-yoke</object-name>
57 <visible>true</visible>
58 <action>
59 <button>0</button>
60 <repeatable>false</repeatable>
61 <binding>
62 <command>property-assign</command>
63 <property>sim/model/c172p/cockpit/control-lock-placed</property>
64 <value>false</value>
65 </binding>
66 <binding>
67 <command>nasal</command>
68 <script>
69 setprop("surface-positions/elevator-pos-norm", 0);
70 setprop("controls/flight/elevator-trim", 0);
71 c172p.click("control_lock", 1.2);
72 </script>
73 </binding>
74 </action>
75 <hovered>
76 <binding>
77 <command>set-tooltip</command>
78 <tooltip-id>remove-control-lock</tooltip-id>
79 <label>Remove control lock</label>
80 </binding>
81 </hovered>
82 </animation>
83
84 <animation>
85 <type>pick</type>
86 <object-name>ControlLock-pocket</object-name>
87 <visible>true</visible>
88 <action>
89 <button>0</button>
90 <repeatable>false</repeatable>
91 <binding>
92 <condition>
93 <not>
94 <property>sim/model/hide-yoke</property>
95 </not>
96 </condition>
97 <command>property-assign</command>
98 <property>sim/model/c172p/cockpit/control-lock-placed</property>
99 <value>true</value>
100 </binding>
101 <binding>
102 <command>nasal</command>
103 <script>
104 setprop("surface-positions/elevator-pos-norm", 0);
105 setprop("controls/flight/elevator-trim", 0);
106 c172p.click("control_lock", 1.2);
107 </script>
108 </binding>
109 </action>
110 <hovered>
111 <binding>
112 <command>set-tooltip</command>
113 <tooltip-id>place-control-lock</tooltip-id>
114 <label>Place control lock</label>
115 </binding>
116 </hovered>
117 </animation>
118
119 </PropertyList>