1
0
Fork 0
fgdata/Aircraft/Instruments-3d/bxp6401/bxp6401.xml
Benedikt Wolf 13998863c9 S3: correct image size
BXP6401: Mode knob should not wrap
2023-06-17 11:18:21 +02:00

332 lines
8.3 KiB
XML

<?xml version="1.0"?>
<!-- Becker BXP-6401 simulation by Benedikt Wolf (D-ECHO)
thanks to: Gilberto Agostinho (texture work)
WooT (AR3201 that was used as a base)
Joshua Davidson (canvas basic structure from A320)
#### Version 06/2023
-->
<PropertyList>
<name>bxp6401</name>
<path>bxp6401.ac</path>
<animation>
<type>material</type>
<object-name>BXP6401.display</object-name>
<emission>
<red>1</red>
<green>1</green>
<blue>1</blue>
<factor-prop>/instrumentation/transponder[0]/brightness</factor-prop>
</emission>
</animation>
<effect>
<inherits-from>Effects/model-interior-display</inherits-from>
<parameters>
<dirt-factor>1.0</dirt-factor>
<contrast>0.75</contrast>
</parameters>
<object-name>BXP6401.display</object-name>
</effect>
<animation>
<type>pick</type>
<object-name>vfr.btn</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>/instrumentation/transponder/id-code</property>
<value>7000</value>
</binding>
<binding>
<command>property-assign</command>
<property>/instrumentation/transponder/inputs/vfr-pressed</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/instrumentation/transponder/inputs/vfr-pressed</property>
<value>0</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>translate</type>
<object-name>vfr.btn</object-name>
<property>/instrumentation/transponder/inputs/vfr-pressed</property>
<axis>
<x>1</x>
</axis>
<factor>-0.0005</factor>
</animation>
<animation>
<type>pick</type>
<object-name>idt.btn</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>/instrumentation/transponder/inputs/idt-pressed</property>
<value>1</value>
</binding>
<binding>
<command>nasal</command>
<script>
bxp6401.ident_btn();
</script>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/instrumentation/transponder/inputs/idt-pressed</property>
<value>0</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>translate</type>
<object-name>idt.btn</object-name>
<property>/instrumentation/transponder/inputs/idt-pressed</property>
<axis>
<x>1</x>
</axis>
<factor>-0.0005</factor>
</animation>
<!-- code -->
<animation>
<type>pick</type>
<object-name>sel.knob</object-name>
<action>
<button>0</button>
<binding>
<command>property-cycle</command>
<property>/instrumentation/transponder[0]/inputs/current-change</property>
<value>1</value>
<value>2</value>
<value>3</value>
<value>4</value>
<value>0</value>
</binding>
<binding>
<command>property-toggle</command>
<property>/instrumentation/transponder/inputs/sel-knob-pushed</property>
</binding>
<mod-up>
<binding>
<command>property-toggle</command>
<property>/instrumentation/transponder/inputs/sel-knob-pushed</property>
</binding>
</mod-up>
</action>
<action>
<button>3</button>
<binding>
<condition>
<equals>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>0</value>
</equals>
</condition>
<command>property-assign</command>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>1</value>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>1</value>
</equals>
</condition>
<command>property-adjust</command>
<property>instrumentation/transponder/inputs/digit[3]</property>
<step>1</step>
<min>0</min>
<max>8</max>
<wrap>true</wrap>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>2</value>
</equals>
</condition>
<command>property-adjust</command>
<property>instrumentation/transponder/inputs/digit[2]</property>
<step>1</step>
<min>0</min>
<max>8</max>
<wrap>true</wrap>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>3</value>
</equals>
</condition>
<command>property-adjust</command>
<property>instrumentation/transponder/inputs/digit[1]</property>
<step>1</step>
<min>0</min>
<max>8</max>
<wrap>true</wrap>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>4</value>
</equals>
</condition>
<command>property-adjust</command>
<property>instrumentation/transponder/inputs/digit[0]</property>
<step>1</step>
<min>0</min>
<max>8</max>
<wrap>true</wrap>
</binding>
<binding>
<command>property-adjust</command>
<property>instrumentation/transponder/inputs/sel-knob</property>
<step>5</step>
</binding>
</action>
<action>
<button>4</button>
<binding>
<condition>
<equals>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>0</value>
</equals>
</condition>
<command>property-assign</command>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>1</value>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>1</value>
</equals>
</condition>
<command>property-adjust</command>
<property>instrumentation/transponder/inputs/digit[3]</property>
<step>-1</step>
<min>0</min>
<max>7</max>
<wrap>true</wrap>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>2</value>
</equals>
</condition>
<command>property-adjust</command>
<property>instrumentation/transponder/inputs/digit[2]</property>
<step>-1</step>
<min>0</min>
<max>7</max>
<wrap>true</wrap>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>3</value>
</equals>
</condition>
<command>property-adjust</command>
<property>instrumentation/transponder/inputs/digit[1]</property>
<step>-1</step>
<min>0</min>
<max>7</max>
<wrap>true</wrap>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/transponder/inputs/current-change</property>
<value>4</value>
</equals>
</condition>
<command>property-adjust</command>
<property>instrumentation/transponder/inputs/digit[0]</property>
<step>-1</step>
<min>0</min>
<max>7</max>
<wrap>true</wrap>
</binding>
<binding>
<command>property-adjust</command>
<property>instrumentation/transponder/inputs/sel-knob</property>
<step>-5</step>
</binding>
</action>
</animation>
<animation>
<type>rotate</type>
<object-name>sel.knob</object-name>
<property>instrumentation/transponder/inputs/sel-knob</property>
<center>
<y-m>0.011</y-m>
<z-m>-0.01688</z-m>
</center>
<axis>
<x>-1</x>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>sel.knob</object-name>
<property>/instrumentation/transponder/inputs/sel-knob-pushed</property>
<factor>-0.001</factor>
<axis>
<x>1</x>
</axis>
</animation>
<!-- Mode -->
<animation>
<type>knob</type>
<object-name>mode.knob</object-name>
<property>instrumentation/transponder/inputs/knob-mode</property>
<interpolation>
<entry><ind> 0 </ind><dep> 0 </dep></entry>
<entry><ind> 1 </ind><dep> 50 </dep></entry>
<entry><ind> 3 </ind><dep> 50 </dep></entry>
<entry><ind> 4 </ind><dep> 100 </dep></entry>
<entry><ind> 5 </ind><dep> 150 </dep></entry>
</interpolation>
<center>
<y-m>-0.01564</y-m>
<z-m>-0.01686</z-m>
</center>
<axis>
<x>-1</x>
</axis>
<action>
<binding>
<command>property-cycle</command>
<property>instrumentation/transponder/inputs/knob-mode</property>
<value>0</value>
<value>1</value>
<value>4</value>
<value>5</value>
<wrap>0</wrap>
</binding>
</action>
</animation>
</PropertyList>