<?xml version="1.0"?>

<PropertyList>

    <path>digitalclockleft.ac</path>

    <effect>
        <inherits-from>Models/Effects/interior/cockpit-interior-shadows</inherits-from>
        <object-name>Case</object-name>
        <object-name>fasteners</object-name>
        <object-name>DigitalClock</object-name>
        <object-name>KnobLeft</object-name>
        <object-name>KnobCenter</object-name>
        <object-name>KnobRight</object-name>
    </effect>
    <!--effect>
        <inherits-from>Models/Effects/interior/cockpit-flashlight</inherits-from>
        <object-name>HR.001</object-name>
        <object-name>HR.002</object-name>
        <object-name>M877.colon</object-name>
        <object-name>M877.timerind</object-name>
        <object-name>MN.001</object-name>
        <object-name>MN.002</object-name>
    </effect-->
    <effect>
        <inherits-from>Models/Effects/interior/interior-glass-reflection-panel-front</inherits-from>
        <object-name>Glass</object-name>
    </effect>

    <!--animation>
        <type>material</type>
        <object-name>DigitalClock</object-name>
        <object-name>HR.001</object-name>
        <object-name>HR.002</object-name>
        <object-name>MN.001</object-name>
        <object-name>MN.002</object-name>
        <object-name>Case</object-name>
        <condition>
            <not>
                <property>/sim/rendering/shaders/skydome</property>
            </not>
        </condition>
       <emission>
            <red-prop>/sim/model/material/instruments/default-red-combined-factor</red-prop>
            <green-prop>/sim/model/material/instruments/default-green-combined-factor</green-prop>
            <blue-prop>/sim/model/material/instruments/default-blue-combined-factor</blue-prop>
        </emission>
    </animation-->
    
    <animation>
        <type>select</type>
        <object-name>M877.timerind</object-name>
        <condition>
            <equals>
                <property>instrumentation/clock/lc2/mode-string</property>
                <value>ET</value>
            </equals>
        </condition>
    </animation>
    
    <animation>
        <type>select</type>
        <object-name>M877.colon</object-name>
        <condition>
            <property>instrumentation/clock/lc2/power</property>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>HR.001</object-name>
        <condition>
            <property>instrumentation/clock/lc2/digit[3]</property>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>HR.002</object-name>
        <condition>
            <property>instrumentation/clock/lc2/digit[2]</property>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>MN.001</object-name>
        <condition>
            <property>instrumentation/clock/lc2/digit[1]</property>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>MN.002</object-name>
        <condition>
            <property>instrumentation/clock/lc2/digit[0]</property>
        </condition>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>HR.001</object-name>
        <property>instrumentation/clock/lc2/indicated-hour</property>
        <factor>0.01</factor>
        <step>10</step>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>HR.002</object-name>
        <property>instrumentation/clock/lc2/indicated-hour</property>
        <factor>0.1</factor>
        <step>1</step>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>MN.001</object-name>
        <property>instrumentation/clock/lc2/indicated-min</property>
        <factor>0.01</factor>
        <step>10</step>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>MN.002</object-name>
        <property>instrumentation/clock/lc2/indicated-min</property>
        <factor>0.1</factor>
        <step>1</step>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>
    
    <animation>
        <type>pick</type>
        <object-name>KnobLeft</object-name>
         <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>clock.astrotech.left_knob();</script>
            </binding>
        </action>
    </animation>
    
    <animation>
        <type>pick</type>
        <object-name>KnobCenter</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>clock.astrotech.select_mode();</script>
            </binding>
        </action>
    </animation>
    
    <animation>
        <type>pick</type>
        <object-name>KnobRight</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>clock.astrotech.right_knob();</script>
            </binding>
        </action>
    </animation>
</PropertyList>
