123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- ##########################################
- # DR400-regent by PAF team
- # April 2012 : Modified by PAF team
- # http://equipe-flightgear.forumactif.com
- ##########################################
- -->
- <PropertyList>
- <path>kt76a.ac</path>
- <params>
- <serviceable>instrumentation/transponder/serviceable</serviceable>
- <knob-mode>instrumentation/transponder/inputs/knob-mode</knob-mode>
- <ident-btn>instrumentation/transponder/inputs/ident-btn</ident-btn>
- <digit0>instrumentation/transponder/inputs/digit[0]</digit0>
- <digit1>instrumentation/transponder/inputs/digit[1]</digit1>
- <digit2>instrumentation/transponder/inputs/digit[2]</digit2>
- <digit3>instrumentation/transponder/inputs/digit[3]</digit3>
- <dimming>instrumentation/transponder/dimming-norm</dimming>
- </params>
- <effect>
- <inherits-from>../../../../Effects/interior/c172p-interior-radiance</inherits-from>
- <object-name>Dial1</object-name>
- <object-name>Dial10</object-name>
- <object-name>Dial100</object-name>
- <object-name>Dial1000</object-name>
- <object-name>Front</object-name>
- <object-name>Ident</object-name>
- <object-name>Ident-light</object-name>
- <object-name>Knob1</object-name>
- <object-name>Knob10</object-name>
- <object-name>Knob100</object-name>
- <object-name>Knob1000</object-name>
- <object-name>Border</object-name>
- <object-name>KnobMode</object-name>
- <object-name>vitre</object-name>
- <object-name>off</object-name>
- <object-name>stby</object-name>
- <object-name>on</object-name>
- <object-name>alt</object-name>
- <object-name>test</object-name>
- </effect>
- <animation>
- <object-name>Dial1</object-name>
- <object-name>Dial10</object-name>
- <object-name>Dial100</object-name>
- <object-name>Dial1000</object-name>
- <object-name>Front</object-name>
- <object-name>Ident</object-name>
- <object-name>Ident-light</object-name>
- <object-name>Knob1</object-name>
- <object-name>Knob10</object-name>
- <object-name>Knob100</object-name>
- <object-name>Knob1000</object-name>
- <object-name>Border</object-name>
- <object-name>KnobMode</object-name>
- <object-name>vitre</object-name>
- <object-name>off</object-name>
- <object-name>stby</object-name>
- <object-name>on</object-name>
- <object-name>alt</object-name>
- <object-name>test</object-name>
- </animation>
- <animation>
- <type>material</type>
- <object-name>Dial1</object-name>
- <object-name>Dial10</object-name>
- <object-name>Dial100</object-name>
- <object-name>Dial1000</object-name>
- <object-name>Front</object-name>
- <object-name>Ident</object-name>
- <object-name>Ident-light</object-name>
- <object-name>Knob1</object-name>
- <object-name>Knob10</object-name>
- <object-name>Knob100</object-name>
- <object-name>Knob1000</object-name>
- <object-name>Border</object-name>
- <object-name>KnobMode</object-name>
- <object-name>vitre</object-name>
- <object-name>off</object-name>
- <object-name>stby</object-name>
- <object-name>on</object-name>
- <object-name>alt</object-name>
- <object-name>test</object-name>
- <property-base>/instrumentation/transponder</property-base>
- <texture-prop>texture-file</texture-prop>
- </animation>
- <animation>
- <type>material</type>
- <object-name>Ident</object-name>
- <object-name>Ident-light</object-name>
- <emission>
- <red>0.6</red>
- <green>0.25</green>
- <blue>0.00025</blue>
- <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
- </emission>
- </animation>
- <animation>
- <type>material</type>
- <object-name>stby</object-name>
- <condition>
- <and>
- <not>
- <property>sim/rendering/rembrandt/enabled</property>
- </not>
- <equals>
- <property>instrumentation/transponder/inputs/knob-mode</property>
- <value>1</value>
- </equals>
- <greater-than>
- <property>/sim/model/c172p/lighting/trans</property>
- <value>0.0</value>
- </greater-than>
- </and>
- </condition>
- <emission>
- <red>0.9</red>
- <green>0.7</green>
- <blue>0.7</blue>
- <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
- </emission>
- </animation>
- <animation>
- <type>material</type>
- <object-name>on</object-name>
- <condition>
- <and>
- <not>
- <property>sim/rendering/rembrandt/enabled</property>
- </not>
- <equals>
- <property>instrumentation/transponder/inputs/knob-mode</property>
- <value>4</value>
- </equals>
- <greater-than>
- <property>/sim/model/c172p/lighting/trans</property>
- <value>0.0</value>
- </greater-than>
- </and>
- </condition>
- <emission>
- <red>0.9</red>
- <green>0.7</green>
- <blue>0.7</blue>
- <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
- </emission>
- </animation>
- <animation>
- <type>material</type>
- <object-name>alt</object-name>
- <condition>
- <and>
- <not>
- <property>sim/rendering/rembrandt/enabled</property>
- </not>
- <equals>
- <property>instrumentation/transponder/inputs/knob-mode</property>
- <value>5</value>
- </equals>
- <greater-than>
- <property>/sim/model/c172p/lighting/trans</property>
- <value>0.0</value>
- </greater-than>
- </and>
- </condition>
- <emission>
- <red>0.9</red>
- <green>0.7</green>
- <blue>0.7</blue>
- <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
- </emission>
- </animation>
- <animation>
- <type>material</type>
- <object-name>test</object-name>
- <condition>
- <and>
- <not>
- <property>sim/rendering/rembrandt/enabled</property>
- </not>
- <equals>
- <property>instrumentation/transponder/inputs/knob-mode</property>
- <value>2</value>
- </equals>
- <greater-than>
- <property>/sim/model/c172p/lighting/trans</property>
- <value>0.0</value>
- </greater-than>
- </and>
- </condition>
- <emission>
- <red>0.9</red>
- <green>0.7</green>
- <blue>0.7</blue>
- <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
- </emission>
- </animation>
- <animation>
- <type>material</type>
- <object-name>Dial1</object-name>
- <object-name>Dial10</object-name>
- <object-name>Dial100</object-name>
- <object-name>Dial1000</object-name>
- <condition>
- <and>
- <not>
- <property>sim/rendering/rembrandt/enabled</property>
- </not>
- <greater-than>
- <property>/sim/model/c172p/lighting/trans</property>
- <value>0.0</value>
- </greater-than>
- </and>
- </condition>
- <emission>
- <red>0.9</red>
- <green>0.7</green>
- <blue>0.7</blue>
- <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
- </emission>
- </animation>
- <animation>
- <type>noshadow</type>
- <object-name>vitre</object-name>
- </animation>
- <effect>
- <inherits-from>Effects/model-transparent</inherits-from>
- <object-name>vitre</object-name>
- <condition>
- <property>sim/rendering/rembrandt/enabled</property>
- </condition>
- </effect>
- <animation>
- <type>rotate</type>
- <object-name>Dial1000</object-name>
- <!--<property>instrumentation/transponder/inputs/digit[3]</property>-->
- <property alias="../../params/digit3"/>
- <factor>45</factor>
- <center>
- <x-m> 0.01453 </x-m>
- <y-m> -0.0185 </y-m>
- <z-m> -0.0011345 </z-m>
- </center>
- <axis>
- <x> -1 </x>
- <y> 0 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>rotate</type>
- <object-name>Knob1000</object-name>
- <!--<property>instrumentation/transponder/inputs/digit[3]</property>-->
- <property alias="../../params/digit3"/>
- <factor>45</factor>
- <center>
- <x-m> 0.01453 </x-m>
- <y-m> -0.0185 </y-m>
- <z-m> 0.000655 </z-m>
- </center>
- <axis>
- <x> -1 </x>
- <y> 0 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>Knob1000</object-name>
- <visible>true</visible>
- <drag-scale-px>20</drag-scale-px>
- <action>
- <binding>
- <command>property-adjust</command>
- <!--<property>instrumentation/transponder/inputs/digit[3]</property>-->
- <property alias="../../../../params/digit3"/>
- <factor>1</factor>
- <min>0</min>
- <max>8</max>
- <wrap>true</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kt76a-dial")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>transponder-squawk</tooltip-id>
- <label>Squawk: %s</label>
- <property>instrumentation/transponder/id-code</property>
- <mapping>nasal</mapping>
- <script>
- return sprintf("%04d", arg[0]);
- </script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>rotate</type>
- <object-name>Dial100</object-name>
- <!--<property>instrumentation/transponder/inputs/digit[2]</property>-->
- <property alias="../../params/digit2"/>
- <factor>45</factor>
- <center>
- <x-m> 0.004 </x-m>
- <y-m> 0.0085 </y-m>
- <z-m> -0.0011345 </z-m>
- </center>
- <axis>
- <x> -1 </x>
- <y> 0 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>rotate</type>
- <object-name>Knob100</object-name>
- <!--<property>instrumentation/transponder/inputs/digit[2]</property>-->
- <property alias="../../params/digit2"/>
- <factor>45</factor>
- <center>
- <x-m> 0.01453 </x-m>
- <y-m> 0.0085 </y-m>
- <z-m> 0.000655 </z-m>
- </center>
- <axis>
- <x> -1 </x>
- <y> 0 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>Knob100</object-name>
- <visible>true</visible>
- <drag-scale-px>20</drag-scale-px>
- <action>
- <binding>
- <command>property-adjust</command>
- <!--<property>instrumentation/transponder/inputs/digit[2]</property>-->
- <property alias="../../../../params/digit2"/>
- <factor>1</factor>
- <min>0</min>
- <max>8</max>
- <wrap>true</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kt76a-dial")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>transponder-squawk</tooltip-id>
- <label>Squawk: %s</label>
- <property>instrumentation/transponder/id-code</property>
- <mapping>nasal</mapping>
- <script>
- return sprintf("%04d", arg[0]);
- </script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>rotate</type>
- <object-name>Dial10</object-name>
- <!--<property>instrumentation/transponder/inputs/digit[1]</property>-->
- <property alias="../../params/digit1"/>
- <factor>45</factor>
- <center>
- <x-m> 0.004 </x-m>
- <y-m> 0.0355 </y-m>
- <z-m> -0.0011345 </z-m>
- </center>
- <axis>
- <x> -1 </x>
- <y> 0 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>rotate</type>
- <object-name>Knob10</object-name>
- <!--<property>instrumentation/transponder/inputs/digit[1]</property>-->
- <property alias="../../params/digit1"/>
- <factor>45</factor>
- <center>
- <x-m> 0.01453 </x-m>
- <y-m> 0.0355 </y-m>
- <z-m> 0.000655 </z-m>
- </center>
- <axis>
- <x> -1 </x>
- <y> 0 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>Knob10</object-name>
- <visible>true</visible>
- <drag-scale-px>20</drag-scale-px>
- <action>
- <binding>
- <command>property-adjust</command>
- <!--<property>instrumentation/transponder/inputs/digit[1]</property>-->
- <property alias="../../../../params/digit1"/>
- <factor>1</factor>
- <min>0</min>
- <max>8</max>
- <wrap>true</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kt76a-dial")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>transponder-squawk</tooltip-id>
- <label>Squawk: %s</label>
- <property>instrumentation/transponder/id-code</property>
- <mapping>nasal</mapping>
- <script>
- return sprintf("%04d", arg[0]);
- </script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>rotate</type>
- <object-name>Dial1</object-name>
- <!--<property>instrumentation/transponder/inputs/digit[0]</property>-->
- <property alias="../../params/digit0"/>
- <factor>45</factor>
- <center>
- <x-m> 0.004 </x-m>
- <y-m> 0.0625 </y-m>
- <z-m> -0.0011345 </z-m>
- </center>
- <axis>
- <x> -1 </x>
- <y> 0 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>rotate</type>
- <object-name>Knob1</object-name>
- <!--<property>instrumentation/transponder/inputs/digit[0]</property>-->
- <property alias="../../params/digit0"/>
- <factor>45</factor>
- <center>
- <x-m> 0.01453 </x-m>
- <y-m> 0.0625 </y-m>
- <z-m> 0.000655 </z-m>
- </center>
- <axis>
- <x> -1 </x>
- <y> 0 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>Knob1</object-name>
- <visible>true</visible>
- <drag-scale-px>20</drag-scale-px>
- <action>
- <binding>
- <command>property-adjust</command>
- <!--<property>instrumentation/transponder/inputs/digit[0]</property>-->
- <property alias="../../../../params/digit0"/>
- <factor>1</factor>
- <min>0</min>
- <max>8</max>
- <wrap>true</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kt76a-dial")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>transponder-squawk</tooltip-id>
- <label>Squawk: %s</label>
- <property>instrumentation/transponder/id-code</property>
- <mapping>nasal</mapping>
- <script>
- return sprintf("%04d", arg[0]);
- </script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>KnobMode</object-name>
- <visible>true</visible>
- <drag-scale-px>20</drag-scale-px>
- <action>
- <binding>
- <command>property-cycle</command>
- <!--<property>/instrumentation/transponder/inputs/knob-mode</property>-->
- <property alias="../../../../params/knob-mode"/>
- <wrap>0</wrap>
- <value>0</value>
- <!-- OFF -->
- <value>1</value>
- <!-- SBY -->
- <value>4</value>
- <!-- ON -->
- <value>5</value>
- <!-- ALT -->
- <value>2</value>
- <!-- TST -->
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kt76a-mode")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>transponder-mode-btn</tooltip-id>
- <label>Mode: %s</label>
- <!--<property>instrumentation/transponder/inputs/knob-mode</property>-->
- <property alias="../../../../params/knob-mode"/>
- <mapping>nasal</mapping>
- <script>
- var m = arg[0];
- if(m == 1) return 'STANDBY';
- if(m == 4) return 'ON';
- if(m == 5) return 'ALTITUDE';
- if(m == 2) return 'TEST';
- return 'OFF';
- </script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>rotate</type>
- <object-name>KnobMode</object-name>
- <!--<property>/instrumentation/transponder/inputs/knob-mode</property>-->
- <property alias="../../params/knob-mode"/>
- <factor>1</factor>
- <interpolation>
- <entry>
- <ind>0</ind>
- <dep>0</dep>
- </entry>
- <entry>
- <ind>1</ind>
- <dep>45</dep>
- </entry>
- <entry>
- <ind>4</ind>
- <dep>90</dep>
- </entry>
- <entry>
- <ind>5</ind>
- <dep>135</dep>
- </entry>
- <entry>
- <ind>2</ind>
- <dep>180</dep>
- </entry>
- </interpolation>
- <center>
- <x-m> 0.01453 </x-m>
- <y-m> -0.06102 </y-m>
- <z-m> 0.000655 </z-m>
- </center>
- <axis>
- <x> -1 </x>
- <y> 0 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>pick</type>
- <visible>true</visible>
- <object-name>Ident</object-name>
- <action>
- <button>0</button>
- <repeatable>false</repeatable>
- <binding>
- <command>property-assign</command>
- <!--<property>/instrumentation/transponder/inputs/ident-btn</property>-->
- <property alias="../../../../params/ident-btn"/>
- <value type="bool">true</value>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kt76a-ident")</script>
- </binding>
- <mod-up>
- <binding>
- <command>property-assign</command>
- <!--<property>/instrumentation/transponder/inputs/ident-btn</property>-->
- <property alias="../../../../../params/ident-btn"/>
- <value type="bool">false</value>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kt76a-ident")</script>
- </binding>
- </mod-up>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>transponder-ident</tooltip-id>
- <label>Identify to ATC</label>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>translate</type>
- <object-name>Ident</object-name>
- <!--<property>/instrumentation/transponder/inputs/ident-btn</property>-->
- <property alias="../../params/ident-btn"/>
- <factor> 0.0018 </factor>
- <axis>
- <x> -1 </x>
- <y> 0 </y>
- <z> 0 </z>
- </axis>
- </animation>
- </PropertyList>
|