<?xml version="1.0"?>

<PropertyList>

  <path>MiG-15bis-Gearindicator.ac</path> 

      <effect>
            <inherits-from>Effects/model-transparent</inherits-from>
            <object-name>GI_GGlass</object-name>
      </effect>

      <effect>
            <inherits-from>Effects/model-transparent</inherits-from>
            <object-name>GI_RGlass6</object-name>
      </effect>

	<animation>
		<type>range</type>
		<min-m>0</min-m>
		<max-m>30</max-m>
	</animation>

<!--

	<animation>
		<type>material</type>
		<object-name>GI_Box</object-name>
		<object-name>GI_GVern</object-name>
		<object-name>GI_RVern</object-name>
		<object-name>GI_Switch</object-name>
		<object-name>GI_BCheck</object-name>
		<object-name>GI_Message</object-name>
  		<emission>
			<factor-prop>systems/light/canopy-lamps-norm</factor-prop>
			<red>0.777</red>
			<green>0.700</green>
			<blue>0.700</blue>
		</emission>
		<condition>
			<equals>
				<property>systems/light/use-canopy-lamps</property>
				<value>1</value>
			</equals>
		</condition>
	</animation>

-->


	<animation>
		<type>material</type>
		<object-name>GI_MUBackplate</object-name>
		<emission>
			<factor-prop>instrumentation/gear-indicator/middle-up</factor-prop>
			<red>0.9</red>
			<green>0.1</green>
			<blue>0.1</blue>
		</emission>
	</animation>

	<animation>
		<type>material</type>
		<object-name>GI_LUBackplate</object-name>
		<emission>
			<factor-prop>instrumentation/gear-indicator/left-up</factor-prop>
			<red>0.9</red>
			<green>0.1</green>
			<blue>0.1</blue>
		</emission>
	</animation>

	<animation>
		<type>material</type>
		<object-name>GI_RUBackplate</object-name>
		<emission>
			<factor-prop>instrumentation/gear-indicator/right-up</factor-prop>
			<red>0.9</red>
			<green>0.1</green>
			<blue>0.1</blue>
		</emission>
	</animation>

	<animation>
		<type>material</type>
		<object-name>GI_MDBackplate</object-name>
		<emission>
			<factor-prop>instrumentation/gear-indicator/middle-down</factor-prop>
			<red>0.1</red>
			<green>0.9</green>
			<blue>0.1</blue>
		</emission>
	</animation>

	<animation>
		<type>material</type>
		<object-name>GI_LDBackplate</object-name>
		<emission>
			<factor-prop>instrumentation/gear-indicator/left-down</factor-prop>
			<red>0.1</red>
			<green>0.9</green>
			<blue>0.1</blue>
		</emission>
	</animation>

	<animation>
		<type>material</type>
		<object-name>GI_RDBackplate</object-name>
		<emission>
			<factor-prop>instrumentation/gear-indicator/right-down</factor-prop>
			<red>0.1</red>
			<green>0.9</green>
			<blue>0.1</blue>
		</emission>
	</animation>

  <animation>
    <type>rotate</type>
    <object-name>GI_RVern</object-name>
    <property>instrumentation/gear-indicator/red-pos-norm</property>
    <interpolation>
      <entry><ind>0.0</ind><dep>0.0</dep></entry>
      <entry><ind>1.0</ind><dep>600</dep></entry>
    </interpolation>
    <center>
      <x-m>0</x-m>
      <y-m>0.050105</y-m>
      <z-m>0.01519</z-m>
    </center>  
    <axis>
      <x>-1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>GI_GVern</object-name>
    <property>instrumentation/gear-indicator/green-pos-norm</property>
    <interpolation>
      <entry><ind>0.0</ind><dep>0.0</dep></entry>
      <entry><ind>1.0</ind><dep>600</dep></entry>
    </interpolation>
    <center>
      <x-m>0</x-m>
      <y-m>-0.045077</y-m>
      <z-m>-0.015054</z-m>
    </center>  
    <axis>
      <x>-1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>GI_Switch</object-name>
    <property>instrumentation/gear-indicator/switch-pos-norm</property>
    <factor>0.009</factor>
	  <axis>
      <x>0.0</x>
      <y>1</y>
      <z>0.0</z>
    </axis>
  </animation>

	<animation>
		<type>translate</type>
		<object-name>GI_BCheck</object-name>
		<property>instrumentation/gear-indicator/button-check/switch-pos-norm</property>
		<factor>0.004</factor>
		<axis>
			<x>-1</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>

  <animation>
	  <type>pick</type>
	  <object-name>GI_RUp</object-name>
	  <action>
	    <button>0</button>
	    <repeatable>true</repeatable>
	    <interval-sec>0.1</interval-sec>
	     <binding>
       	<command>property-adjust</command>
	       <property>instrumentation/gear-indicator/red-pos-norm</property>
	       <step>0.1</step>
	       <min>0</min>
	       <max>1</max>
	       <wrap>false</wrap>
	     </binding>
	  </action>
  	<action>
	    <button>1</button>
	    <repeatable>true</repeatable>
	    <interval-sec>0.1</interval-sec>
	     <binding>
	       <command>property-adjust</command>
	       <property>instrumentation/gear-indicator/red-pos-norm</property>
	       <step>0.1</step>
	       <min>0</min>
	       <max>1</max>
	       <wrap>false</wrap>
	     </binding>
	  </action>
	</animation>

  <animation>
	  <type>pick</type>
	  <object-name>GI_RDown</object-name>
	  <action>
	    <button>0</button>
	    <repeatable>true</repeatable>
	    <interval-sec>0.1</interval-sec>
	     <binding>
       	<command>property-adjust</command>
	       <property>instrumentation/gear-indicator/red-pos-norm</property>
	       <step>-0.1</step>
	       <min>0</min>
	       <max>1</max>
	       <wrap>false</wrap>
	     </binding>
	  </action>
  	<action>
	    <button>1</button>
	    <repeatable>true</repeatable>
	    <interval-sec>0.1</interval-sec>
	     <binding>
	       <command>property-adjust</command>
	       <property>instrumentation/gear-indicator/red-pos-norm</property>
	       <step>-0.1</step>
	       <min>0</min>
	       <max>1</max>
	       <wrap>false</wrap>
	     </binding>
	  </action>
	</animation>

  <animation>
	  <type>pick</type>
	  <object-name>GI_GUp</object-name>
	  <action>
	    <button>0</button>
	    <repeatable>true</repeatable>
	    <interval-sec>0.1</interval-sec>
	     <binding>
       	<command>property-adjust</command>
	       <property>instrumentation/gear-indicator/green-pos-norm</property>
	       <step>0.1</step>
	       <min>0</min>
	       <max>1</max>
	       <wrap>false</wrap>
	     </binding>
	  </action>
  	<action>
	    <button>1</button>
	    <repeatable>true</repeatable>
	    <interval-sec>0.1</interval-sec>
	     <binding>
	       <command>property-adjust</command>
	       <property>instrumentation/gear-indicator/green-pos-norm</property>
	       <step>0.1</step>
	       <min>0</min>
	       <max>1</max>
	       <wrap>false</wrap>
	     </binding>
	  </action>
	</animation>

  <animation>
	  <type>pick</type>
	  <object-name>GI_GDown</object-name>
	  <action>
	    <button>0</button>
	    <repeatable>true</repeatable>
	    <interval-sec>0.1</interval-sec>
	     <binding>
       	<command>property-adjust</command>
	       <property>instrumentation/gear-indicator/green-pos-norm</property>
	       <step>-0.1</step>
	       <min>0</min>
	       <max>1</max>
	       <wrap>false</wrap>
	     </binding>
	  </action>
  	<action>
	    <button>1</button>
	    <repeatable>true</repeatable>
	    <interval-sec>0.1</interval-sec>
	     <binding>
	       <command>property-adjust</command>
	       <property>instrumentation/gear-indicator/green-pos-norm</property>
	       <step>-0.1</step>
	       <min>0</min>
	       <max>1</max>
	       <wrap>false</wrap>
	     </binding>
	  </action>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>GI_Switch</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<interval-sec>0.1</interval-sec>
			<binding>
				<command>nasal</command>
				<script>MIG15BIS.switchswap("instrumentation/gear-indicator")</script>
			</binding>
		</action>
		<type>pick</type>
		<object-name>GI_Switch</object-name>
		<action>
			<button>1</button>
			<repeatable>false</repeatable>
			<interval-sec>0.1</interval-sec>
			<binding>
				<command>nasal</command>
				<script>MIG15BIS.switchswap("instrumentation/gear-indicator")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>GI_BCheck</object-name>
		<object-name>GI_Message</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<interval-sec>0.1</interval-sec>
			<binding>
				<command>nasal</command>
				<script>MIG15BIS.switchswap("instrumentation/gear-indicator/button-check")</script>
			</binding>
		</action>
		<type>pick</type>
		<object-name>GI_BCheck</object-name>
		<object-name>GI_Message</object-name>
		<action>
			<button>1</button>
			<repeatable>false</repeatable>
			<interval-sec>0.1</interval-sec>
			<binding>
				<command>nasal</command>
				<script>MIG15BIS.switchswap("instrumentation/gear-indicator/button-check")</script>
			</binding>
		</action>
	</animation>

</PropertyList> 
