1
0
Fork 0
fgdata/Aircraft/c172p/Models/Interior/Panel/Instruments/kt76a/kt76a.xml
2018-09-16 18:13:13 +01:00

706 lines
23 KiB
XML

<?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/lm-kt76ar</inherits-from>
<object-name>Dial1</object-name>
<object-name>Dial10</object-name>
<object-name>Dial100</object-name>
<object-name>Dial1000</object-name>
<object-name>Knob1</object-name>
<object-name>Knob10</object-name>
<object-name>Knob100</object-name>
<object-name>Knob1000</object-name>
<object-name>KnobMode</object-name>
</effect>
<effect>
<inherits-from>../../../../Effects/interior/lm-kt76a</inherits-from>
<object-name>Front</object-name>
<object-name>Ident</object-name>
<object-name>Ident-light</object-name>
<object-name>Border</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>
<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>Knob1</object-name>
<object-name>Knob10</object-name>
<object-name>Knob100</object-name>
<object-name>Knob1000</object-name>
<object-name>KnobMode</object-name>
<object-name>Front</object-name>
<object-name>Ident</object-name>
<object-name>Ident-light</object-name>
<object-name>Border</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>
<condition>
<not>
<property>/sim/rendering/shaders/skydome</property>
</not>
</condition>
<emission>
<red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
<green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
<blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
</emission>
</animation>
<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>1.0</red>
<green>0.6</green>
<blue>0.5</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>1.0</red>
<green>0.6</green>
<blue>0.5</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>1.0</red>
<green>0.6</green>
<blue>0.5</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>1.0</red>
<green>0.6</green>
<blue>0.5</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>1.0</red>
<green>0.6</green>
<blue>0.5</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.35593</x-m>
<y-m> 0.09646</y-m>
<z-m>-0.14554</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.34093</x-m>
<y-m> 0.09646</y-m>
<z-m>-0.14354</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.35593</x-m>
<y-m> 0.12346</y-m>
<z-m>-0.14554</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.34093</x-m>
<y-m> 0.12346</y-m>
<z-m>-0.14354</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.35593</x-m>
<y-m> 0.15046</y-m>
<z-m>-0.14554</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.34093</x-m>
<y-m> 0.15046</y-m>
<z-m>-0.14354</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.35593</x-m>
<y-m> 0.17746</y-m>
<z-m>-0.14554</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.34093</x-m>
<y-m> 0.17746</y-m>
<z-m>-0.14354</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.34993</x-m>
<y-m> 0.05394</y-m>
<z-m>-0.14354</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>