<PropertyList>

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

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

 	<animation>
		<type>material</type>
		<object-name>Gearlettering</object-name>
		<condition>
			 <greater-than>
				<property>systems/electrical/CPT-FLT-INST</property>
				<value>24.0</value>
			 </greater-than>
		</condition>
		<emission>
			<red>0.2</red>
			<green>0.6</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>Abrake.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.01677</x-m>
            <y-m>-0.01336</y-m>
            <z-m>-0.1072</z-m>
        </center>
        <axis>
            <x>-1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>GearLever</object-name>
        <property>controls/gear/gear-down</property>
        <factor>30</factor>
        <center>
            <x-m>-0.035</x-m>
            <y-m>-0.02636</y-m>
            <z-m>0.01077</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>select</type>
        <object-name>GS.ovride.001</object-name>
        <condition>
	    <and>
                <property>instrumentation/mk-viii/inputs/discretes/glideslope-inhibit</property>
                <not-equals>
                    <property>systems/electrical/outputs/mk-viii</property>
                    <value>0</value>
                </not-equals>
                <not>
                    <or>
                        <property>instrumentation/mk-viii/outputs/discretes/gpws-warning</property>
                        <property>instrumentation/mk-viii/outputs/discretes/gpws-alert</property>
                        <property>instrumentation/mk-viii/outputs/discretes/gpws-inop</property>
                    </or>
                </not>
            </and>
        </condition>
    </animation>

    <!--animation>
        <type>select</type>
        <object-name>Ground.prox.001</object-name>
        <condition>
            <and>
                <or>
                    <property>instrumentation/mk-viii/outputs/discretes/gpws-warning</property>
                    <property>instrumentation/mk-viii/outputs/discretes/gpws-alert</property>
                    <property>instrumentation/mk-viii/outputs/discretes/gpws-inop</property>
                </or>
                <not-equals>
                    <property>systems/electrical/outputs/mk-viii</property>
                    <value>0</value>
                </not-equals>
            </and>
        </condition>
    </animation-->

    <animation>
        <type>select</type>
        <object-name>Flap.ovride.001</object-name>
        <condition>
            <property>instrumentation/mk-viii/outputs/discretes/flap-override</property>
        </condition>
    </animation>
<!--
    <animation>
        <type>select</type>
        <object-name>Flap.ovride.002</object-name>
        <condition>
            <and>
                <not-equals>
                    <property>systems/electrical/outputs/mk-viii</property>
                    <value>0</value>
                </not-equals>
                <not>
                    <property>instrumentation/mk-viii/outputs/discretes/flap-override</property>
                </not>
            </and>
        </condition>
    </animation>
-->
    <animation>
        <type>select</type>
        <object-name>Gear.ovride.001</object-name>
        <condition>
            <and>
                <property>instrumentation/mk-viii/inputs/discretes/gear-override</property>
                <not-equals>
                    <property>systems/electrical/outputs/mk-viii</property>
                    <value>0</value>
                </not-equals>
            </and>
        </condition>
    </animation>
<!--
    <animation>
        <type>select</type>
        <object-name>Gear.ovride.002</object-name>
        <condition>
            <and>
                <not>
                    <property>instrumentation/mk-viii/inputs/discretes/gear-override</property>
                </not>
                <not-equals>
                    <property>systems/electrical/outputs/mk-viii</property>
                    <value>0</value>
                </not-equals>
            </and>
        </condition>
    </animation>
-->
    <animation>
        <type>select</type>
        <object-name>Terrain.inhibit.001</object-name>
        <condition>
            <and>
                <property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
                <not-equals>
                    <property>systems/electrical/outputs/mk-viii</property>
                    <value>0</value>
                </not-equals>
            </and>
        </condition>
    </animation>
<!--
    <animation>
        <type>select</type>
        <object-name>Terrain.inhibit.002</object-name>
        <condition>
            <and>
                <not>
                    <property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
                </not>
                <not-equals>
                    <property>systems/electrical/outputs/mk-viii</property>
                    <value>0</value>
                </not-equals>
            </and>
        </condition>
    </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>FlapOvride.Cover</object-name>
        <property>aaa/gearctl/FlapOvride_Cover</property>
        <factor>-90</factor>
        <center>
            <x-m>0.01353</x-m>
            <y-m>-0.00194</y-m>
            <z-m>0.1022</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>GearOvride.Cover</object-name>
        <property>aaa/gearctl/GearOvride_Cover</property>
        <factor>-90</factor>
        <center>
            <x-m>0.01353</x-m>
            <y-m>0.02906</y-m>
            <z-m>0.1022</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>Terrain.inhibit.Cover</object-name>
        <property>aaa/gearctl/Terrain.inhibit_Cover</property>
        <factor>-90</factor>
        <center>
            <x-m>0.01353</x-m>
            <y-m>0.02906</y-m>
            <z-m>0.05094</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.ovride</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.ovride</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.ovride</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <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.ovride</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <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.inhibit</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <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>
        <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>
        <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>FlapOvride.Cover</object-name>
        <property>aaa/gearctl/FlapOvride_Cover</property>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>aaa/gearctl/FlapOvride_Cover</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
				controls.click(2);
		    </script>
            </binding>			
        </action>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>GearOvride.Cover</object-name>
        <property>aaa/gearctl/GearOvride_Cover</property>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>aaa/gearctl/GearOvride_Cover</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
				controls.click(2);
		    </script>
            </binding>			
        </action>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>Terrain.inhibit.Cover</object-name>
        <property>aaa/gearctl/Terrain.inhibit_Cover</property>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-toggle</command>
                <property>aaa/gearctl/Terrain.inhibit_Cover</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
				controls.click(2);
		    </script>
            </binding>			
        </action>
    </animation>


</PropertyList>
