<PropertyList>

    <path>gear-ctl.ac</path>

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

 	<animation>
		<type>material</type>
		<object-name>Lettering_Gear</object-name>
		<condition>
			<greater-than>   
				<property>/sim/time/sun-angle-rad</property>
				<value>1.70</value>
			</greater-than>
			 <greater-than>
				<property>systems/electrical/CPT-FLT-INST</property>
				<value>24.0</value>
			 </greater-than>
		</condition>
		<emission>
			<red>0.2</red>
			<green>0.8</green>
			<blue>0.2</blue>
			<factor-prop>controls/lighting/panel-flood-intencity</factor-prop>
		</emission>
	</animation>

    <animation>
        <type>rotate</type>
        <object-name>AutoBrake.knob</object-name>
        <object-name>AutoBrake.001</object-name>
        <property>autopilot/autobrake/step</property>
        <interpolation>
            <entry>
                <ind>-2</ind>
                <dep>0</dep>
            </entry>
            <entry>
                <ind>-1</ind>
                <dep>59</dep>
            </entry>
            <entry>
                <ind>0</ind>
                <dep>91</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>120.0</dep>
            </entry>
            <entry>
                <ind>2</ind>
                <dep>150.0</dep>
            </entry>
            <entry>
                <ind>3</ind>
                <dep>180.0</dep>
            </entry>
            <entry>
                <ind>4</ind>
                <dep>206.0</dep>
            </entry>
            <entry>
                <ind>5</ind>
                <dep>237.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>0.01629</x-m>
            <y-m>-0.01548</y-m>
            <z-m>-0.10714</z-m>
        </center>
        <axis>
            <x>-1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>GearLever</object-name>
        <object-name>GearLever.001</object-name>
        <property>controls/gear/gear-down</property>
        <factor>30</factor>
        <center>
            <x-m>-0.03377</x-m>
            <y-m>-0.02855</y-m>
            <z-m>0.01182</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>select</type>
        <object-name>GS_INH_GND</object-name>
		<condition>
			<property>instrumentation/mk-viii/inputs/discretes/glideslope-inhibit</property>
		</condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>GS_INH_Ind</object-name>
		<condition>
			<property>instrumentation/mk-viii/outputs/discretes/gpws-warning</property>
		</condition>
    </animation>

 <animation>
   <type>translate</type>
   <object-name>FLAP_OVRD_AcryFace</object-name>
   <object-name>FLAP_OVRD_Switch</object-name>
   <object-name>FLAP_OVRD_Shutter.Top</object-name>
   <object-name>FLAP_OVRD_Shutter.Bottom</object-name>
	<property>controls/switches/gpws/flap_ovrd_switch</property>
   <factor>0.004</factor>
   <axis>
   <x>-1</x>
   <y>0</y>
   <z>0</z>
   </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>FLAP_OVRD_Shutter.Top</object-name>
   <property>controls/switches/FOVRDSwitchTimer/position-norm</property>
        <factor>-92</factor>
        <center>
            <x-m>0.0097</x-m>
            <y-m>0</y-m>
            <z-m>0.098</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>FLAP_OVRD_Shutter.Bottom</object-name>
   <property>controls/switches/FOVRDSwitchTimer/position-norm</property>
        <factor>92</factor>
        <center>
            <x-m>0.0097</x-m>
            <y-m>0</y-m>
            <z-m>0.098</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
 </animation>
 
 <animation>
   <type>translate</type>
   <object-name>GEAR_OVRD_AcryFace</object-name>
   <object-name>GEAR_OVRD_Switch</object-name>
   <object-name>GEAR_OVRD_Shutter.Top</object-name>
   <object-name>GEAR_OVRD_Shutter.Bottom</object-name>
	<property>controls/switches/gpws/gear_ovrd_switch</property>
   <factor>0.004</factor>
   <axis>
   <x>-1</x>
   <y>0</y>
   <z>0</z>
   </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>GEAR_OVRD_Shutter.Top</object-name>
   <property>controls/switches/GOVRDSwitchTimer/position-norm</property>
        <factor>-92</factor>
        <center>
            <x-m>0.0097</x-m>
            <y-m>0</y-m>
            <z-m>0.098</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>GEAR_OVRD_Shutter.Bottom</object-name>
   <property>controls/switches/GOVRDSwitchTimer/position-norm</property>
        <factor>92</factor>
        <center>
            <x-m>0.0097</x-m>
            <y-m>0</y-m>
            <z-m>0.098</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
 </animation>
 
 <animation>
   <type>translate</type>
   <object-name>TERRAIN_OVRD_AcryFace</object-name>
   <object-name>TERRAIN_OVRD_Switch</object-name>
   <object-name>TERRAIN_OVRD_Shutter.Top</object-name>
   <object-name>TERRAIN_OVRD_Shutter.Bottom</object-name>
	<property>controls/switches/gpws/terrain_ovrd_switch</property>
   <factor>0.004</factor>
   <axis>
   <x>-1</x>
   <y>0</y>
   <z>0</z>
   </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>TERRAIN_OVRD_Shutter.Top</object-name>
   <property>controls/switches/TOVRDSwitchTimer/position-norm</property>
        <factor>-92</factor>
        <center>
            <x-m>0.0097</x-m>
            <y-m>0</y-m>
            <z-m>0.045</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>TERRAIN_OVRD_Shutter.Bottom</object-name>
   <property>controls/switches/TOVRDSwitchTimer/position-norm</property>
        <factor>92</factor>
        <center>
            <x-m>0.0097</x-m>
            <y-m>0</y-m>
            <z-m>0.045</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
 </animation>
 
    <animation>
        <type>rotate</type>
        <object-name>BlockAltGr_Cover</object-name>
        <property>aaa/gearctl/BlockAltGr_Cover</property>
        <factor>90</factor>
        <center>
            <x-m>0.008429</x-m>
            <y-m>0.03153</y-m>
            <z-m>-0.04394</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>
   <animation>
        <type>rotate</type>
        <object-name>FLAP_OVRD_TranspCover</object-name>
        <property>aaa/gearctl/FLAP_OVRD_TranspCover</property>
        <factor>-90</factor>
        <center>
            <x-m>0.01355</x-m>
            <y-m>-0.00432</y-m>
            <z-m>0.10281</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>GEAR_OVRD_TranspCover</object-name>
        <property>aaa/gearctl/GEAR_OVRD_TranspCover</property>
        <factor>-90</factor>
        <center>
            <x-m>0.01355</x-m>
            <y-m>0.02721</y-m>
            <z-m>0.10281</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>TERRAIN_OVRD_TranspCover</object-name>
        <property>aaa/gearctl/TERRAIN_OVRD_TranspCover</property>
        <factor>-90</factor>
        <center>
            <x-m>0.01355</x-m>
            <y-m>0.02721</y-m>
            <z-m>0.04989</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>


<!-- OSG hotspots -->

    <!-- G/S INHIBIT button -->
    <animation>
        <type>pick</type>
        <object-name>GS_INH_Switch</object-name>
        <object-name>GS_INH_GND</object-name>
        <object-name>GS_INH_Ind</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>
                  controls.click(3);
                  b777.Gpws.clicked_gs_override();
                  b777.Gpws.press_selftest_button();
                </script>
            </binding>
            <mod-up>
              <binding>
                <command>nasal</command>
                <script>
                  b777.Gpws.release_selftest_button();
                </script>
              </binding>
            </mod-up>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>GS_INH_Switch</object-name>
        <object-name>GS_INH_GND</object-name>
        <object-name>GS_INH_Ind</object-name>
        <action>
            <button>1</button> <!-- middle button to simulate long push-button press... -->
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>
                  controls.click(4);
                  b777.Gpws.clicked_selftest();
                </script>
            </binding>
        </action>
    </animation>

    <!-- FLAP OVERRIDE button -->
    <animation>
        <type>pick</type>
		<object-name>FLAP_OVRD_Switch</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>controls/switches/gpws/flap_ovrd_switch</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
                  controls.click(3);
                  b777.Gpws.clicked_flap_override();
                </script>
            </binding>
        </action>
    </animation>

    <!-- GEAR OVERRIDE button -->
    <animation>
        <type>pick</type>
        <object-name>GEAR_OVRD_Switch</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>controls/switches/gpws/gear_ovrd_switch</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
                  controls.click(3);
                  b777.Gpws.clicked_gear_override();
                </script>
            </binding>
        </action>
    </animation>

    <!-- TERRAIN INHIBIT button -->
    <animation>
        <type>pick</type>
        <object-name>TERRAIN_OVRD_Switch</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>controls/switches/gpws/terrain_ovrd_switch</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
                  controls.click(3);
                  b777.Gpws.clicked_terrain_inhibit();
                </script>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>GearLever</object-name>
        <object-name>GearLever.001</object-name>
        <action>
            <button>1</button>
            <binding>
                <command>nasal</command>
                <script>controls.gearDown(-1)</script>
            </binding>
            <mod-up>
                <binding>
                    <command>nasal</command>
                    <script>controls.gearDown(0)</script>
                </binding>
            </mod-up>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>GearLever</object-name>
        <object-name>GearLever.001</object-name>
        <action>
            <button>0</button>
            <binding>
                <command>nasal</command>
                <script>controls.gearDown(1)</script>
            </binding>
            <mod-up>
                <binding>
                    <command>nasal</command>
                    <script>controls.gearDown(0)</script>
                </binding>
            </mod-up>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>AutoBrake.knob</object-name>
        <action>
            <button>0</button>
            <binding>
                <command>property-adjust</command>
                <property>autopilot/autobrake/step</property>
                <step>1</step>
                <min>-2</min>
                <max>5</max>
            </binding>
            <binding>
                <command>nasal</command>
                <script>controls.click(2);</script>
            </binding>
        </action>
        <action>
            <button>3</button> <!--  scroll up -->
            <binding>
                <command>property-adjust</command>
                <property>autopilot/autobrake/step</property>
                <step>1</step>
                <min>-2</min>
                <max>5</max>
            </binding>
            <binding>
                <command>nasal</command>
                <script>controls.click(2);</script>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>AutoBrake.knob</object-name>
        <action>
            <button>1</button>
            <binding>
                <command>property-adjust</command>
                <property>autopilot/autobrake/step</property>
                <step>-1</step>
                <min>-2</min>
                <max>5</max>
            </binding>
            <binding>
                <command>nasal</command>
                <script>controls.click(1);</script>
            </binding>
        </action>
        <action>
            <button>4</button> <!--  scroll down -->
            <binding>
                <command>property-adjust</command>
                <property>autopilot/autobrake/step</property>
                <step>-1</step>
                <min>-2</min>
                <max>5</max>
            </binding>
            <binding>
                <command>nasal</command>
                <script>controls.click(1);</script>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>BlockAltGr_Cover</object-name>
        <property>aaa/gearctl/BlockAltGr_Cover</property>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>aaa/gearctl/BlockAltGr_Cover</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
				controls.click(7);
		    </script>
            </binding>			
        </action>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>FLAP_OVRD_TranspCover</object-name>
        <property>aaa/gearctl/FLAP_OVRD_TranspCover</property>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>aaa/gearctl/FLAP_OVRD_TranspCover</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
				controls.click(2);
		    </script>
            </binding>			
        </action>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>GEAR_OVRD_TranspCover</object-name>
        <property>aaa/gearctl/GEAR_OVRD_TranspCover</property>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>aaa/gearctl/GEAR_OVRD_TranspCover</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
				controls.click(2);
		    </script>
            </binding>			
        </action>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>TERRAIN_OVRD_TranspCover</object-name>
        <property>aaa/gearctl/TERRAIN_OVRD_TranspCover</property>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>aaa/gearctl/TERRAIN_OVRD_TranspCover</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
				controls.click(2);
		    </script>
            </binding>			
        </action>
    </animation>


</PropertyList>
