<?xml version="1.0" encoding="UTF-8" ?>

<PropertyList>
    <path>gps155.ac</path>
    
    <effect>
        <inherits-from>../../Effects/gps155</inherits-from>
        <parameters>
            <lightmap-factor n="0" type="float"><use>controls/lighting/panel-norm</use></lightmap-factor>
        </parameters>
        
        <object-name>BrightnessKnob</object-name>
        <object-name>BtnCLR</object-name>
        <object-name>BtnCRSR</object-name>
        <object-name>BtnDirect</object-name>
        <object-name>BtnENT</object-name>
        <object-name>BtnMSG</object-name>
        <object-name>BtnNAV</object-name>
        <object-name>BtnNRST</object-name>
        <object-name>BtnRTE</object-name>
        <object-name>BtnSET</object-name>
        <object-name>BtnWPT</object-name>
        <object-name>Case</object-name>
        <object-name>DataKnobInner</object-name>
        <object-name>DataKnobOuter</object-name>
        <object-name>Spacer.001</object-name>
        <object-name>Spacer.002</object-name>
        <object-name>Spacer.003</object-name>
        <object-name>Spacer.004</object-name>
        <object-name>Spacer.005</object-name>
        <object-name>Spacer.006</object-name>
        <object-name>Spacer.007</object-name>
        <object-name>Spacer.008</object-name>
        <object-name>Spacer.009</object-name>
        <object-name>Spacer.010</object-name>
        <object-name>Spacer.011</object-name>
        <object-name>Spacer.012</object-name>
        <object-name>Spacer.013</object-name>
    </effect>

    <animation>
        <type>material</type>
        <object-name>Screen</object-name>
        <condition>
            <property>controls/gps155/power</property>
        </condition>
        <emission>
          <red>1</red>
          <green>1</green>
          <blue>1</blue>
          <factor-prop>/controls/gps155/brightness</factor-prop>
        </emission>
    </animation>

    <animation>
        <type>material</type>
        <object-name>LampMSG</object-name>
        <condition>
            <property>/instrumentation/gps155/lights/msg</property>
        </condition>
        <emission>
          <red>1</red>
          <green>0</green>
          <blue>0</blue>
          <factor-prop>/controls/gps155/power</factor-prop>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>LampMSG</object-name>
        <condition>
            <equals>
                <property>/instrumentation/gps155/lights/mode</property>
                <value>MSG</value>
            </equals>
        </condition>
        <emission>
          <red>0</red>
          <green>1</green>
          <blue>0</blue>
          <factor-prop>/controls/gps155/power</factor-prop>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>LampNRST</object-name>
        <condition>
            <equals>
                <property>/instrumentation/gps155/lights/mode</property>
                <value>NRST</value>
            </equals>
        </condition>
        <emission>
          <red>0</red>
          <green>1</green>
          <blue>0</blue>
          <factor-prop>/controls/gps155/power</factor-prop>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>LampSET</object-name>
        <condition>
            <equals>
                <property>/instrumentation/gps155/lights/mode</property>
                <value>SET</value>
            </equals>
        </condition>
        <emission>
          <red>0</red>
          <green>1</green>
          <blue>0</blue>
          <factor-prop>/controls/gps155/power</factor-prop>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>LampRTE</object-name>
        <condition>
            <equals>
                <property>/instrumentation/gps155/lights/mode</property>
                <value>RTE</value>
            </equals>
        </condition>
        <emission>
          <red>0</red>
          <green>1</green>
          <blue>0</blue>
          <factor-prop>/controls/gps155/power</factor-prop>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>LampWPT</object-name>
        <condition>
            <equals>
                <property>/instrumentation/gps155/lights/mode</property>
                <value>WPT</value>
            </equals>
        </condition>
        <emission>
          <red>0</red>
          <green>1</green>
          <blue>0</blue>
          <factor-prop>/controls/gps155/power</factor-prop>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>LampNAV</object-name>
        <condition>
            <equals>
                <property>/instrumentation/gps155/lights/mode</property>
                <value>NAV</value>
            </equals>
        </condition>
        <emission>
          <red>0</red>
          <green>1</green>
          <blue>0</blue>
          <factor-prop>/controls/gps155/power</factor-prop>
        </emission>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>BrightnessKnob</object-name>
        <property>controls/gps155/brightness</property>
        <interpolation>
            <entry><ind>0</ind><dep>0</dep></entry>
            <entry><ind>0.1</ind><dep>90</dep></entry>
            <entry><ind>1</ind><dep>270</dep></entry>
        </interpolation>
        <center>
            <x-m>0.02</x-m>
            <y-m>-0.06943</y-m>
            <z-m>-0.016762</z-m>
        </center>
        <axis>
            <x>-1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>knob</type>
        <object-name>BrightnessKnob</object-name>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>controls/gps155/brightness</property>
                <min>0</min>
                <max>1</max>
                <factor>0.1</factor>
                <wrap type="bool">false</wrap>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
                    if (!getprop('controls/gps155/brightness'))
                     setprop('controls/gps155/power', 0);
                    else
                     setprop('controls/gps155/power', 1);
                </script>
            </binding>
        </action>
    </animation>

    <animation>
        <type>knob</type>
        <object-name>DataKnobInner</object-name>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>controls/gps155/data-inner</property>
                <min>0</min>
                <max>1000</max>
                <factor>1</factor>
                <wrap type="bool">true</wrap>
            </binding>
        </action>
    </animation>
    <animation>
        <type>knob</type>
        <object-name>DataKnobOuter</object-name>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>controls/gps155/data-outer</property>
                <min>0</min>
                <max>1000</max>
                <factor>1</factor>
                <wrap type="bool">true</wrap>
            </binding>
        </action>
    </animation>
        
    <animation>
        <object-name>BtnCLR</object-name>
        <type>pick</type>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property>controls/gps155/key</property>
                <value>CLR</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>controls/gps155/key</property>
                    <value type="string"></value>
                </binding>
            </mod-up>
        </action>
    </animation>
    <animation>
        <object-name>BtnCRSR</object-name>
        <type>pick</type>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property>controls/gps155/key</property>
                <value>CRSR</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>controls/gps155/key</property>
                    <value type="string"></value>
                </binding>
            </mod-up>
        </action>
    </animation>
    <animation>
        <object-name>BtnDirect</object-name>
        <type>pick</type>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property>controls/gps155/key</property>
                <value>DCT</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>controls/gps155/key</property>
                    <value type="string"></value>
                </binding>
            </mod-up>
        </action>
    </animation>
    <animation>
        <object-name>BtnENT</object-name>
        <type>pick</type>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property>controls/gps155/key</property>
                <value>ENT</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>controls/gps155/key</property>
                    <value type="string"></value>
                </binding>
            </mod-up>
        </action>
    </animation>
    <animation>
        <object-name>BtnMSG</object-name>
        <type>pick</type>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property>controls/gps155/key</property>
                <value>MSG</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>controls/gps155/key</property>
                    <value type="string"></value>
                </binding>
            </mod-up>
        </action>
    </animation>
    <animation>
        <object-name>BtnNAV</object-name>
        <type>pick</type>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property>controls/gps155/key</property>
                <value>NAV</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>controls/gps155/key</property>
                    <value type="string"></value>
                </binding>
            </mod-up>
        </action>
    </animation>
    <animation>
        <object-name>BtnNRST</object-name>
        <type>pick</type>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property>controls/gps155/key</property>
                <value>NRST</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>controls/gps155/key</property>
                    <value type="string"></value>
                </binding>
            </mod-up>
        </action>
    </animation>
    <animation>
        <object-name>BtnRTE</object-name>
        <type>pick</type>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property>controls/gps155/key</property>
                <value>RTE</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>controls/gps155/key</property>
                    <value type="string"></value>
                </binding>
            </mod-up>
        </action>
    </animation>
    <animation>
        <object-name>BtnSET</object-name>
        <type>pick</type>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property>controls/gps155/key</property>
                <value>SET</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>controls/gps155/key</property>
                    <value type="string"></value>
                </binding>
            </mod-up>
        </action>
    </animation>
    <animation>
        <object-name>BtnWPT</object-name>
        <type>pick</type>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property>controls/gps155/key</property>
                <value>WPT</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>controls/gps155/key</property>
                    <value type="string"></value>
                </binding>
            </mod-up>
        </action>
    </animation>
    
</PropertyList>
