Debian Codegraph @

Aircraft/Instruments-3d/magneto-switch/mags.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5 <path>mag_switch.ac</path>
6
7 <animation>
8 <type>material</type>
9 <object-name>key</object-name>
10 <object-name>start</object-name>
11 <object-name>magsw</object-name>
12 <emission>
13 <red>0.075</red>
14 <green>0.015</green>
15 <blue>0.00001</blue>
16 <factor-prop>/sim/model/material/instruments/factor</factor-prop>
17 </emission>
18 </animation>
19
20 <!-- magneto switch -->
21 <animation>
22 <type>knob</type>
23 <object-name>click-L</object-name>
24 <object-name>click-R</object-name>
25
26 <visible>false</visible>
27 <action>
28 <binding>
29 <command>property-adjust</command>
30 <property>/controls/engines/engine/magnetos</property>
31 <factor>1</factor>
32 <min>0</min>
33 <max>3</max>
34 </binding>
35 </action>
36 <hovered>
37 <binding>
38 <command>set-tooltip</command>
39 <tooltip-id>magneto-switch</tooltip-id>
40 <label>Magnetos: %s</label>
41 <property>controls/engines/engine/magnetos</property>
42 <mapping>nasal</mapping>
43 <script>
44 var m = getprop('controls/engines/engine/magnetos');
45 if (m == 1) return 'RIGHT';
46 if (m == 2) return 'LEFT';
47 if (m == 3) return 'BOTH';
48 return 'OFF';
49 </script>
50 </binding>
51 </hovered>
52 </animation>
53
54
55 <!-- Starter -->
56 <animation>
57 <type>pick</type>
58 <object-name>click-S</object-name>
59 <visible>false</visible>
60 <action>
61 <name>starter</name>
62 <button>0</button>
63 <binding>
64 <command>property-assign</command>
65 <property>/controls/switches/starter</property>
66 <value >1</value>
67 </binding>
68 <mod-up>
69 <binding>
70 <command>property-assign</command>
71 <property>/controls/switches/starter</property>
72 <value>0</value>
73 </binding>
74 </mod-up>
75 </action>
76
77 <hovered>
78 <binding>
79 <command>set-tooltip</command>
80 <tooltip-id>starter-switch</tooltip-id>
81 <label>Engine Starter</label>
82 </binding>
83 </hovered>
84
85 </animation>
86 <!-- key animations -->
87 <animation>
88 <name>mags-key</name>
89 <type>rotate</type>
90 <object-name>key</object-name>
91 <property>/controls/engines/engine/magnetos</property>
92 <factor>30</factor>
93 <center>
94 <x-m>0</x-m>
95 <y-m>0</y-m>
96 <z-m>0</z-m>
97 </center>
98 <axis>
99 <x>-1</x>
100 <y>0</y>
101 <z>0</z>
102 </axis>
103 </animation>
104
105 <animation>
106 <type>select</type>
107 <object-name>key</object-name>
108 <condition>
109 <not>
110 <property>/controls/switches/starter</property>
111 </not>
112 </condition>
113 </animation>
114
115 <animation>
116 <type>select</type>
117 <object-name>start</object-name>
118 <condition>
119 <property>/controls/switches/starter</property>
120 </condition>
121 </animation>
122
123 </PropertyList>
124
125