Tentative fix for random buildings red flickering in some cases
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / com / com-1.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 <!-- Comm radio control
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>com.ac</path>
14
15  
16  <effect>
17     <inherits-from>Effects/model-transparent</inherits-from>
18     <object-name>base</object-name>
19  </effect>
20
21 <animation>
22   <type>select</type>
23   <object-name>d1_night</object-name>
24   <object-name>d2_night</object-name>
25   <object-name>digits_night</object-name>
26   <condition>
27     <greater-than>
28       <property>tu154/light/instruments/int-red</property>
29       <value>0.1</value>
30     </greater-than>
31   </condition>
32 </animation>
33
34 <animation>
35   <type>select</type>
36   <object-name>d1</object-name>
37   <object-name>d2</object-name>
38   <object-name>digits</object-name>
39   <condition>
40     <less-than>
41       <property>tu154/light/instruments/int-red</property>
42       <value>0.1</value>
43     </less-than>
44   </condition>
45 </animation>
46
47 <!-- Internal instruments lighting -->
48 <animation>
49   <type>material</type>
50   <object-name>d1_night</object-name>
51   <object-name>d2_night</object-name>
52   <object-name>digits_night</object-name>
53   <emission>
54     <red>0.6</red>
55   </emission>
56 </animation>
57
58 <animation>
59   <type>rotate</type>
60   <object-name>dig_f_hi</object-name>
61   <object-name>dig_f_hi_night</object-name>
62   <property>tu154/instrumentation/com-1/digit-f-hi</property>
63   <interpolation>
64     <entry><ind>        108.0</ind>     <dep>   0.0</dep></entry>
65     <entry><ind>        136.0</ind>     <dep>   349.0</dep></entry>
66   </interpolation>
67   <center>
68     <x-m>-0.0480</x-m>
69     <y-m>0.0</y-m>
70     <z-m>0.0059</z-m>
71   </center>
72   <axis>
73     <x>0.0</x>
74     <y>-1.0</y>
75     <z>0.0</z>
76   </axis>
77 </animation>
78 <animation>
79   <type>rotate</type>
80   <object-name>dig_f_low</object-name>
81   <object-name>dig_f_low_night</object-name>
82   <property>tu154/instrumentation/com-1/digit-f-low</property>
83   <interpolation>
84     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
85     <entry><ind>        95.0</ind>      <dep>   338.0</dep></entry>
86   </interpolation>
87   <center>
88     <x-m>-0.03176</x-m>
89     <y-m>0.0</y-m>
90     <z-m>0.0061</z-m>
91   </center>
92   <axis>
93     <x>0.0</x>
94     <y>-1.0</y>
95     <z>0.0</z>
96   </axis>
97 </animation>
98
99 <!--Frequency-->
100 <animation>
101   <type>pick</type>
102   <object-name>hs_1</object-name>
103   <visible>false</visible>
104   <action>
105     <button>0</button>
106     <repeatable>false</repeatable>
107     <binding>
108       <command>property-adjust</command>
109       <property>tu154/instrumentation/com-1/digit-f-hi</property>
110       <step>1.0</step>
111       <min>108.0</min>
112       <max>136.0</max>
113       <wrap>false</wrap>
114     </binding>
115   </action>
116 </animation>
117 <animation>
118   <type>pick</type>
119   <object-name>hs_2</object-name>
120   <visible>false</visible>
121   <action>
122     <button>0</button>
123     <repeatable>false</repeatable>
124     <binding>
125       <command>property-adjust</command>
126       <property>tu154/instrumentation/com-1/digit-f-hi</property>
127       <step>-1.0</step>
128       <min>108.0</min>
129       <max>136.0</max>
130       <wrap>false</wrap>
131     </binding>
132   </action>
133 </animation>
134 <animation>
135   <type>pick</type>
136   <object-name>hs_3</object-name>
137   <visible>false</visible>
138   <action>
139     <button>0</button>
140     <repeatable>false</repeatable>
141     <binding>
142       <command>property-adjust</command>
143       <property>tu154/instrumentation/com-1/digit-f-low</property>
144       <step>5.0</step>
145       <min>0.0</min>
146       <max>95.0</max>
147       <wrap>false</wrap>
148     </binding>
149   </action>
150 </animation>
151 <animation>
152   <type>pick</type>
153   <object-name>hs_4</object-name>
154   <visible>false</visible>
155   <action>
156     <button>0</button>
157     <repeatable>false</repeatable>
158     <binding>
159       <command>property-adjust</command>
160       <property>tu154/instrumentation/com-1/digit-f-low</property>
161       <step>-5.0</step>
162       <min>0.0</min>
163       <max>95.0</max>
164       <wrap>false</wrap>
165     </binding>
166   </action>
167 </animation>
168
169 <!--Sound-->
170
171 <animation>
172   <type>pick</type>
173   <object-name>handle_2</object-name>
174   <visible>true</visible>
175   <action>
176     <button>0</button>
177     <button>3</button>
178     <repeatable>false</repeatable>
179     <binding>
180       <command>property-adjust</command>
181       <property>instrumentation/comm[0]/volume</property>
182       <step>0.2</step>
183       <min>0.0</min>
184       <max>1.0</max>
185       <wrap>false</wrap>
186     </binding>
187   </action>
188 </animation>
189 <animation>
190   <type>pick</type>
191   <object-name>handle_2</object-name>
192   <visible>true</visible>
193   <action>
194     <button>1</button>
195     <button>4</button>
196     <repeatable>false</repeatable>
197     <binding>
198       <command>property-adjust</command>
199       <property>instrumentation/comm[0]/volume</property>
200       <step>-0.2</step>
201       <min>0.0</min>
202       <max>1.0</max>
203       <wrap>false</wrap>
204     </binding>
205   </action>
206 </animation>
207
208
209
210 </PropertyList>