move all button logic to nasal
This commit is contained in:
parent
b5a4cd868f
commit
650d9fdb3f
4 changed files with 572 additions and 192 deletions
|
@ -182,29 +182,71 @@
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu1.pagebutton("perfto");</script>
|
<script>mcdu1.pagebutton("perf");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<or>
|
|
||||||
<equals>
|
|
||||||
<property>/FMGC/status/phase</property>
|
|
||||||
<value>0</value>
|
|
||||||
</equals>
|
|
||||||
<equals>
|
|
||||||
<property>/FMGC/status/phase</property>
|
|
||||||
<value>1</value>
|
|
||||||
</equals>
|
|
||||||
</or>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L1</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.latbutton("1");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L2</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.latbutton("2");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L3</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.latbutton("3");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>L4</object-name>
|
<object-name>L4</object-name>
|
||||||
|
@ -213,18 +255,48 @@
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu1.pagebutton("status");</script>
|
<script>mcdu1.latbutton("4");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L5</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.latbutton("5");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L6</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.latbutton("6");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
|
||||||
<property>/MCDU[0]/page</property>
|
|
||||||
<value>DATA</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
|
@ -232,28 +304,113 @@
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>right</object-name>
|
<object-name>R1</object-name>
|
||||||
<action>
|
<action>
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu1.pagebutton("data2");</script>
|
<script>mcdu1.vertbutton("1");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
|
||||||
<property>/MCDU[0]/page</property>
|
|
||||||
<value>DATA</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>R2</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.vertbutton("2");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>R3</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.vertbutton("3");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>R4</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.vertbutton("4");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>R5</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.vertbutton("5");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>R6</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.vertbutton("6");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>left</object-name>
|
<object-name>left</object-name>
|
||||||
|
@ -262,18 +419,12 @@
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu1.pagebutton("data2");</script>
|
<script>mcdu1.arrowbutton("left");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
|
||||||
<property>/MCDU[0]/page</property>
|
|
||||||
<value>DATA</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
|
@ -286,42 +437,48 @@
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu1.pagebutton("data");</script>
|
<script>mcdu1.arrowbutton("right");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
|
||||||
<property>/MCDU[0]/page</property>
|
|
||||||
<value>DATA2</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>left</object-name>
|
<object-name>up</object-name>
|
||||||
<action>
|
<action>
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu1.pagebutton("data");</script>
|
<script>mcdu1.arrowbutton("up");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>down</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.arrowbutton("down");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
|
||||||
<property>/MCDU[0]/page</property>
|
|
||||||
<value>DATA2</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</offsets>
|
</offsets>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
<and>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
<equals>
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
<and>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
<equals>
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
<and>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
<equals>
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
<and>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
<equals>
|
||||||
|
@ -147,7 +147,7 @@
|
||||||
<script>mcdu2.pagebutton("init");</script>
|
<script>mcdu2.pagebutton("init");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -166,7 +166,7 @@
|
||||||
<script>mcdu2.pagebutton("data");</script>
|
<script>mcdu2.pagebutton("data");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -182,29 +182,71 @@
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu2.pagebutton("perfto");</script>
|
<script>mcdu2.pagebutton("perf");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<or>
|
|
||||||
<equals>
|
|
||||||
<property>/FMGC/status/phase</property>
|
|
||||||
<value>0</value>
|
|
||||||
</equals>
|
|
||||||
<equals>
|
|
||||||
<property>/FMGC/status/phase</property>
|
|
||||||
<value>1</value>
|
|
||||||
</equals>
|
|
||||||
</or>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L1</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.latbutton("1");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L2</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.latbutton("2");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L3</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.latbutton("3");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>L4</object-name>
|
<object-name>L4</object-name>
|
||||||
|
@ -213,18 +255,48 @@
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu2.pagebutton("status");</script>
|
<script>mcdu2.latbutton("4");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L5</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.latbutton("5");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L6</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.latbutton("6");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
|
||||||
<property>/MCDU[1]/page</property>
|
|
||||||
<value>DATA</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
|
@ -232,28 +304,113 @@
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>right</object-name>
|
<object-name>R1</object-name>
|
||||||
<action>
|
<action>
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu2.pagebutton("data2");</script>
|
<script>mcdu2.vertbutton("1");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
|
||||||
<property>/MCDU[1]/page</property>
|
|
||||||
<value>DATA</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>R2</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.vertbutton("2");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>R3</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.vertbutton("3");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>R4</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.vertbutton("4");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>R5</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.vertbutton("5");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>R6</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.vertbutton("6");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>left</object-name>
|
<object-name>left</object-name>
|
||||||
|
@ -262,18 +419,12 @@
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu2.pagebutton("data2");</script>
|
<script>mcdu2.arrowbutton("left");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
|
||||||
<property>/MCDU[1]/page</property>
|
|
||||||
<value>DATA</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
|
@ -286,42 +437,48 @@
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu2.pagebutton("data");</script>
|
<script>mcdu2.arrowbutton("right");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
|
||||||
<property>/MCDU[1]/page</property>
|
|
||||||
<value>DATA2</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>left</object-name>
|
<object-name>up</object-name>
|
||||||
<action>
|
<action>
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>mcdu2.pagebutton("data");</script>
|
<script>mcdu2.arrowbutton("up");</script>
|
||||||
|
<condition>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>down</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu2.arrowbutton("down");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac1</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
<equals>
|
|
||||||
<property>/MCDU[1]/page</property>
|
|
||||||
<value>DATA2</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
|
@ -338,7 +495,7 @@
|
||||||
<script>mcdu2.button("A");</script>
|
<script>mcdu2.button("A");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -356,7 +513,7 @@
|
||||||
<script>mcdu2.button("B");</script>
|
<script>mcdu2.button("B");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -374,7 +531,7 @@
|
||||||
<script>mcdu2.button("C");</script>
|
<script>mcdu2.button("C");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -392,7 +549,7 @@
|
||||||
<script>mcdu2.button("D");</script>
|
<script>mcdu2.button("D");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -410,7 +567,7 @@
|
||||||
<script>mcdu2.button("E");</script>
|
<script>mcdu2.button("E");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -428,7 +585,7 @@
|
||||||
<script>mcdu2.button("F");</script>
|
<script>mcdu2.button("F");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -446,7 +603,7 @@
|
||||||
<script>mcdu2.button("G");</script>
|
<script>mcdu2.button("G");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -464,7 +621,7 @@
|
||||||
<script>mcdu2.button("H");</script>
|
<script>mcdu2.button("H");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -482,7 +639,7 @@
|
||||||
<script>mcdu2.button("I");</script>
|
<script>mcdu2.button("I");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -500,7 +657,7 @@
|
||||||
<script>mcdu2.button("J");</script>
|
<script>mcdu2.button("J");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -518,7 +675,7 @@
|
||||||
<script>mcdu2.button("K");</script>
|
<script>mcdu2.button("K");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -536,7 +693,7 @@
|
||||||
<script>mcdu2.button("L");</script>
|
<script>mcdu2.button("L");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -554,7 +711,7 @@
|
||||||
<script>mcdu2.button("M");</script>
|
<script>mcdu2.button("M");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -572,7 +729,7 @@
|
||||||
<script>mcdu2.button("N");</script>
|
<script>mcdu2.button("N");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -590,7 +747,7 @@
|
||||||
<script>mcdu2.button("O");</script>
|
<script>mcdu2.button("O");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -608,7 +765,7 @@
|
||||||
<script>mcdu2.button("P");</script>
|
<script>mcdu2.button("P");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -626,7 +783,7 @@
|
||||||
<script>mcdu2.button("Q");</script>
|
<script>mcdu2.button("Q");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -644,7 +801,7 @@
|
||||||
<script>mcdu2.button("R");</script>
|
<script>mcdu2.button("R");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -662,7 +819,7 @@
|
||||||
<script>mcdu2.button("S");</script>
|
<script>mcdu2.button("S");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -680,7 +837,7 @@
|
||||||
<script>mcdu2.button("T");</script>
|
<script>mcdu2.button("T");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -698,7 +855,7 @@
|
||||||
<script>mcdu2.button("U");</script>
|
<script>mcdu2.button("U");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -716,7 +873,7 @@
|
||||||
<script>mcdu2.button("V");</script>
|
<script>mcdu2.button("V");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -734,7 +891,7 @@
|
||||||
<script>mcdu2.button("W");</script>
|
<script>mcdu2.button("W");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -752,7 +909,7 @@
|
||||||
<script>mcdu2.button("X");</script>
|
<script>mcdu2.button("X");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -770,7 +927,7 @@
|
||||||
<script>mcdu2.button("Y");</script>
|
<script>mcdu2.button("Y");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -788,7 +945,7 @@
|
||||||
<script>mcdu2.button("Z");</script>
|
<script>mcdu2.button("Z");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -806,7 +963,7 @@
|
||||||
<script>mcdu2.button("SLASH");</script>
|
<script>mcdu2.button("SLASH");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -824,7 +981,7 @@
|
||||||
<script>mcdu2.button("SP");</script>
|
<script>mcdu2.button("SP");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -842,7 +999,7 @@
|
||||||
<script>mcdu2.button("OVFY");</script>
|
<script>mcdu2.button("OVFY");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -860,7 +1017,7 @@
|
||||||
<script>mcdu2.button("CLR");</script>
|
<script>mcdu2.button("CLR");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -878,7 +1035,7 @@
|
||||||
<script>mcdu2.button("0");</script>
|
<script>mcdu2.button("0");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -896,7 +1053,7 @@
|
||||||
<script>mcdu2.button("1");</script>
|
<script>mcdu2.button("1");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -914,7 +1071,7 @@
|
||||||
<script>mcdu2.button("2");</script>
|
<script>mcdu2.button("2");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -932,7 +1089,7 @@
|
||||||
<script>mcdu2.button("3");</script>
|
<script>mcdu2.button("3");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -950,7 +1107,7 @@
|
||||||
<script>mcdu2.button("4");</script>
|
<script>mcdu2.button("4");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -968,7 +1125,7 @@
|
||||||
<script>mcdu2.button("5");</script>
|
<script>mcdu2.button("5");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -986,7 +1143,7 @@
|
||||||
<script>mcdu2.button("6");</script>
|
<script>mcdu2.button("6");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -1004,7 +1161,7 @@
|
||||||
<script>mcdu2.button("7");</script>
|
<script>mcdu2.button("7");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -1022,7 +1179,7 @@
|
||||||
<script>mcdu2.button("8");</script>
|
<script>mcdu2.button("8");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -1040,7 +1197,7 @@
|
||||||
<script>mcdu2.button("9");</script>
|
<script>mcdu2.button("9");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -1058,7 +1215,7 @@
|
||||||
<script>mcdu2.button("DOT");</script>
|
<script>mcdu2.button("DOT");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -1076,7 +1233,7 @@
|
||||||
<script>mcdu2.button("PLUSMINUS");</script>
|
<script>mcdu2.button("PLUSMINUS");</script>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<greater-than-equals>
|
||||||
<property>/systems/electrical/bus/ac2</property>
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
|
@ -14,37 +14,70 @@ var MCDU_reset = func {
|
||||||
setprop("/MCDU[0]/scratchpad", " ");
|
setprop("/MCDU[0]/scratchpad", " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
var pagebutton = func(btn) {
|
var latbutton = func(btn) {
|
||||||
if (btn == "init") {
|
if (btn == "4") {
|
||||||
setprop("/MCDU[0]/page", "NONE");
|
if (getprop("/MCDU[0]/page") == "DATA") {
|
||||||
settimer(func {
|
|
||||||
setprop("/MCDU[0]/page", "INITA");
|
|
||||||
}, 0.2);
|
|
||||||
}
|
|
||||||
if (btn == "data") {
|
|
||||||
setprop("/MCDU[0]/page", "NONE");
|
|
||||||
settimer(func {
|
|
||||||
setprop("/MCDU[0]/page", "DATA");
|
|
||||||
}, 0.2);
|
|
||||||
}
|
|
||||||
if (btn == "status") {
|
|
||||||
setprop("/MCDU[0]/page", "NONE");
|
setprop("/MCDU[0]/page", "NONE");
|
||||||
settimer(func {
|
settimer(func {
|
||||||
setprop("/MCDU[0]/page", "STATUS");
|
setprop("/MCDU[0]/page", "STATUS");
|
||||||
}, 0.2);
|
}, 0.2);
|
||||||
}
|
}
|
||||||
if (btn == "data2") {
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var vertbutton = func(btn) {
|
||||||
|
# LOL Nothing here :D
|
||||||
|
}
|
||||||
|
|
||||||
|
var arrowbutton = func(btn) {
|
||||||
|
if (btn == "left") {
|
||||||
setprop("/MCDU[0]/page", "NONE");
|
setprop("/MCDU[0]/page", "NONE");
|
||||||
|
if (getprop("/MCDU[0]/page") == "DATA") {
|
||||||
settimer(func {
|
settimer(func {
|
||||||
setprop("/MCDU[0]/page", "DATA2");
|
setprop("/MCDU[0]/page", "DATA2");
|
||||||
}, 0.2);
|
}, 0.2);
|
||||||
|
} else if (getprop("/MCDU[0]/page") == "DATA2") {
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[0]/page", "DATA");
|
||||||
|
}, 0.2);
|
||||||
}
|
}
|
||||||
if (btn == "perfto") {
|
} else if (btn == "right") {
|
||||||
setprop("/MCDU[0]/page", "NONE");
|
setprop("/MCDU[0]/page", "NONE");
|
||||||
|
if (getprop("/MCDU[0]/page") == "DATA") {
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[0]/page", "DATA2");
|
||||||
|
}, 0.2);
|
||||||
|
} else if (getprop("/MCDU[0]/page") == "DATA2") {
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[0]/page", "DATA");
|
||||||
|
}, 0.2);
|
||||||
|
}
|
||||||
|
} else if (btn == "up") {
|
||||||
|
# Nothing for now
|
||||||
|
} else if (btn == "down") {
|
||||||
|
# Nothing for now
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var pagebutton = func(btn) {
|
||||||
|
if (btn == "perf") {
|
||||||
|
setprop("/MCDU[0]/page", "NONE");
|
||||||
|
if (getprop("/FMGC/status/phase") == 0 or getprop("/FMGC/status/phase") == 1) {
|
||||||
settimer(func {
|
settimer(func {
|
||||||
setprop("/MCDU[0]/page", "TO");
|
setprop("/MCDU[0]/page", "TO");
|
||||||
}, 0.2);
|
}, 0.2);
|
||||||
}
|
}
|
||||||
|
} else if (btn == "init") {
|
||||||
|
setprop("/MCDU[0]/page", "NONE");
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[0]/page", "INITA");
|
||||||
|
}, 0.2);
|
||||||
|
} else if (btn == "data") {
|
||||||
|
setprop("/MCDU[0]/page", "NONE");
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[0]/page", "DATA");
|
||||||
|
}, 0.2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var button = func(btn) {
|
var button = func(btn) {
|
||||||
|
|
|
@ -14,37 +14,70 @@ var MCDU_reset = func {
|
||||||
setprop("/MCDU[1]/scratchpad", " ");
|
setprop("/MCDU[1]/scratchpad", " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
var pagebutton = func(btn) {
|
var latbutton = func(btn) {
|
||||||
if (btn == "init") {
|
if (btn == "4") {
|
||||||
setprop("/MCDU[1]/page", "NONE");
|
if (getprop("/MCDU[1]/page") == "DATA") {
|
||||||
settimer(func {
|
|
||||||
setprop("/MCDU[1]/page", "INITA");
|
|
||||||
}, 0.2);
|
|
||||||
}
|
|
||||||
if (btn == "data") {
|
|
||||||
setprop("/MCDU[1]/page", "NONE");
|
|
||||||
settimer(func {
|
|
||||||
setprop("/MCDU[1]/page", "DATA");
|
|
||||||
}, 0.2);
|
|
||||||
}
|
|
||||||
if (btn == "status") {
|
|
||||||
setprop("/MCDU[1]/page", "NONE");
|
setprop("/MCDU[1]/page", "NONE");
|
||||||
settimer(func {
|
settimer(func {
|
||||||
setprop("/MCDU[1]/page", "STATUS");
|
setprop("/MCDU[1]/page", "STATUS");
|
||||||
}, 0.2);
|
}, 0.2);
|
||||||
}
|
}
|
||||||
if (btn == "data2") {
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var vertbutton = func(btn) {
|
||||||
|
# LOL Nothing here :D
|
||||||
|
}
|
||||||
|
|
||||||
|
var arrowbutton = func(btn) {
|
||||||
|
if (btn == "left") {
|
||||||
setprop("/MCDU[1]/page", "NONE");
|
setprop("/MCDU[1]/page", "NONE");
|
||||||
|
if (getprop("/MCDU[1]/page") == "DATA") {
|
||||||
settimer(func {
|
settimer(func {
|
||||||
setprop("/MCDU[1]/page", "DATA2");
|
setprop("/MCDU[1]/page", "DATA2");
|
||||||
}, 0.2);
|
}, 0.2);
|
||||||
|
} else if (getprop("/MCDU[1]/page") == "DATA2") {
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[1]/page", "DATA");
|
||||||
|
}, 0.2);
|
||||||
}
|
}
|
||||||
if (btn == "perfto") {
|
} else if (btn == "right") {
|
||||||
setprop("/MCDU[1]/page", "NONE");
|
setprop("/MCDU[1]/page", "NONE");
|
||||||
|
if (getprop("/MCDU[1]/page") == "DATA") {
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[1]/page", "DATA2");
|
||||||
|
}, 0.2);
|
||||||
|
} else if (getprop("/MCDU[1]/page") == "DATA2") {
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[1]/page", "DATA");
|
||||||
|
}, 0.2);
|
||||||
|
}
|
||||||
|
} else if (btn == "up") {
|
||||||
|
# Nothing for now
|
||||||
|
} else if (btn == "down") {
|
||||||
|
# Nothing for now
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var pagebutton = func(btn) {
|
||||||
|
if (btn == "perf") {
|
||||||
|
setprop("/MCDU[1]/page", "NONE");
|
||||||
|
if (getprop("/FMGC/status/phase") == 0 or getprop("/FMGC/status/phase") == 1) {
|
||||||
settimer(func {
|
settimer(func {
|
||||||
setprop("/MCDU[1]/page", "TO");
|
setprop("/MCDU[1]/page", "TO");
|
||||||
}, 0.2);
|
}, 0.2);
|
||||||
}
|
}
|
||||||
|
} else if (btn == "init") {
|
||||||
|
setprop("/MCDU[1]/page", "NONE");
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[1]/page", "INITA");
|
||||||
|
}, 0.2);
|
||||||
|
} else if (btn == "data") {
|
||||||
|
setprop("/MCDU[1]/page", "NONE");
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[1]/page", "DATA");
|
||||||
|
}, 0.2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var button = func(btn) {
|
var button = func(btn) {
|
||||||
|
@ -104,7 +137,7 @@ var button = func(btn) {
|
||||||
} else if (btn == "SLASH") {
|
} else if (btn == "SLASH") {
|
||||||
setprop("/MCDU[1]/scratchpad", scratchpad ~ "/");
|
setprop("/MCDU[1]/scratchpad", scratchpad ~ "/");
|
||||||
} else if (btn == "SP") {
|
} else if (btn == "SP") {
|
||||||
setprop("/MCDU[1]/scratchpad", scratchpad ~ " "); # adds a space
|
setprop("/MCDU[1]/scratchpad", scratchpad ~ " "); # this button adds a space
|
||||||
} else if (btn == "CLR") {
|
} else if (btn == "CLR") {
|
||||||
var scratchpad = getprop("/MCDU[1]/scratchpad");
|
var scratchpad = getprop("/MCDU[1]/scratchpad");
|
||||||
if (scratchpad == " ") {
|
if (scratchpad == " ") {
|
||||||
|
|
Reference in a new issue