Pilatus PC 12/47 : Adding a livery "Orange", improved dashboard.
[fg:toms-fgdata.git] / Aircraft / PC-12 / Models / Interior / Panel / Instruments / altset / altset.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <PropertyList>
3
4     <path>altset.ac</path>
5
6   <animation>
7     <object-name>AltSet.bezel</object-name>
8     <object-name>AltSet.cancel</object-name>
9     <object-name>AltSet.knob</object-name>
10   </animation>
11
12   <animation>
13     <type>material</type>
14     <object-name>AltSet.cancel</object-name>
15     <object-name>APalt</object-name>
16     <object-name>APalt1</object-name>
17     <object-name>APalt2</object-name>
18     <object-name>APalt3</object-name>
19     <object-name>APalt4</object-name>
20     <object-name>APalt5</object-name>
21     <emission>
22       <!-- <factor-prop>/systems/electrical/outputs/instrument-lights</factor-prop> -->
23       <red>   0.50 </red>
24       <green> 0.25 </green>
25       <blue>  0.25 </blue>
26     </emission>
27   </animation>
28
29   <animation>
30     <type>textranslate</type>
31     <object-name>APalt1</object-name>
32     <property>instrumentation/flightdirector/Asel</property>
33     <factor> 0.00001 </factor>
34     <step> 10000 </step>
35     <axis>
36       <x> 0 </x>
37       <y> 1 </y>
38       <z> 0 </z>
39     </axis>
40   </animation>
41
42   <animation>
43     <type>textranslate</type>
44     <object-name>APalt2</object-name>
45     <property>instrumentation/flightdirector/Asel</property>
46     <factor>0.0001</factor>
47     <step>1000</step>
48     <axis>
49       <x> 0 </x>
50       <y> 1 </y>
51       <z> 0 </z>
52     </axis>
53   </animation>
54
55   <animation>
56     <type>textranslate</type>
57     <object-name>APalt3</object-name>
58     <property>instrumentation/flightdirector/Asel</property>
59     <factor>0.001</factor>
60     <step>100</step>
61     <axis>
62       <x> 0 </x>
63       <y> 1 </y>
64       <z> 0 </z>
65     </axis>
66   </animation>
67
68   <animation>
69     <type>textranslate</type>
70     <object-name>APalt4</object-name>
71     <property>instrumentation/flightdirector/Asel</property>
72     <factor>0.01</factor>
73     <step>10</step>
74     <axis>
75       <x> 0 </x>
76       <y> 1 </y>
77       <z> 0 </z>
78     </axis>
79   </animation>
80
81   <animation>
82     <type>textranslate</type>
83     <object-name>APalt5</object-name>
84     <property>instrumentation/flightdirector/Asel</property>
85     <factor>0.1</factor>
86     <step>1</step>
87     <axis>
88       <x> 0 </x>
89       <y> 1 </y>
90       <z> 0 </z>
91     </axis>
92   </animation>
93
94   <!-- Hotspots -->
95   <animation>
96     <type>pick</type>
97     <object-name>AltSet.cancel</object-name>
98     <action>
99       <button>0</button>
100       <binding>
101         <command>nasal</command>
102         <script>systems.FlDr.preset_altitude(0)</script>
103       </binding>
104       <binding>
105         <command>property-assign</command>
106         <property>autopilot/settings/target-altitude-ft</property>
107         <value>0.0</value>
108       </binding>
109     </action>
110   </animation>
111
112   <animation>
113     <type>pick</type>
114     <object-name>AltSet.knob</object-name>
115     <action>
116       <button>0</button>
117       <repeatable>true</repeatable>
118       <interval-sec>0.2</interval-sec>
119       <binding>
120         <condition>
121           <not>
122             <property>devices/status/keyboard/shift</property>
123           </not>
124         </condition>
125         <command>nasal</command>
126         <script>systems.FlDr.preset_altitude(100)</script>
127       </binding>
128       <binding>
129         <condition>
130           <property>devices/status/keyboard/shift</property>
131         </condition>
132         <command>nasal</command>
133         <script>systems.FlDr.preset_altitude(1000)</script>
134       </binding>
135     </action>
136   </animation>
137
138   <animation>
139     <type>pick</type>
140     <object-name>AltSet.knob</object-name>
141     <action>
142       <button>1</button>
143       <repeatable>true</repeatable>
144       <interval-sec>0.2</interval-sec>
145       <binding>
146         <condition>
147           <not>
148             <property>devices/status/keyboard/shift</property>
149           </not>
150         </condition>
151         <command>nasal</command>
152         <script>systems.FlDr.preset_altitude(-100)</script>
153       </binding>
154       <binding>
155         <condition>
156           <property>devices/status/keyboard/shift</property>
157         </condition>
158         <command>nasal</command>
159         <script>systems.FlDr.preset_altitude(-1000)</script>
160       </binding>
161     </action>
162   </animation>
163   
164   <animation>
165     <type>pick</type>
166     <object-name>AltSet.knob</object-name>
167     <action>
168       <button>3</button>
169       <binding>
170         <condition>
171           <not>
172             <property>devices/status/keyboard/shift</property>
173           </not>
174         </condition>
175         <command>nasal</command>
176         <script>systems.FlDr.preset_altitude(100)</script>
177       </binding>
178       <binding>
179         <condition>
180           <property>devices/status/keyboard/shift</property>
181         </condition>
182         <command>nasal</command>
183         <script>systems.FlDr.preset_altitude(1000)</script>
184       </binding>
185     </action>
186   </animation>
187   
188   <animation>
189     <type>pick</type>
190     <object-name>AltSet.knob</object-name>
191     <action>
192       <button>4</button>
193       <binding>
194         <condition>
195           <not>
196             <property>devices/status/keyboard/shift</property>
197           </not>
198         </condition>
199         <command>nasal</command>
200         <script>systems.FlDr.preset_altitude(-100)</script>
201       </binding>
202       <binding>
203         <condition>
204           <property>devices/status/keyboard/shift</property>
205         </condition>
206         <command>nasal</command>
207         <script>systems.FlDr.preset_altitude(-1000)</script>
208       </binding>
209     </action>
210   </animation>
211   
212 </PropertyList>