<?xml version="1.0"?>

<PropertyList>

  <params>
    <nav-to-flag>/instrumentation/nav[0]/to-flag</nav-to-flag>
    <nav-from-flag>/instrumentation/nav[0]/from-flag</nav-from-flag>
    <nav-radial-selected>/instrumentation/nav[0]/radials/selected-deg</nav-radial-selected>
    <nav-gs-needle-deflection>/instrumentation/nav[0]/filtered-gsNAV0-deflection</nav-gs-needle-deflection>
    <nav-heading-needle-deflection>/instrumentation/nav[0]/filtered-cdiNAV0-deflection</nav-heading-needle-deflection>
    <nav-in-range>/instrumentation/nav[0]/in-range</nav-in-range>
    <gs-in-range>/instrumentation/nav[0]/gs-in-range</gs-in-range>
  </params>

  <path>vor.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>face</object-name>
    <object-name>ring</object-name>
    <object-name>disk</object-name>
    <object-name>LocalizerNeedle</object-name>
    <object-name>GlideslopeNeedle</object-name>
    <object-name>GS_in_range</object-name>
    <object-name>GS_out_of_range</object-name>
    <object-name>TO</object-name>
    <object-name>FR</object-name>
    <object-name>NAV</object-name>

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

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>face</object-name>
    <object-name>ring</object-name>
    <object-name>disk</object-name>
    <object-name>LocalizerNeedle</object-name>
    <object-name>GlideslopeNeedle</object-name>
    <object-name>GS_in_range</object-name>
    <object-name>GS_out_of_range</object-name>
    <object-name>TO</object-name>
    <object-name>FR</object-name>
    <object-name>NAV</object-name>
    <object-name>vitre</object-name>
  </animation>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>../../../../Effects/Glass/glass</inherits-from>
    <object-name>vitre</object-name>
  </effect>

  <animation>
    <type>material</type>
    <object-name>face</object-name>
    <object-name>ring</object-name>
    <object-name>disk</object-name>
    <object-name>LocalizerNeedle</object-name>
    <object-name>GlideslopeNeedle</object-name>
    <object-name>GS_in_range</object-name>
    <object-name>GS_out_of_range</object-name>
    <object-name>TO</object-name>
    <object-name>FR</object-name>
    <object-name>NAV</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>

  <!--
  <model>
    <name>vor-led</name>
    <path>../../Effects/interior/procedural_light_instruments.xml</path>
    <offsets>
      <x-m> -0.17678 </x-m>
      <y-m>  0.05013 </y-m>
      <z-m> -0.50908 </z-m>
    </offsets>
    <condition>
      <and>
        <greater-than>
          <property>/sim/model/material/instruments/factor</property>
          <value>0</value>
        </greater-than>
        <greater-than>
          <property>/sim/rendering/shaders/model</property>
          <value>1</value>
        </greater-than>
      </and>
    </condition>
  </model>
  -->

  <animation>
    <name>LocalizerNeedleTransform</name>
    <type>rotate</type>
    <object-name>LocalizerNeedle</object-name>
    <property alias="../../params/nav-heading-needle-deflection"/>
    <factor>-2.8</factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>GS_in_range</object-name>
    <condition>
      <property alias="../../../params/gs-in-range"/>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>GS_out_of_range</object-name>
    <condition>
      <not>
        <property alias="../../../../params/gs-in-range"/>
      </not>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>NAV</object-name>
    <condition>
      <not>
        <property alias="../../../../params/nav-in-range"/>
      </not>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>TO</object-name>
    <condition>
      <property alias="../../../params/nav-to-flag"/>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>FR</object-name>
    <condition>
      <property alias="../../../params/nav-from-flag"/>
    </condition>
  </animation>

  <animation>
    <name>GlideslopeNeedleTransform</name>
    <type>rotate</type>
    <object-name>GlideslopeNeedle</object-name>
    <property alias="../../params/nav-gs-needle-deflection"/>
    <factor>-25</factor>
    <min-deg>-25</min-deg>
    <max-deg>25</max-deg>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <name>RingTransform</name>
    <type>rotate</type>
    <object-name>ring</object-name>
    <property alias="../../params/nav-radial-selected"/>
    <factor>-1</factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- VOR 1 Radial adjust -->
  <animation>
    <type>knob</type>
    <object-name>disk</object-name>
    <property>/instrumentation/nav[0]/radials/selected-deg</property>
    <factor>-8</factor>
    <center>
      <x-m>  0.01395 </x-m>
      <y-m> -0.03847 </y-m>
      <z-m> -0.04167 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
    <shift-repeat type="int">5</shift-repeat>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>/instrumentation/nav[0]/radials/selected-deg</property>
        <factor>1</factor>
        <min>0</min>
        <max>360</max>
        <wrap>1</wrap>
      </binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>nav1-obs</tooltip-id>
        <label>Nav 1 Radial %3d</label>
        <mapping>heading</mapping>
        <property>/instrumentation/nav[0]/radials/selected-deg</property>
      </binding>
    </hovered>
  </animation>

</PropertyList>
