<?xml version="1.0" encoding="UTF-8" ?>

<!-- Airbus A320 for FlightGear -->
<!-- Autopilot Switching/ECAM Pedestal Panel -->

<PropertyList>

	<path>../../../Models/Instruments/SwitchECAMpanel/SwitchECAMpanel.ac</path>

	<!-- ANIMATIONS -->
	<!-- Dome lighting -->
	<animation>
		<name>Dome illumination</name>
		<type>material</type>
		<object-name>AirDataKnob</object-name>
		<object-name>AttHdgKnob</object-name>
		<object-name>Buttons</object-name>
		<object-name>ECAMLowerKnob</object-name>
		<object-name>ECAMUpperKnob</object-name>
		<object-name>EISDMCKnob</object-name>
		<object-name>Markings</object-name>
		<object-name>Panel</object-name>
		<object-name>XFRKnob</object-name>
		<emission>
			<red>0.5</red>
			<green>0.5</green>
			<blue>0.5</blue>
			<factor-prop>sim/multiplay/generic/float[0]</factor-prop>
		</emission>
	</animation>

	<!-- Panel lighting -->
	<animation>
		<name>Panel lighting select</name>
		<type>select</type>
		<object-name>MarkingLts</object-name>
		<condition>
			<or>
				<not>
					<property>sim/multiplay/generic/float[0]</property>
				</not>
				<and>
					<equals>
						<property>sim/multiplay/generic/float[0]</property>
						<value>0.5</value>
					</equals>
					<greater-than>
						<property>controls/lighting/main-panel-pedestal-norm</property>
						<value>0.25</value>
					</greater-than>
				</and>
				<and>
					<equals>
						<property>sim/multiplay/generic/float[0]</property>
						<value>1</value>
					</equals>
					<greater-than>
						<property>controls/lighting/main-panel-pedestal-norm</property>
						<value>0.5</value>
					</greater-than>
				</and>
			</or>
		</condition>
	</animation>
	<animation>
		<name>Panel no lighting select</name>
		<type>select</type>
		<object-name>Markings</object-name>
		<condition>
			<or>
				<and>
					<equals>
						<property>sim/multiplay/generic/float[0]</property>
						<value>0.5</value>
					</equals>
					<less-than-equals>
						<property>controls/lighting/main-panel-pedestal-norm</property>
						<value>0.25</value>
					</less-than-equals>
				</and>
				<and>
					<equals>
						<property>sim/multiplay/generic/float[0]</property>
						<value>1</value>
					</equals>
					<less-than-equals>
						<property>controls/lighting/main-panel-pedestal-norm</property>
						<value>0.5</value>
					</less-than-equals>
				</and>
			</or>
		</condition>
	</animation>
	<animation>
		<name>Panel lighting</name>
		<type>material</type>
		<object-name>MarkingLts</object-name>
		<emission>
			<red>1</red>
			<green>1</green>
			<blue>1</blue>
			<factor-prop>controls/lighting/main-panel-pedestal-norm</factor-prop>
		</emission>
	</animation>

</PropertyList>
