<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- ###################################################################
     #    (C) 2006 by Yurik V. Nikiforoff - port for FGFS,  FDM,       #
     #    2d & 3d instruments, animations, systems and over.           #
     #     yurik@megasignal.com                                        #
     #                                                                 #
     # Updated by Helijah August 2012                                  #
     # Updated by Helijah May 2015                                     #
     # Updated BARANGER Emmanuel 09/2022                               #
     ###################################################################
     Mapcase for AN-12
-->
<PropertyList>

  <path>mapcase2.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>mapcase</object-name>
    <object-name>mapcase_hs</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>mapcase</object-name>
    <object-name>mapcase_hs</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>mapcase</object-name>
    <object-name>mapcase_hs</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>knob</type>
    <object-name>mapcase_hs</object-name>
    <visible>false</visible>
    <increase>
      <binding>
        <command>nasal</command>
        <script>mapcase.switch_page(1)</script>
      </binding>
    </increase>
    <decrease>
      <binding>
        <command>nasal</command>
        <script>mapcase.switch_page(-1)</script>
      </binding>
    </decrease>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>mapcase-page</tooltip-id>
        <label>Page %s</label>
        <property>instrumentation/mapcase/page</property>
        <mapping>nasal</mapping>
        <script>
          var page = arg[0];
          var pages = size(mapcase.root.getChildren());
          return sprintf("%d/%d", page, pages);
        </script>
      </binding>
    </hovered>
  </animation>

</PropertyList>
