<?xml version="1.0"?>

<!-- Additional HUD features -->

<PropertyList>

	<path>hud.ac</path>

	<animation>
		<type>select</type>
		<object-name>hud</object-name>
		<condition>
			<equals>
				<property>sim/current-view/name</property>
				<value>Cockpit View</value>
			</equals>
			<property>sim/hud/visibility[1]</property>
		</condition>
	</animation>

	<!-- Diamond -->
	<animation>
		<type>select</type>
		<object-name>lock-1</object-name>
		<condition>
			<property>sim/model/f-14b/instrumentation/radar-awg-9/hud/target-display</property>
			<not><property>instrumentation/radar/radar-standby</property></not>
			<property>sim/model/f-14b/lighting/warn-fast-lights-switch/state</property>
		</condition>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>lock-1</object-name>
		<property>sim/model/f-14b/instrumentation/radar-awg-9/hud/target-total-angle</property>
		<axis><x>-1</x></axis>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>lock-1</object-name>
		<property>sim/model/f-14b/instrumentation/radar-awg-9/hud/target-total-deviation</property>
		<factor>1</factor>
		<axis>
			<z>1</z>
		</axis>
	</animation>
	<animation><!-- post-rotate in inverse direction to keep the diamond vertical -->
		<type>rotate</type>
		<object-name>lock-1</object-name>
		<property>sim/model/f-14b/instrumentation/radar-awg-9/hud/target-total-angle</property>
		<axis><x>1</x></axis>
	</animation>

	<!-- Weapons labels -->
	<animation>
		<type>select</type>
		<object-name>master-arm-locked</object-name>
		<condition>
			<not>
				<equals>
					<property>sim/model/f-14b/controls/armament/master-arm-switch</property>
					<value>2</value>
				</equals>
			</not>
			<not>
				<equals>
					<property>sim/model/f-14b/controls/armament/stick-selector</property>
					<value>0</value>
				</equals>
			</not>
			<property>sim/model/f-14b/controls/pilots-displays/mode/aa-bt</property>
		</condition>
	</animation>
	<animation>
		<type>select</type>
		<object-name>g-label</object-name>
		<condition>
			<equals>
				<property>sim/model/f-14b/controls/armament/stick-selector</property>
				<value>1</value>
			</equals>
			<property>sim/model/f-14b/controls/pilots-displays/mode/aa-bt</property>
		</condition>
	</animation>
	<animation>
		<type>select</type>
		<object-name>sw-label</object-name>
		<condition>
			<equals>
				<property>sim/model/f-14b/controls/armament/stick-selector</property>
				<value>2</value>
			</equals>
			<property>sim/model/f-14b/controls/pilots-displays/mode/aa-bt</property>
		</condition>
	</animation>
	<animation>
		<type>select</type>
		<object-name>sp-label</object-name>
		<condition>
			<equals>
				<property>sim/model/f-14b/controls/armament/stick-selector</property>
				<value>3</value>
			</equals>
			<property>sim/model/f-14b/controls/pilots-displays/mode/aa-bt</property>
		</condition>
	</animation>
	<animation>
		<type>select</type>
		<object-name>arm-digit</object-name>
		<condition>
			<greater-than>
				<property>sim/model/f-14b/controls/armament/stick-selector</property>
				<value>0</value>
			</greater-than>
			<property>sim/model/f-14b/controls/pilots-displays/mode/aa-bt</property>
		</condition>
	</animation>
	<animation>
		<type>select</type>
		<object-name>piper</object-name>
		<condition>
			<equals>
				<property>sim/model/f-14b/controls/armament/stick-selector</property>
				<value>1</value>
			</equals>
			<property>sim/model/f-14b/controls/pilots-displays/mode/aa-bt</property>
		</condition>
	</animation>

	<!-- Tacan -->
	<animation>
		<type>select</type>
		<object-name>tacan-to</object-name>
		<condition>
			<and>
				<property>sim/model/f-14b/instrumentation/hsd/to-flag</property>
				<property>instrumentation/tacan/in-range</property>
				<or>
					<equals>
						<property>sim/model/f-14b/instrumentation/tacan/mode</property>
						<value>1</value>
					</equals>
					<equals>
						<property>sim/model/f-14b/instrumentation/tacan/mode</property>
						<value>2</value>
					</equals>
				</or>
				<property>sim/model/f-14b/controls/pilots-displays/mode/cruise-bt</property>
			</and>
		</condition>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>tacan-to</object-name>
		<property>sim/model/f-14b/instrumentation/hsd/needle-deflection</property>
		<interpolation>
			<entry><ind>-10</ind><dep>-0.0606</dep></entry>
			<entry><ind>0</ind><dep>0</dep></entry>
			<entry><ind>10</ind><dep>0.0606</dep></entry>
		</interpolation>
		<axis><y>1</y></axis>
	</animation>

	<animation>
		<type>select</type>
		<object-name>tacan-from</object-name>
		<condition>
			<and>
				<property>sim/model/f-14b/instrumentation/hsd/from-flag</property>
				<property>instrumentation/tacan/in-range</property>
				<or>
					<equals>
						<property>sim/model/f-14b/instrumentation/tacan/mode</property>
						<value>1</value>
					</equals>
					<equals>
						<property>sim/model/f-14b/instrumentation/tacan/mode</property>
						<value>2</value>
					</equals>
				</or>
				<property>sim/model/f-14b/controls/pilots-displays/mode/cruise-bt</property>
			</and>
		</condition>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>tacan-from</object-name>
		<property>sim/model/f-14b/instrumentation/hsd/needle-deflection</property>
		<interpolation>
			<entry><ind>-10</ind><dep>0.0606</dep></entry>
			<entry><ind>0</ind><dep>0</dep></entry>
			<entry><ind>10</ind><dep>-0.0606</dep></entry>
		</interpolation>
		<axis><y>1</y></axis>
	</animation>


	<!-- lighting -->
	<animation>
		<object-name>hud</object-name>
		<type>material</type>
		<emission>
			<factor-prop>sim/model/f-14b/controls/hud/intens</factor-prop>
			<red-prop>sim/hud/color/red</red-prop>
			<green-prop>sim/hud/color/green</green-prop>
			<blue-prop>sim/hud/color/blue</blue-prop>
		</emission>
		<transparency>
			<!-- <alpha-prop>sim/hud/color/alpha</alpha-prop> -->
			<alpha-prop>sim/model/f-14b/controls/hud/intens</alpha-prop>
		</transparency>
	</animation>



</PropertyList>
