<?xml version="1.0"?>

<PropertyList>

    <path>Gear.ac</path>
    
    <animation> 
        <type>material</type>
        <object-name>nwarn</object-name>
        <object-name>rwarn</object-name>
        <object-name>lwarn</object-name>
        <emission> 
            <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
            <red>0</red>
            <green>1</green>
            <blue>0</blue>
        </emission>
    </animation>

    <animation> 
        <type>material</type>
        <object-name>nsafe</object-name>
        <object-name>rsafe</object-name>
        <object-name>lsafe</object-name>
        <emission> 
            <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
            <red>1</red>
            <green>0</green>
            <blue>0</blue>
        </emission>
    </animation>

    <animation>
        <type>select</type>
        <object-name>nwarn</object-name>
        <condition>
            <equals>
                <property>gear/gear[0]/position-norm</property>
                <value>1.0</value>
            </equals>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>nsafe</object-name>
        <condition>
            <greater-than>
                <property>gear/gear[0]/position-norm</property>
                <value>0</value>
            </greater-than>
            <less-than>
                <property>gear/gear[0]/position-norm</property>
                <value>1</value>
            </less-than>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>lwarn</object-name>
        <condition>
            <equals>
                <property>gear/gear[1]/position-norm</property>
                <value>1.0</value>
            </equals>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>lsafe</object-name>
        <condition>
            <greater-than>
                <property>gear/gear[1]/position-norm</property>
                <value>0</value>
            </greater-than>
            <less-than>
                <property>gear/gear[1]/position-norm</property>
                <value>1</value>
            </less-than>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>rwarn</object-name>
        <condition>
            <equals>
                <property>gear/gear[2]/position-norm</property>
                <value>1.0</value>
            </equals>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>rsafe</object-name>
        <condition>
            <greater-than>
                <property>gear/gear[2]/position-norm</property>
                <value>0</value>
            </greater-than>
            <less-than>
                <property>gear/gear[2]/position-norm</property>
                <value>1</value>
            </less-than>
        </condition>
    </animation>
    
<!-- Label text -->

<text>
	<name>LabelText</name>
	<type type="string">literal</type>
		<text type="string">landing Gear Position Indicator</text>
	<draw-text type="bool">true</draw-text>
	<font>Helvetica.txf</font>
		<character-size type="double">0.012</character-size>
		<character-aspect-ratio type="double">1.0</character-aspect-ratio>
	<axis-alignment>yz-plane</axis-alignment>
	<max-height>0.2</max-height>
	<max-width>0.07</max-width>
	<font-resolution>
		<width type="int">32</width>
		<height type="int">32</height>
	</font-resolution>
	<alignment>center-center</alignment>
	<offsets>
		<x-m> 0.01</x-m>
		<y-m> 0.0 </y-m>
		<z-m> 0.0 </z-m>
	</offsets>
</text>

<animation>
	<type>material</type>
		<object-name>LabelText</object-name>
	<emission>
		<red>1.0</red>
		<green>0.8</green>
		<blue>0.0</blue>
	</emission>
</animation>

<animation>
	<type>select</type>
		<object-name>LabelText</object-name>
	<condition>
		<property>/sim/panel-hotspots</property>
	</condition>
</animation>

</PropertyList>