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