<?xml version="1.0"?>

<!-- VOR selector of the deviation indicator. -->


<PropertyList>

<path>vorselector.ac</path>

 <animation>
  <name>switch</name>
  <object-name>VORSelectorSwitch</object-name>
  <object-name>VORSelectorWasher</object-name>
 </animation>

 <animation>
  <type>material</type>
  <object-name>VORSelectorSwitch</object-name>
  <emission>
    <red>0.81</red>
    <green>0.40</green>
    <blue>0.20</blue>
    <factor-prop>systems/lighting/internal/panel/panel-light</factor-prop>
  </emission>
  <ambient>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
    <factor-prop>systems/lighting/internal/ambient-light</factor-prop>
  </ambient>
 </animation>

 <animation>
  <type>pick</type>
  <object-name>switch</object-name>
  <action>
   <button>0</button>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/deviation-indicator/frequency</property>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>instrumentation/generic/click</property>
   </binding>
  </action>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>VORSelectorSwitch</object-name>
  <property>/instrumentation/deviation-indicator/frequency</property>
  <factor>-60</factor>
  <offset-deg>30</offset-deg>
  <center>
   <x-m>0.003</x-m>
   <y-m>0.0</y-m>
   <z-m>0.0</z-m>
  </center>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>1</z>
  </axis>
 </animation>

 <animation>
  <type>material</type>
  <object-name>VOR1</object-name>
  <emission>
   <red>1.0</red>
   <green>1.0</green>
   <blue>0.2</blue>
   <factor-prop>instrumentation/nav[0]/in-range</factor-prop>
  </emission> 
  <ambient>
    <red>0.5</red>
    <green>0.5</green>
    <blue>0.5</blue>
    <factor-prop>systems/lighting/internal/ambient-light</factor-prop>
  </ambient>
 </animation>

 <animation>
  <type>material</type>
  <object-name>VOR2</object-name>
  <emission>
   <red>1.0</red>
   <green>1.0</green>
   <blue>0.2</blue>
   <factor-prop>instrumentation/nav[1]/in-range</factor-prop>
  </emission> 
  <ambient>
    <red>0.5</red>
    <green>0.5</green>
    <blue>0.5</blue>
    <factor-prop>systems/lighting/internal/ambient-light</factor-prop>
  </ambient>
 </animation>

</PropertyList>

