1
0
Fork 0
A320-family/Nasal/MCDU/DATA.nas

70 lines
1.5 KiB
Text
Raw Normal View History

2020-04-30 19:26:36 +00:00
# A3XX mCDU by Joshua Davidson (Octal450), Jonathan Redpath, and Matthew Maring (mattmaring)
2019-10-14 16:48:35 +00:00
2020-04-18 05:36:46 +00:00
# Copyright (c) 2020 Josh Davidson (Octal450)
2019-10-14 16:48:35 +00:00
var dataInput = func(key, i) {
if (key == "L1") {
2020-02-07 16:10:54 +00:00
setprop("MCDU[" ~ i ~ "]/page", "POSMON");
2019-10-14 16:48:35 +00:00
}
if (key == "L2") {
2020-02-07 16:10:54 +00:00
setprop("MCDU[" ~ i ~ "]/page", "IRSMON");
2019-10-14 16:48:35 +00:00
}
if (key == "R5") {
2020-02-07 16:10:54 +00:00
setprop("MCDU[" ~ i ~ "]/page", "PRINTFUNC");
2019-10-14 16:48:35 +00:00
}
}
var printInput = func(key, i) {
if (key == "L1") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page1/L1auto", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "L2") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page1/L2auto", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "L3") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page1/L3auto", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "L5") {
2020-02-07 16:10:54 +00:00
setprop("MCDU[" ~ i ~ "]/page", "DATA");
2019-10-14 16:48:35 +00:00
}
if (key == "R1") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page1/R1req", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "R2") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page1/R2req", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "R3") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page1/R3req", 1);
2019-10-14 16:48:35 +00:00
}
}
var printInput2 = func(key, i) {
if (key == "L1") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page2/L1auto", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "L2") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page2/L2auto", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "L3") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page2/L3auto", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "L4") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page2/L4auto", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "L6") {
2020-02-07 16:10:54 +00:00
setprop("MCDU[" ~ i ~ "]/page", "DATA");
2019-10-14 16:48:35 +00:00
}
if (key == "R1") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page2/R1req", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "R2") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page2/R2req", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "R3") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page2/R3req", 1);
2019-10-14 16:48:35 +00:00
}
if (key == "R4") {
2020-02-07 16:10:54 +00:00
setprop("FMGC/print/mcdu/page2/R4req", 1);
2019-10-14 16:48:35 +00:00
}
}