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

<!-- CTL 92 Control for TDR-94 transponder
     2.375"W x 2.625"H
     Syd Adams -->
<PropertyList>

  <path>ctl92.ac</path>

  <animation>
    <object-name>CTL-92</object-name>
    <object-name>C92freq.001</object-name>
    <object-name>C92freq.002</object-name>
    <object-name>C92freq.003</object-name>
    <object-name>C92freq.004</object-name>
    <object-name>C92mem.annun</object-name>
    <object-name>CTL-92.pwr</object-name>
    <object-name>CTL-92.vol</object-name>
    <object-name>freq.knob</object-name>
    <object-name>xmt.annun</object-name>
    <object-name>atc.ident</object-name>
    <object-name>atc.test</object-name>
    <object-name>act.pre</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>CTL-92</object-name>
    <object-name>C92freq.001</object-name>
    <object-name>C92freq.002</object-name>
    <object-name>C92freq.003</object-name>
    <object-name>C92freq.004</object-name>
    <object-name>C92mem.annun</object-name>
    <object-name>CTL-92.pwr</object-name>
    <object-name>CTL-92.vol</object-name>
    <object-name>freq.knob</object-name>
    <object-name>xmt.annun</object-name>
    <object-name>atc.ident</object-name>
    <object-name>atc.test</object-name>
    <object-name>act.pre</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>C92freq.001</object-name>
    <object-name>C92freq.002</object-name>
    <object-name>C92freq.003</object-name>
    <object-name>C92freq.004</object-name>
    <object-name>C92mem.annun</object-name>
    <object-name>CTL-92.pwr</object-name>
    <object-name>CTL-92.vol</object-name>
    <object-name>freq.knob</object-name>
    <object-name>xmt.annun</object-name>
    <object-name>atc.ident</object-name>
    <object-name>atc.test</object-name>
    <object-name>act.pre</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>C92freq.001</object-name>
    <object-name>C92freq.002</object-name>
    <object-name>C92freq.003</object-name>
    <object-name>C92freq.004</object-name>
    <object-name>C92mem.annun</object-name>
    <condition>
      <greater-than>
        <property>instrumentation/transponder/inputs/knob-mode</property>
        <value>0</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>CTL-92.pwr</object-name>
    <property>instrumentation/transponder/inputs/knob-mode</property>
    <factor>30</factor>
    <center>
      <x-m>  0.00000 </x-m>
      <y-m> -0.01380 </y-m>
      <z-m> -0.01833 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>C92freq.001</object-name>
    <property>instrumentation/transponder/inputs/digit[3]</property>
    <factor>0.1</factor>
    <step>1</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>C92freq.002</object-name>
    <property>instrumentation/transponder/inputs/digit[2]</property>
    <factor>0.1</factor>
    <step>1</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>C92freq.003</object-name>
    <property>instrumentation/transponder/inputs/digit[1]</property>
    <factor>0.1</factor>
    <step>1</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>C92freq.004</object-name>
    <property>instrumentation/transponder/inputs/digit[0]</property>
    <factor>0.1</factor>
    <step>1</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!--    OSG hotspots    -->
  <animation>
    <type>pick</type>
    <object-name>CTL-92.pwr</object-name>
    <visible>true</visible>
    <action>
      <button>3</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/transponder/inputs/knob-mode</property>
        <step>-1</step>
        <min>0</min>
        <max>5</max>
        <wrap>0</wrap>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/transponder/inputs/knob-mode</property>
        <step>1</step>
        <min>0</min>
        <max>5</max>
        <wrap>0</wrap>
      </binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>kt70-func</tooltip-id>
        <label>Transponder mode: %s</label>
        <property>instrumentation/transponder/inputs/knob-mode</property>
        <mapping>nasal</mapping>
        <script>
          var modes = ['OFF', 'STANDBY', 'TEST', 'GROUND', 'ON', 'ALTITUDE'];
          return modes[arg[0]];
        </script>
      </binding>
    </hovered>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>atc.ident</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/transponder/inputs/ident-btn</property>
      </binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>kt70-ident</tooltip-id>
        <label>Identify to ATC</label>
      </binding>
    </hovered>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>freq.knob</object-name>
    <visible>true</visible>
    <action>
      <button>3</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/transponder/id-code</property>
        <step>-1</step>
        <min>888</min>
        <max>8888</max>
        <wrap>true</wrap>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/transponder/id-code</property>
        <step>1</step>
        <min>888</min>
        <max>8888</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

</PropertyList>
