<?xml version="1.0"?>
<!--
    This file is part of do228

    The do228 is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    The do228 is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with do228.  If not, see <http://www.gnu.org/licenses/>.

    Dornier DO228 simulation by Benedikt Wolf (D-ECHO)
    Started 06/2020
-->

<PropertyList>

	<path>pneumatic.ac</path>
	
	<!--	EFFECTS	-->
	<effect>
		<inherits-from>Effects/model-transparent</inherits-from>
		<object-name>pneumatic.lit</object-name>
	</effect>
	
	<!--	ANIMATIONS	-->
	<!--	Lighting	-->
	<animation>
		<type>material</type>
		<object-name>pneumatic.lit</object-name>
		<emission>
			<red>1</red>
			<green>1</green>
			<blue>1</blue>
			<factor-prop>systems/electrical/lights/panel-lights[1]</factor-prop>
		</emission>
	</animation>
	<!--	Sliders	-->
	<animation>
		<type>slider</type>
		<object-name>lever.cockpit_air</object-name>
		<drag-direction>vertical</drag-direction>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>controls/pneumatic/cockpit-air</property>
				<factor>0.05</factor>
				<min>0.0</min>
				<max>1.0</max>
				<wrap>0</wrap>
			</binding>
		</action>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>lever.cockpit_air</object-name>
		<property>controls/pneumatic/cockpit-air</property>
		<factor>-60</factor>
		<center>
			<x-m>-0.04</x-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
	</animation>
	<animation>
		<type>slider</type>
		<object-name>lever.demisting</object-name>
		<drag-direction>vertical</drag-direction>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>controls/pneumatic/demist</property>
				<factor>0.05</factor>
				<min>0.1</min>
				<max>1.0</max>
			</binding>
		</action>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>lever.demisting</object-name>
		<property>controls/pneumatic/demist</property>
		<offset-deg>6.67</offset-deg>
		<factor>-66.67</factor>
		<center>
			<x-m>-0.04</x-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
	</animation>
	
	<!--	Temp Select Knob	-->
	<animation>
		<type>knob</type>
		<object-name>knob.temp_select</object-name>
		<property>controls/pneumatic/auto-temp-select</property>
		<factor>-300</factor>
		<offset-deg>150</offset-deg>
		<center>
			<y-m>-0.011997</y-m>
			<z-m>-0.013696</z-m>
		</center>
		<axis>
			<x>1</x>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>controls/pneumatic/auto-temp-select</property>
				<factor>0.025</factor>
				<min>0</min>
				<max>1</max>
				<wrap>0</wrap>
			</binding>
		</action>
	</animation>
	
	<!--	Switches	-->
	<animation>
		<type>knob</type>
		<object-name>switch.bleedair.lh</object-name>
		<property>controls/pneumatic/engine[0]/bleed</property>
		<factor>-44</factor>
		<center>
			<x-m> 0.002555</x-m>
			<z-m> 0.0191</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-toggle</command>
				<property>controls/pneumatic/engine[0]/bleed</property>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>switch.bleedair.rh</object-name>
		<property>controls/pneumatic/engine[1]/bleed</property>
		<factor>-44</factor>
		<center>
			<x-m> 0.002555</x-m>
			<z-m> 0.0191</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-toggle</command>
				<property>controls/pneumatic/engine[1]/bleed</property>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>switch.air_cond.1</object-name>
		<property>controls/pneumatic/air-cond-select</property>
		<factor>-22</factor>
		<center>
			<x-m> 0.002555</x-m>
			<z-m> 0.0191</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>controls/pneumatic/air-cond-select</property>
				<factor>1</factor>
				<min>-1</min>
				<max>1</max>
				<wrap>0</wrap>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>switch.air_cond.2</object-name>
		<property>controls/pneumatic/air-cond</property>
		<factor>-44</factor>
		<center>
			<x-m> 0.002555</x-m>
			<z-m> 0.0191</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-toggle</command>
				<property>controls/pneumatic/air-cond</property>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>switch.cockpit_heat</object-name>
		<property>controls/pneumatic/cockpit-heat</property>
		<factor>-44</factor>
		<center>
			<x-m> 0.002555</x-m>
			<z-m> 0.0191</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-toggle</command>
				<property>controls/pneumatic/cockpit-heat</property>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>switch.cabin_heat</object-name>
		<property>controls/pneumatic/cabin-heat</property>
		<factor>-44</factor>
		<center>
			<x-m> 0.002555</x-m>
			<z-m> 0.0191</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-toggle</command>
				<property>controls/pneumatic/cabin-heat</property>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>switch.temp_mode</object-name>
		<property>controls/pneumatic/temp-mode</property>
		<factor>-44</factor>
		<center>
			<x-m> 0.002555</x-m>
			<z-m> 0.019487</z-m>
		</center>
		<axis>
			<z>1</z>
		</axis>
		<action>
			<binding>
				<command>property-toggle</command>
				<property>controls/pneumatic/cabin-heat</property>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>switch.man_contr</object-name>
		<property>controls/pneumatic/manual-control</property>
		<factor>-22</factor>
		<center>
			<x-m> 0.002555</x-m>
			<z-m>-0.013767</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>controls/pneumatic/manual-control</property>
				<factor>1</factor>
				<min>-1</min>
				<max>1</max>
				<wrap>0</wrap>
			</binding>
		</action>
	</animation>
    
</PropertyList>
