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

<PropertyList>

  <path>oat.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>knob</object-name>
    <object-name>deg</object-name>
    <object-name>deg1</object-name>
    <object-name>deg10</object-name>
    <object-name>deg100</object-name>
    <object-name>faren</object-name>
    <object-name>faren1</object-name>
    <object-name>faren10</object-name>
    <object-name>faren100</object-name>
    <object-name>faren1000</object-name>

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

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>deg</object-name>
    <object-name>deg1</object-name>
    <object-name>deg10</object-name>
    <object-name>deg100</object-name>
    <object-name>faren</object-name>
    <object-name>faren1</object-name>
    <object-name>faren10</object-name>
    <object-name>faren100</object-name>
    <object-name>faren1000</object-name>
    <object-name>vitre</object-name>
  </animation>

  <effect>
    <inherits-from>../../../../Effects/Glass/glass</inherits-from>
    <object-name>vitre</object-name>
  </effect>

  <animation>
    <type>material</type>
    <object-name>knob</object-name>
    <object-name>deg</object-name>
    <object-name>deg1</object-name>
    <object-name>deg10</object-name>
    <object-name>deg100</object-name>
    <object-name>faren</object-name>
    <object-name>faren1</object-name>
    <object-name>faren10</object-name>
    <object-name>faren100</object-name>
    <object-name>faren1000</object-name>
    <condition>
      <property>/controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>/controls/lighting/instruments-norm</factor-prop>
      <red>   0.50 </red>
      <green> 0.40 </green>
      <blue>  0.30 </blue>
    </emission>
  </animation>

  <animation>
    <type>select</type>
    <object-name>deg</object-name>
    <object-name>deg1</object-name>
    <object-name>deg10</object-name>
    <object-name>deg100</object-name>
    <condition>
      <property>/controls/electric/battery-switch</property>
      <equals>
        <property>/controls/switches/oat-switch</property>
        <value>0</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>faren</object-name>
    <object-name>faren1</object-name>
    <object-name>faren10</object-name>
    <object-name>faren100</object-name>
    <object-name>faren1000</object-name>
    <condition>
      <property>/controls/electric/battery-switch</property>
      <equals>
        <property>/controls/switches/oat-switch</property>
        <value>1</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>knob</object-name>
    <visible type="bool">true</visible>
    <action>
      <name>OAT switch</name>
      <button>0</button>
      <binding>
        <command>nasal</command>
        <script>
          val = getprop("controls/switches/oat-switch");
          test = 1 + val;
          if (test > 1) {
            test = 0;
          }
          setprop("controls/switches/oat-switch",test);
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>knob</object-name>
    <property>/controls/switches/oat-switch</property>
    <factor> 0.002 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Degree Celsius -->
  <animation>
    <type>textranslate</type>
    <object-name>deg1</object-name>
    <property>/environment/temperature-degc</property>
    <factor>1.0</factor>
    <step>0.1</step>
    <bias>0.005</bias>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>deg10</object-name>
    <property>environment/temperature-degc</property>
    <factor>0.1</factor>
    <step>1</step>
    <bias>0.005</bias>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>deg100</object-name>
    <property>environment/temperature-degc</property>
    <factor>0.01</factor>
    <step>10</step>
    <bias>0.005</bias>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Degree Fahrenheit -->
  <animation>
    <type>textranslate</type>
    <object-name>faren1</object-name>
    <property>environment/temperature-degf</property>
    <factor>1.0</factor>
    <step>0.1</step>
    <bias>0.005</bias>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>faren10</object-name>
    <property>environment/temperature-degf</property>
    <factor>0.1</factor>
    <step>1</step>
    <bias>0.005</bias>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>faren100</object-name>
    <property>environment/temperature-degf</property>
    <factor>0.01</factor>
    <step>10</step>
    <bias>0.005</bias>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>faren1000</object-name>
    <property>environment/temperature-degf</property>
    <factor>0.001</factor>
    <step>100</step>
    <bias>0.005</bias>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

</PropertyList>
