<?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                                      #
     #############################################################################
     Skawk control 3D instrument for Tu-154
-->
<PropertyList>

  <path>skawk.ac</path>

  <animation>
    <object-name>base</object-name>
    <object-name>handle_1</object-name>
    <object-name>handle_2</object-name>
    <object-name>handle_3</object-name>
    <object-name>handle_4</object-name>
    <object-name>handle_5</object-name>
    <object-name>lampoff</object-name>
    <object-name>lampon</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>base</object-name>
    <object-name>handle_1</object-name>
    <object-name>handle_2</object-name>
    <object-name>handle_3</object-name>
    <object-name>handle_4</object-name>
    <object-name>handle_5</object-name>
    <object-name>lampoff</object-name>
    <object-name>lampon</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>base</object-name>
    <object-name>handle_1</object-name>
    <object-name>handle_2</object-name>
    <object-name>handle_3</object-name>
    <object-name>handle_4</object-name>
    <object-name>handle_5</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>material</type>
    <object-name>lampoff</object-name>
    <emission>
      <red>   0.235 </red>
      <green> 0.235 </green>
      <blue>  0.235 </blue>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>lampon</object-name>
    <emission>
      <factor-prop>controls/switches/gauge-light</factor-prop>
      <red>   2 </red>
      <green> 2 </green>
      <blue>  2 </blue>
    </emission>
  </animation>

  <animation>
    <type>select</type>
    <object-name>lampon</object-name>
    <condition>
      <factor-prop>instrumentation/transponder/serviceable</factor-prop>
    </condition>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>handle_1</object-name>
    <property>instrumentation/transponder/inputs/digit[3]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -90 </dep></entry>
      <entry><ind> 7 </ind><dep> 120 </dep></entry>
    </interpolation>
    <visible>true</visible>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/transponder/inputs/digit[3]</property>
        <min>0</min>
        <max>7</max>
      </binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>squawk-code</tooltip-id>
        <label>Transponder code: %s</label>
        <property>instrumentation/transponder/inputs/digit[3]</property>
        <mapping>nasal</mapping>
        <script>
          var modes = ['0', '1', '2', '3', '4', '5', '6', '7'];
          return modes[arg[0]];
        </script>
      </binding>
    </hovered>
    <center>
      <x-m>  0.00000 </x-m>
      <y-m> -0.05720 </y-m>
      <z-m> -0.02706 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>handle_2</object-name>
    <property>instrumentation/transponder/inputs/digit[2]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -120 </dep></entry>
      <entry><ind> 7 </ind><dep>   90 </dep></entry>
    </interpolation>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/transponder/inputs/digit[2]</property>
        <min>0</min>
        <max>7</max>
      </binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>squawk-code</tooltip-id>
        <label>Transponder code: %s</label>
        <property>instrumentation/transponder/inputs/digit[2]</property>
        <mapping>nasal</mapping>
        <script>
          var modes = ['0', '1', '2', '3', '4', '5', '6', '7'];
          return modes[arg[0]];
        </script>
      </binding>
    </hovered>
    <center>
      <x-m>  0.00000 </x-m>
      <y-m> -0.01856 </y-m>
      <z-m> -0.03265 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>handle_3</object-name>
    <property>instrumentation/transponder/inputs/digit[1]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -90 </dep></entry>
      <entry><ind> 7 </ind><dep> 120 </dep></entry>
    </interpolation>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/transponder/inputs/digit[1]</property>
        <min>0</min>
        <max>7</max>
      </binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>squawk-code</tooltip-id>
        <label>Transponder code: %s</label>
        <property>instrumentation/transponder/inputs/digit[1]</property>
        <mapping>nasal</mapping>
        <script>
          var modes = ['0', '1', '2', '3', '4', '5', '6', '7'];
          return modes[arg[0]];
        </script>
      </binding>
    </hovered>
    <center>
      <x-m>  0.00000 </x-m>
      <y-m>  0.01946 </y-m>
      <z-m> -0.03265 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>handle_4</object-name>
    <property>instrumentation/transponder/inputs/digit[0]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -120 </dep></entry>
      <entry><ind> 7 </ind><dep>   90 </dep></entry>
    </interpolation>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/transponder/inputs/digit[0]</property>
        <min>0</min>
        <max>7</max>
      </binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>squawk-code</tooltip-id>
        <label>Transponder code: %s</label>
        <property>instrumentation/transponder/inputs/digit[0]</property>
        <mapping>nasal</mapping>
        <script>
          var modes = ['0', '1', '2', '3', '4', '5', '6', '7'];
          return modes[arg[0]];
        </script>
      </binding>
    </hovered>
    <center>
      <x-m>  0.00000 </x-m>
      <y-m>  0.05747 </y-m>
      <z-m> -0.02706 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>handle_5</object-name>
    <property>instrumentation/transponder/inputs/mode</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -120 </dep></entry>
      <entry><ind> 7 </ind><dep>   90 </dep></entry>
    </interpolation>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/transponder/inputs/mode</property>
        <min>0</min>
        <max>3</max>
      </binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>squawk-mode</tooltip-id>
        <label>Transponder mode: %s</label>
        <property>instrumentation/transponder/inputs/mode</property>
        <mapping>nasal</mapping>
        <script>
          var mode = ['on', 'standby', 'altitude', 'ground'];
          return mode[arg[0]];
        </script>
      </binding>
    </hovered>
    <center>
      <x-m> 0.00000 </x-m>
      <y-m> 0.00245 </y-m>
      <z-m> 0.01384 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

</PropertyList>
