prepare for middle click MCDU

This commit is contained in:
Joshua Davidson 2017-05-29 13:23:26 -04:00
parent b0dfb0db2e
commit 11a43f589d
8 changed files with 352 additions and 0 deletions

View file

@ -317,6 +317,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.lskbutton_b("1");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -335,6 +349,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.lskbutton_b("2");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -353,6 +381,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.lskbutton_b("3");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -371,6 +413,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.lskbutton_b("4");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -389,6 +445,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.lskbutton_b("5");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -407,6 +477,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.lskbutton_b("6");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
@ -426,6 +510,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.rskbutton_b("1");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -444,6 +542,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.rskbutton_b("2");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -462,6 +574,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.rskbutton_b("3");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -480,6 +606,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.rskbutton_b("4");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -498,6 +638,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.rskbutton_b("5");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -516,6 +670,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.rskbutton_b("6");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>

View file

@ -317,6 +317,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.lskbutton_b("1");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -335,6 +349,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.lskbutton_b("2");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -353,6 +381,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.lskbutton_b("3");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -371,6 +413,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.lskbutton_b("4");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -389,6 +445,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.lskbutton_b("5");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -407,6 +477,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.lskbutton_b("6");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
@ -426,6 +510,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.rskbutton_b("1");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -444,6 +542,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.rskbutton_b("2");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -462,6 +574,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.rskbutton_b("3");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -480,6 +606,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.rskbutton_b("4");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -498,6 +638,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.rskbutton_b("5");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>
<type>pick</type> <type>pick</type>
@ -516,6 +670,20 @@
</condition> </condition>
</binding> </binding>
</action> </action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.rskbutton_b("6");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation> </animation>
<animation> <animation>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View file

@ -86,6 +86,10 @@ var lskbutton = func(btn) {
} }
} }
var lskbutton_b = func(btn) {
# Special Middle Click Functions
}
var rskbutton = func(btn) { var rskbutton = func(btn) {
if (btn == "1") { if (btn == "1") {
if (getprop("/MCDU[0]/page") == "INITA") { if (getprop("/MCDU[0]/page") == "INITA") {
@ -120,6 +124,10 @@ var rskbutton = func(btn) {
} }
} }
var rskbutton_b = func(btn) {
# Special Middle Click Functions
}
var initInputA = func(key) { var initInputA = func(key) {
var scratchpad = getprop("/MCDU[0]/scratchpad"); var scratchpad = getprop("/MCDU[0]/scratchpad");
if (key == "L3") { if (key == "L3") {

View file

@ -86,6 +86,10 @@ var lskbutton = func(btn) {
} }
} }
var lskbutton_b = func(btn) {
# Special Middle Click Functions
}
var rskbutton = func(btn) { var rskbutton = func(btn) {
if (btn == "1") { if (btn == "1") {
if (getprop("/MCDU[1]/page") == "INITA") { if (getprop("/MCDU[1]/page") == "INITA") {
@ -120,6 +124,10 @@ var rskbutton = func(btn) {
} }
} }
var rskbutton_b = func(btn) {
# Special Middle Click Functions
}
var initInputA = func(key) { var initInputA = func(key) {
var scratchpad = getprop("/MCDU[1]/scratchpad"); var scratchpad = getprop("/MCDU[1]/scratchpad");
if (key == "L3") { if (key == "L3") {