Update and add flashlight
[fgdata-textures-ng:fgdata-textures-ng.git] / Aircraft / Hurricane / Models / dimmer.xml
1 <?xml version="1.0"?>
2 <PropertyList>
3         <path>dimmer.ac</path>
4
5   <animation>
6     <type>material</type>
7     <condition>
8       <greater-than>
9         <property>/controls/lighting/panel-norm[1]</property>
10         <value>0</value>
11       </greater-than>
12       <property>/sim/rendering/rembrandt</property>
13     </condition>
14     <emission>
15       <factor-prop>/controls/lighting/panel-norm</factor-prop>
16       <red>0.0</red>
17       <green>0.0</green>
18       <blue>0.0</blue>
19     </emission>
20   </animation>
21
22   <animation>
23     <type>material</type>
24     <condition>
25       <greater-than>
26         <property>/controls/lighting/panel-norm</property>
27         <value>0</value>
28       </greater-than>
29       <not>
30         <property>/sim/rendering/rembrandt</property>
31       </not>
32     </condition>
33     <emission>
34       <factor-prop>/controls/lighting/panel-norm</factor-prop>
35       <red>0.75</red>
36       <green>0.25</green>
37       <blue>0.25</blue>
38     </emission>
39   </animation>
40         <animation>
41                 <type>rotate</type>
42                 <object-name>Knob</object-name>
43                 <property>controls/lighting/panel-norm</property>
44                 <interpolation>
45                         <entry>
46                                 <ind>0.0</ind>
47                                 <dep>-160</dep>
48                         </entry>
49                         <entry>
50                                 <ind>1.0</ind>
51                                 <dep>160</dep>
52                         </entry>
53                 </interpolation>
54                 <axis>
55                         <x>0</x>
56                         <y>-1</y>
57                         <z>0</z>
58                 </axis>
59         </animation>
60         
61         <animation>
62                 <type>pick</type>
63                 <object-name>Increase</object-name>
64                 <visible>false</visible>
65                 <action>
66                         <button>0</button>
67                         <repeatable>false</repeatable>
68                         <binding>
69                                 <command>property-adjust</command>
70                                 <property>/controls/lighting/panel-norm</property>
71                                 <step>0.1</step>
72                                 <min>0</min>
73                                 <max>1</max>
74                                 <wrap>0</wrap>
75                         </binding>
76       <binding>
77         <command>property-adjust</command>
78         <property>/controls/lighting/panel-norm[1]</property>
79         <step>0.1</step>
80         <min>0</min>
81         <max>1</max>
82         <wrap>0</wrap>
83       </binding>
84                 </action>
85         </animation>
86
87         <animation>
88                 <type>pick</type>
89                 <object-name>Decrease</object-name>
90                 <visible>false</visible>
91                 <action>
92                         <button>0</button>
93                         <repeatable>false</repeatable>
94                         <binding>
95                                 <command>property-adjust</command>
96                                 <property>/controls/lighting/panel-norm</property>
97                                 <step>-0.1</step>
98                                 <min>0</min>
99                                 <max>1</max>
100                                 <wrap>0</wrap>
101                         </binding>
102       <binding>
103         <command>property-adjust</command>
104         <property>/controls/lighting/panel-norm[1]</property>
105         <step>-0.1</step>
106         <min>0</min>
107         <max>1</max>
108         <wrap>0</wrap>
109       </binding>
110                 </action>
111         </animation>
112         
113         
114 </PropertyList>
115
116 <!--<action> 
117               <name>panel brighter</name>
118               <button>0</button>
119               <x>-350</x>
120               <y>370</y>
121               <w>30</w>
122               <h>60</h>
123               <binding> 
124                 <command>property-adjust</command>
125                 <property>/controls/lighting/panel-norm</property>
126                 <step>0.1</step>
127                 <min>0</min>
128                 <max>1</max>
129                 <wrap>0</wrap>
130               </binding>
131             </action>
132             <action> 
133               <name>panel dimmer</name>
134               <button>0</button>
135               <x>-380</x>
136               <y>370</y>
137               <w>30</w>
138               <h>60</h>
139               <binding> 
140                 <command>property-adjust</command>
141                 <property>/controls/lighting/panel-norm</property>
142                 <step>-0.1</step>
143                 <min>0</min>
144                 <max>1</max>
145                 <wrap>0</wrap>
146               </binding>
147             </action>-->