Implement keyboard mode for MCDU
This commit is contained in:
parent
3e2e519064
commit
dfa4afd2ee
3 changed files with 866 additions and 38 deletions
893
A320-main.xml
893
A320-main.xml
File diff suppressed because it is too large
Load diff
|
@ -37,6 +37,7 @@ var engType = props.globals.getNode("MCDUC/eng", 1);
|
|||
var database1 = props.globals.getNode("FMGC/internal/navdatabase", 1);
|
||||
var database2 = props.globals.getNode("FMGC/internal/navdatabase2", 1);
|
||||
var databaseCode = props.globals.getNode("FMGC/internal/navdatabasecode", 1);
|
||||
var mcdu_keyboard_entry = props.globals.getNode("MCDU/keyboard-entry", 1);
|
||||
|
||||
# RADNAV
|
||||
var vor1 = props.globals.getNode("FMGC/internal/vor1-mcdu", 1);
|
||||
|
|
|
@ -16,6 +16,7 @@ var MCDU_reset = func(i) {
|
|||
setprop("MCDU[" ~ i ~ "]/page", "MCDU");
|
||||
setprop("MCDU[" ~ i ~ "]/scratchpad", "SELECT DESIRED SYSTEM");
|
||||
setprop("MCDU[" ~ i ~ "]/scratchpad-msg", 0);
|
||||
setprop("MCDU/keyboard-entry", 0);
|
||||
setprop("MCDUC/flight-num", "");
|
||||
setprop("MCDUC/thracc-set", 0);
|
||||
setprop("MCDUC/reducacc-set", 0);
|
||||
|
@ -138,6 +139,15 @@ var MCDU_reset = func(i) {
|
|||
setprop("FMGC/print/mcdu/page2/R4req", 0);
|
||||
}
|
||||
|
||||
var setMode = func(will) {
|
||||
setprop("MCDU/keyboard-entry", will);
|
||||
if (will == 0) {
|
||||
gui.popupTip("MCDU keyboard entry disabled");
|
||||
} else {
|
||||
gui.popupTip("MCDU keyboard entry enabled");
|
||||
}
|
||||
}
|
||||
|
||||
var lskbutton = func(btn, i) {
|
||||
if (btn == "1") {
|
||||
if (getprop("MCDU[" ~ i ~ "]/page") == "MCDU") {
|
||||
|
|
Loading…
Reference in a new issue