<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- #############################################################################
     #    (C) 2007 by Yurik V. Nikiforoff - port for FGFS,  FDM,                 #
     #    2d & 3d instruments, animations, systems and over.                     #
     #    yurik@megasignal.com                                                   #
     #                                                                           #
     #    Updated BARANGER Emmanuel 2015                                         #
     #    Updated BARANGER Emmanuel 09/2022                                      #
     #############################################################################
     KURS-MP control gauge 3D instrument for Tu-154
-->
<PropertyList>

  <path>kurs-mp.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>dig_h_hund</object-name>
    <object-name>dig_h_dec</object-name>
    <object-name>dig_h_ones</object-name>
    <object-name>dig_f_hi</object-name>
    <object-name>dig_f_low</object-name>
    <object-name>handle</object-name>
    <object-name>na</object-name>
    <object-name>ot</object-name>
    <object-name>hs_1</object-name>
    <object-name>hs_2</object-name>
    <object-name>hs_3</object-name>
    <object-name>hs_4</object-name>
    <object-name>hs_5</object-name>
    <object-name>hs_6</object-name>
    <object-name>hs_7</object-name>
    <object-name>hs_8</object-name>
    <object-name>hs_9</object-name>
    <object-name>hs_10</object-name>
    <object-name>hs_11</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>dig_h_hund</object-name>
    <object-name>dig_h_dec</object-name>
    <object-name>dig_h_ones</object-name>
    <object-name>dig_f_hi</object-name>
    <object-name>dig_f_low</object-name>
    <object-name>handle</object-name>
    <object-name>na</object-name>
    <object-name>ot</object-name>
    <object-name>hs_1</object-name>
    <object-name>hs_2</object-name>
    <object-name>hs_3</object-name>
    <object-name>hs_4</object-name>
    <object-name>hs_5</object-name>
    <object-name>hs_6</object-name>
    <object-name>hs_7</object-name>
    <object-name>hs_8</object-name>
    <object-name>hs_9</object-name>
    <object-name>hs_10</object-name>
    <object-name>hs_11</object-name>
  </animation>

  <animation>
    <name>digits</name>
    <object-name>dig_h_hund</object-name>
    <object-name>dig_h_dec</object-name>
    <object-name>dig_h_ones</object-name>
    <object-name>dig_f_hi</object-name>
    <object-name>dig_f_low</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fond</object-name>
    <object-name>digits</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>

  <!--Selector lamps-->
  <!--Have voltage?-->
  <animation>
    <type>material</type>
    <object-name>na</object-name>
    <object-name>ot</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   2 </red>
      <green> 2 </green>
      <blue>  2 </blue>
    </emission>
  </animation>

  <animation>
    <type>select</type>
    <object-name>na</object-name>
    <condition>
      <property>instrumentation/nav[0]/to-flag</property>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>ot</object-name>
    <condition>
      <property>instrumentation/nav[0]/from-flag</property>
    </condition>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_h_hund</object-name>
    <property>instrumentation/kurs-mp-1/digit-h-hund</property>
    <factor> 35.5 </factor>
    <center>
      <x-m> -0.02664 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.00025 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_h_dec</object-name>
    <property>instrumentation/kurs-mp-1/digit-h-dec</property>
    <factor> 35.5 </factor>
    <center>
      <x-m> -0.02664 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.00025 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_h_ones</object-name>
    <property>instrumentation/kurs-mp-1/digit-h-ones</property>
    <factor> 35.5 </factor>
    <center>
      <x-m> -0.02664 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.00025 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_f_hi</object-name>
    <property>instrumentation/kurs-mp-1/digit-f-hi</property>
    <interpolation>
      <entry><ind> 108 </ind><dep>  -4 </dep></entry>
      <entry><ind> 117 </ind><dep> 313 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.01672 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.00590 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_f_low</object-name>
    <property>instrumentation/kurs-mp-1/digit-f-low</property>
    <interpolation>
      <entry><ind>  0 </ind><dep>  -2 </dep></entry>
      <entry><ind> 95 </ind><dep> 338 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.02751 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.00618 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!--Controls-->
  <!--Radial-->
  <animation>
    <type>pick</type>
    <object-name>hs_1</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-hund</property>
        <step>-1.0</step>
        <min>0.0</min>
        <max>3.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_2</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-hund</property>
        <step>1.0</step>
        <min>0.0</min>
        <max>3.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_3</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-dec</property>
        <step>-1.0</step>
        <min>0.0</min>
        <max>9.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_4</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-dec</property>
        <step>1.0</step>
        <min>0.0</min>
        <max>9.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_5</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-ones</property>
        <step>-1.0</step>
        <min>0.0</min>
        <max>9.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_6</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-ones</property>
        <step>1.0</step>
        <min>0.0</min>
        <max>9.0</max>
        <wrap>true</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <!--Mouse wheel for radial-->
  <animation>
    <type>pick</type>
    <object-name>hs_1</object-name>
    <object-name>hs_2</object-name>
    <visible>false</visible>
    <action>
      <button>3</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-hund</property>
        <step>-1.0</step>
        <min>0.0</min>
        <max>3.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-hund</property>
        <step>1.0</step>
        <min>0.0</min>
        <max>3.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_3</object-name>
    <object-name>hs_4</object-name>
    <visible>false</visible>
    <action>
      <button>3</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-dec</property>
        <step>-1.0</step>
        <min>0.0</min>
        <max>9.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-dec</property>
        <step>1.0</step>
        <min>0.0</min>
        <max>9.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_5</object-name>
    <object-name>hs_6</object-name>
    <visible>false</visible>
    <action>
      <button>3</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-ones</property>
        <step>-1.0</step>
        <min>0.0</min>
        <max>9.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-h-ones</property>
        <step>1.0</step>
        <min>0.0</min>
        <max>9.0</max>
        <wrap>true</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <!--Frequency-->
  <animation>
    <type>pick</type>
    <object-name>hs_7</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-f-hi</property>
        <step>-1.0</step>
        <min>108.0</min>
        <max>117.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_8</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-f-hi</property>
        <step>1.0</step>
        <min>108.0</min>
        <max>117.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_9</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-f-low</property>
        <step>-5.0</step>
        <min>0.0</min>
        <max>95.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_10</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-f-low</property>
        <step>5.0</step>
        <min>0.0</min>
        <max>95.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <!--mouse wheel for frequency-->
  <animation>
    <type>pick</type>
    <object-name>hs_7</object-name>
    <object-name>hs_8</object-name>
    <visible>false</visible>
    <action>
      <button>3</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-f-hi</property>
        <step>-1.0</step>
        <min>108.0</min>
        <max>117.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-f-hi</property>
        <step>1.0</step>
        <min>108.0</min>
        <max>117.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_9</object-name>
    <object-name>hs_10</object-name>
    <visible>false</visible>
    <action>
      <button>3</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-f-low</property>
        <step>-5.0</step>
        <min>0.0</min>
        <max>95.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/kurs-mp-1/digit-f-low</property>
        <step>5.0</step>
        <min>0.0</min>
        <max>95.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>nasal</command>
        <script>help.kursmp_sync(0)</script>
      </binding>
    </action>
  </animation>

  <!--Sound volume-->
  <animation>
    <type>pick</type>
    <object-name>hs_11</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <button>3</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/nav[0]/volume</property>
        <step>-0.1</step>
        <min>0.0</min>
        <max>1.0</max>
        <wrap>false</wrap>
      </binding>
    </action>
    <action>
      <button>1</button>
      <button>4</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/nav[0]/volume</property>
        <step>0.1</step>
        <min>0.0</min>
        <max>1.0</max>
        <wrap>false</wrap>
      </binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>Kurs-MP-volume</tooltip-id>
        <label>Volume: %d%%</label>
        <property>instrumentation/nav[0]/volume</property>
        <mapping>nasal</mapping>
        <script>return int(arg[0] * 100)</script>
      </binding>
    </hovered>
  </animation>

</PropertyList>
