<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>
  <path>clock.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>knob</object-name>
    <object-name>face</object-name>
    <object-name>secondhand</object-name>
    <object-name>hourhand</object-name>
    <object-name>minutehand</object-name>
    <object-name>reminder.red</object-name>
    <object-name>reminder.blue</object-name>

    <object-name>reminder.plus</object-name>
    <object-name>reminder.minus</object-name>
    <object-name>CLOCK.minus</object-name>
    <object-name>CLOCK.plus</object-name>

    <object-name>vitre</object-name>
  </animation>

  <!-- working for Rembrandt -->
  <effect>
    <inherits-from>Aircraft/Nakajima-B5N/Models/Effects/Glass/glass</inherits-from>
    <object-name>vitre</object-name>
  </effect>
  
  <animation>
    <type>material</type>
    <object-name>face</object-name>
    <object-name>secondhand</object-name>
    <object-name>hourhand</object-name>
    <object-name>minutehand</object-name>
    <object-name>reminder.red</object-name>
    <object-name>reminder.blue</object-name>
    <emission>
      <factor-prop>/systems/electrical/outputs/instrument-lights</factor-prop>
      <factor-prop>/sim/model//material/instruments/factor</factor-prop>
      <red>   0.50 </red>
      <green> 0.25 </green>
      <blue>  0.25 </blue>
    </emission>
  </animation>
 
  <animation>
    <type>rotate</type>
    <object-name>hourhand</object-name>
    <property>/instrumentation/clock/indicated-sec</property>
    <factor> 0.00833333333333 </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/indicated-sec</property>
    <factor> 6 </factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>
  
  <!-- picks are not implemented yet
       Clock has two types of pick.
       One is adjusting time, and another is adjusting reminders
       I guess the blue arrow indicates hour and red indictes min.
       To set reminder, rotate bezel and moves blue arrow.
       The blue arrow pushes red so you can set the min part of the reminder.
       Then, you rotete the blue one to set the hour part.
  <animation>
    <type>pick</type>
    <object-name>reminder.minus</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <interval-sec>0.1</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>/instrumentation/clock/reminder-hour</property>
        <step>-1</step>
        <min>0</min>
        <max>36</max>
        <wrap>false</wrap>
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <interval-sec>0.1</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>/instrumentation/altimeter/reminder-hour</property>
        <step>-5</step>
        <min>0</min>
        <max>36</max>
        <wrap>false</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>reminder.plus</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <interval-sec>0.1</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>/instrumentation/clock/reminder-hour</property>
        <step>1</step>
        <min>-36</min>
        <max>36</max>
        <wrap>false</wrap>
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <interval-sec>0.1</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>/instrumentation/clock/reminder-hour</property>
        <step>1</step>
        <min>-36</min>
        <max>36</max>
        <wrap>false</wrap>
      </binding>
    </action>
  </animation>
  -->

</PropertyList>
