<?xml version="1.0"?>
<PropertyList> 
	<path>chronograph.ac</path>

	<animation>
		<type>select</type>
		<object-name>clock</object-name>
		<condition>
			<equals>
				<property>sim/current-view/name</property>
				<value>Cockpit View</value>
			</equals>
		</condition>
	</animation>

	<animation> 
		<type>rotate</type>
		<object-name>HourHand</object-name>
		<property>instrumentation/clock/indicated-sec</property>
		<factor>0.00833333333333333</factor>
		<axis> 
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>
	<animation> 
		<type>rotate</type>
		<object-name>MinuteHand</object-name>
		<property>instrumentation/clock/indicated-sec</property>
		<factor>0.1</factor>
		<axis> 
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>
	<animation> 
		<type>rotate</type>
		<object-name>SecondHand</object-name>
		<property>instrumentation/clock/elapsed-sec</property>
		<factor>6</factor>
		<axis> 
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>
	<animation> 
		<type>rotate</type>
		<object-name>ElapsedMinutesHand</object-name>
		<property>instrumentation/clock/elapsed-sec</property>
		<factor>0.1</factor>
		<axis> 
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<!-- Clock Setting Knob -->
	<animation>
		<name>time-offset-left-fine</name>
		<type>pick</type>
		<visible>true</visible>
		<object-name>time-offset-left</object-name>
		<action>
			<button>0</button>
			<repeatable>true</repeatable>
			<interval-sec>0.2</interval-sec>
			<binding>
				<command>property-adjust</command>
				<property>instrumentation/clock/offset-sec</property>
				<step>-60</step>
			</binding>
		</action>
	</animation>
	<animation>
		<name>time-offset-left-hours</name>
		<type>pick</type>
		<visible>true</visible>
		<object-name>time-offset-left</object-name>
		<action>
			<button>1</button>
			<repeatable>true</repeatable>
			<interval-sec>0.2</interval-sec>
			<binding>
				<command>property-adjust</command>
				<property>instrumentation/clock/offset-sec</property>
				<step>-3600</step>
			</binding>
		</action>
	</animation>
	<animation>
		<name>time-offset-right-fine</name>
		<type>pick</type>
		<visible>true</visible>
		<object-name>time-offset-right</object-name>
		<action>
			<button>0</button>
			<repeatable>true</repeatable>
			<interval-sec>0.2</interval-sec>
			<binding>
				<command>property-adjust</command>
				<property>instrumentation/clock/offset-sec</property>
				<step>60</step>
			</binding>
		</action>
	</animation>
	<animation>
		<name>time-offset-right-hours</name>
		<type>pick</type>
		<visible>true</visible>
		<object-name>time-offset-right</object-name>
		<action>
			<button>1</button>
			<repeatable>true</repeatable>
			<interval-sec>0.2</interval-sec>
			<binding>
				<command>property-adjust</command>
				<property>instrumentation/clock/offset-sec</property>
				<step>3600</step>
			</binding>
		</action>
	</animation>

	<!-- Chronometer Start Stop Button -->
	<animation>
		<name>start-stop-reset</name>
		<type>pick</type>
		<visible>true</visible>
		<object-name>chronometer-button</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>nasal</command>
<!--########### change f14_chronograph by the name you declared the script
	########### chronograph.nas in your -set.xml file #################### -->
				<script>f14_chronograph.click()</script>
			</binding>
		</action>
	</animation>

	<!-- lighting -->
	<animation> 
		<object-name>mount</object-name>
		<type>material</type>
        <condition>
            <greater-than>
                <property>/fdm/jsbsim/systems/electrics/ac-essential-bus1</property>
                <value>0</value>
            </greater-than>
            <not>
                <property>sim/rendering/rembrandt/enabled</property>
            </not>
        </condition>
        <emission>
            <factor-prop>controls/lighting/panel-norm</factor-prop>
            <red>0.55</red>
            <green>0.24</green>
            <blue>0.10</blue>
        </emission>
    </animation>
    <animation>
        <object-name>knob</object-name>
        <type>material</type>
        <condition>
            <greater-than>
                <property>/fdm/jsbsim/systems/electrics/ac-essential-bus1</property>
                <value>0</value>
            </greater-than>
            <not>
                <property>sim/rendering/rembrandt/enabled</property>
            </not>
        </condition>
        <emission>
            <factor-prop>controls/lighting/panel-norm</factor-prop>
            <red>0.55</red>
            <green>0.24</green>
            <blue>0.10</blue>
        </emission>
    </animation>
    <animation>
        <object-name>button</object-name>
        <type>material</type>
        <condition>
            <greater-than>
                <property>/fdm/jsbsim/systems/electrics/ac-essential-bus1</property>
                <value>0</value>
            </greater-than>
            <not>
                <property>sim/rendering/rembrandt/enabled</property>
            </not>
        </condition>
        <emission>
            <factor-prop>controls/lighting/panel-norm</factor-prop>
            <red>0.55</red>
            <green>0.24</green>
            <blue>0.10</blue>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>face</object-name>
        <condition>
            <greater-than>
                <property>/fdm/jsbsim/systems/electrics/ac-essential-bus1</property>
                <value>0</value>
            </greater-than>
            <not>
                <property>sim/rendering/rembrandt/enabled</property>
            </not>
        </condition>
        <emission>
            <factor-prop>controls/lighting/instruments-norm</factor-prop>
            <red>0.55</red>
            <green>0.24</green>
            <blue>0.10</blue>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>needles</object-name>
        <condition>
            <greater-than>
                <property>/fdm/jsbsim/systems/electrics/ac-essential-bus1</property>
                <value>0</value>
            </greater-than>
            <not>
                <property>sim/rendering/rembrandt/enabled</property>
            </not>
        </condition>
        <emission> 
			<factor-prop>controls/lighting/instruments-norm</factor-prop>
			<red>0.55</red>
			<green>0.24</green>
			<blue>0.10</blue>
		</emission>
	</animation>


	<!--  LoD  -->
	<animation> 
		<type>range</type>
		<min-m>0</min-m>
		<max-m>35</max-m>
	</animation>
</PropertyList>
