Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / skawk / skawk.xml
1 <?xml version="1.0"?>
2 <!--
3     #############################################################################
4     #    (C) 2007 by Yurik V. Nikiforoff - port for FGFS,  FDM,                 #
5     #   2d & 3d instruments, animations, systems and over.                      #
6     #           yurik@megasignal.com                                            #
7     #############################################################################         
8     -->
9
10 <!-- Skawk control
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>skawk.ac</path>
14 <!--External panel lighting-->
15 <animation>
16   <type>material</type>
17   <object-name>base</object-name>
18     <emission>
19     <red-prop>tu154/light/panel/ext-red</red-prop>
20     <green-prop>tu154/light/panel/ext-green</green-prop>
21     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
22   </emission>
23 </animation>
24
25 <!-- Internal instruments lighting -->
26 <animation>
27   <type>material</type>
28   <object-name>text</object-name>
29   <object-name>handle_1</object-name>
30   <object-name>handle_2</object-name>
31   <object-name>handle_3</object-name>
32   <object-name>handle_4</object-name>
33   <object-name>handle_5</object-name>
34   <emission>
35     <red-prop>tu154/light/instruments/int-red</red-prop>
36     <green-prop>tu154/light/instruments/int-green</green-prop>
37     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
38   </emission>
39 </animation>
40
41 <animation>
42   <type>knob</type>
43   <object-name>handle_1</object-name>
44   <property>tu154/instrumentation/skawk/handle-1</property>
45   <interpolation>
46     <entry><ind>        0.0</ind>       <dep>   -90.0</dep></entry>
47     <entry><ind>        7.0</ind>       <dep>   120.0</dep></entry>
48   </interpolation>
49   <visible>true</visible>
50   <action>
51     <binding>
52       <command>property-adjust</command>
53       <property>tu154/instrumentation/skawk/handle-1</property>
54       <min>0</min>
55       <max>7</max>
56     </binding>
57   </action>
58   <center>
59     <x-m>0.0</x-m>
60     <y-m>-0.057232</y-m>
61     <z-m>-0.028</z-m>
62   </center>
63   <axis>
64     <x>-1.0</x>
65     <y>0.0</y>
66     <z>0.0</z>
67   </axis>
68 </animation>
69 <animation>
70   <type>knob</type>
71   <object-name>handle_2</object-name>
72   <property>tu154/instrumentation/skawk/handle-2</property>
73   <interpolation>
74     <entry><ind>        0.0</ind>       <dep>   -120.0</dep></entry>
75     <entry><ind>        7.0</ind>       <dep>   90.0</dep></entry>
76   </interpolation>
77   <action>
78     <binding>
79       <command>property-adjust</command>
80       <property>tu154/instrumentation/skawk/handle-2</property>
81       <min>0</min>
82       <max>7</max>
83     </binding>
84   </action>
85   <center>
86     <x-m>0.0</x-m>
87     <y-m>-0.020602</y-m>
88     <z-m>-0.03234</z-m>
89   </center>
90   <axis>
91     <x>-1.0</x>
92     <y>0.0</y>
93     <z>0.0</z>
94   </axis>
95 </animation>
96 <animation>
97   <type>knob</type>
98   <object-name>handle_3</object-name>
99   <property>tu154/instrumentation/skawk/handle-3</property>
100   <interpolation>
101     <entry><ind>        0.0</ind>       <dep>   -90.0</dep></entry>
102     <entry><ind>        7.0</ind>       <dep>   120.0</dep></entry>
103   </interpolation>
104   <action>
105     <binding>
106       <command>property-adjust</command>
107       <property>tu154/instrumentation/skawk/handle-3</property>
108       <min>0</min>
109       <max>7</max>
110     </binding>
111   </action>
112   <center>
113     <x-m>0.0</x-m>
114     <y-m>0.016865</y-m>
115     <z-m>-0.03234</z-m>
116   </center>
117   <axis>
118     <x>-1.0</x>
119     <y>0.0</y>
120     <z>0.0</z>
121   </axis>
122 </animation>
123 <animation>
124   <type>knob</type>
125   <object-name>handle_4</object-name>
126   <property>tu154/instrumentation/skawk/handle-4</property>
127   <interpolation>
128     <entry><ind>        0.0</ind>       <dep>   -120.0</dep></entry>
129     <entry><ind>        7.0</ind>       <dep>   90.0</dep></entry>
130   </interpolation>
131   <action>
132     <binding>
133       <command>property-adjust</command>
134       <property>tu154/instrumentation/skawk/handle-4</property>
135       <min>0</min>
136       <max>7</max>
137     </binding>
138   </action>
139   <center>
140     <x-m>0.0</x-m>
141     <y-m>0.053828</y-m>
142     <z-m>-0.028</z-m>
143   </center>
144   <axis>
145     <x>-1.0</x>
146     <y>0.0</y>
147     <z>0.0</z>
148   </axis>
149 </animation>
150
151 <animation>
152   <type>knob</type>
153   <object-name>handle_5</object-name>
154   <property>tu154/instrumentation/skawk/handle-5</property>
155   <interpolation>
156     <entry><ind>        0.0</ind>       <dep>   -120.0</dep></entry>
157     <entry><ind>        7.0</ind>       <dep>   90.0</dep></entry>
158   </interpolation>
159   <action>
160     <binding>
161       <command>property-adjust</command>
162       <property>tu154/instrumentation/skawk/handle-5</property>
163       <min>0</min>
164       <max>3</max>
165     </binding>
166   </action>
167   <hovered>
168     <binding>
169       <command>set-tooltip</command>
170       <tooltip-id>squawk-mode</tooltip-id>
171       <label>Transponder mode: %s</label>
172       <property>tu154/instrumentation/skawk/handle-5</property>
173       <mapping>nasal</mapping>
174       <script>
175         var modes = ['on', 'standby', 'altitude', 'ground'];
176         return modes[arg[0]];
177       </script>
178     </binding>
179   </hovered>
180   <center>
181     <x-m>0.0</x-m>
182     <y-m>0.0</y-m>
183     <z-m>0.0072</z-m>
184   </center>
185   <axis>
186     <x>-1.0</x>
187     <y>0.0</y>
188     <z>0.0</z>
189   </axis>
190 </animation>
191
192 </PropertyList>