diff --git a/Models/Instruments/MCDU1/INITA/INITA.xml b/Models/Instruments/MCDU1/INITA/INITA.xml index 2952d7b8..79c39883 100644 --- a/Models/Instruments/MCDU1/INITA/INITA.xml +++ b/Models/Instruments/MCDU1/INITA/INITA.xml @@ -837,6 +837,10 @@ initreq requeststar request + fltnumbox + coroutebox + cruisetempbox + costindexbox fromtobox 1 diff --git a/Models/Instruments/MCDU1/MCDU/EMPTY.ac b/Models/Instruments/MCDU1/MCDU/EMPTY.ac new file mode 100644 index 00000000..4dd7e1f9 --- /dev/null +++ b/Models/Instruments/MCDU1/MCDU/EMPTY.ac @@ -0,0 +1,3 @@ +AC3Db +OBJECT world +kids 0 diff --git a/Models/Instruments/MCDU1/MCDU/MCDU.xml b/Models/Instruments/MCDU1/MCDU/MCDU.xml new file mode 100644 index 00000000..e6344d2b --- /dev/null +++ b/Models/Instruments/MCDU1/MCDU/MCDU.xml @@ -0,0 +1,189 @@ + + + + + + + EMPTY.ac + + + page + + -0.001 + 0.0 + 0.083 + + center-center + yz-plane + text-value + MCDU MENU + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + fmgctext + + -0.001 + -0.045 + 0.0725 + + left-center + yz-plane + text-value + <FMGC + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + acarstext + + -0.001 + -0.045 + 0.0605 + + left-center + yz-plane + text-value + <ACARS + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + aidstext + + -0.001 + -0.045 + 0.0505 + + left-center + yz-plane + text-value + <AIDS + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + cfdstext + + -0.001 + -0.045 + 0.029 + + left-center + yz-plane + text-value + <CFDS + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + return + + -0.001 + 0.043 + 0.0190 + + right-center + yz-plane + text-value + RETURN> + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + + + material + page + aidstext + fmgctext + acarstext + cfdstext + return + + 1 + 1 + 1 + + + 0 + 0 + 0 + + + 0 + 0 + 0 + + + 1 + 1 + 1 + + + + diff --git a/Models/Instruments/MCDU1/MCDU1.xml b/Models/Instruments/MCDU1/MCDU1.xml index b210b6c6..2341d263 100644 --- a/Models/Instruments/MCDU1/MCDU1.xml +++ b/Models/Instruments/MCDU1/MCDU1.xml @@ -202,6 +202,28 @@ + + MCDU + MCDU/MCDU.xml + + 180 + 180 + 90 + + + + + /systems/electrical/bus/ac1 + 25 + + + /MCDU[0]/page + MCDU + + + + + pick init @@ -240,6 +262,25 @@ + + pick + mcdu + + + true + + nasal + + + + /systems/electrical/bus/ac1 + 25 + + + + + + pick perf diff --git a/Models/Instruments/MCDU1/STATUS/STATUS.xml b/Models/Instruments/MCDU1/STATUS/STATUS.xml index 26fd3d9c..bbe2af99 100644 --- a/Models/Instruments/MCDU1/STATUS/STATUS.xml +++ b/Models/Instruments/MCDU1/STATUS/STATUS.xml @@ -62,7 +62,7 @@ -0.001 -0.043 - 0.0715 + 0.0705 left-center yz-plane @@ -144,7 +144,7 @@ true false false - 0.0055 + 0.0045 64 64 @@ -178,13 +178,13 @@ seconddata2 -0.001 - -0.040 + -0.0455 0.0505 left-center yz-plane text-value - 29JAN-26FEB + <-29JAN-26FEB false BoeingCDU-Large.ttf autopilot/serviceable diff --git a/Models/Instruments/MCDU2/INITA/INITA.xml b/Models/Instruments/MCDU2/INITA/INITA.xml index 2952d7b8..79c39883 100644 --- a/Models/Instruments/MCDU2/INITA/INITA.xml +++ b/Models/Instruments/MCDU2/INITA/INITA.xml @@ -837,6 +837,10 @@ initreq requeststar request + fltnumbox + coroutebox + cruisetempbox + costindexbox fromtobox 1 diff --git a/Models/Instruments/MCDU2/MCDU/EMPTY.ac b/Models/Instruments/MCDU2/MCDU/EMPTY.ac new file mode 100644 index 00000000..4dd7e1f9 --- /dev/null +++ b/Models/Instruments/MCDU2/MCDU/EMPTY.ac @@ -0,0 +1,3 @@ +AC3Db +OBJECT world +kids 0 diff --git a/Models/Instruments/MCDU2/MCDU/MCDU.xml b/Models/Instruments/MCDU2/MCDU/MCDU.xml new file mode 100644 index 00000000..e6344d2b --- /dev/null +++ b/Models/Instruments/MCDU2/MCDU/MCDU.xml @@ -0,0 +1,189 @@ + + + + + + + EMPTY.ac + + + page + + -0.001 + 0.0 + 0.083 + + center-center + yz-plane + text-value + MCDU MENU + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + fmgctext + + -0.001 + -0.045 + 0.0725 + + left-center + yz-plane + text-value + <FMGC + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + acarstext + + -0.001 + -0.045 + 0.0605 + + left-center + yz-plane + text-value + <ACARS + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + aidstext + + -0.001 + -0.045 + 0.0505 + + left-center + yz-plane + text-value + <AIDS + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + cfdstext + + -0.001 + -0.045 + 0.029 + + left-center + yz-plane + text-value + <CFDS + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + return + + -0.001 + 0.043 + 0.0190 + + right-center + yz-plane + text-value + RETURN> + false + BoeingCDU-Large.ttf + autopilot/serviceable + true + false + false + 0.0050 + + 64 + 64 + + + + + + + material + page + aidstext + fmgctext + acarstext + cfdstext + return + + 1 + 1 + 1 + + + 0 + 0 + 0 + + + 0 + 0 + 0 + + + 1 + 1 + 1 + + + + diff --git a/Models/Instruments/MCDU2/MCDU2.xml b/Models/Instruments/MCDU2/MCDU2.xml index aee1f004..21e0087c 100644 --- a/Models/Instruments/MCDU2/MCDU2.xml +++ b/Models/Instruments/MCDU2/MCDU2.xml @@ -202,6 +202,28 @@ + + MCDU + MCDU/MCDU.xml + + 180 + 180 + 90 + + + + + /systems/electrical/bus/ac2 + 25 + + + /MCDU[1]/page + MCDU + + + + + pick init @@ -240,6 +262,25 @@ + + pick + mcdu + + + true + + nasal + + + + /systems/electrical/bus/ac2 + 25 + + + + + + pick perf diff --git a/Models/Instruments/MCDU2/STATUS/STATUS.xml b/Models/Instruments/MCDU2/STATUS/STATUS.xml index 26fd3d9c..bbe2af99 100644 --- a/Models/Instruments/MCDU2/STATUS/STATUS.xml +++ b/Models/Instruments/MCDU2/STATUS/STATUS.xml @@ -62,7 +62,7 @@ -0.001 -0.043 - 0.0715 + 0.0705 left-center yz-plane @@ -144,7 +144,7 @@ true false false - 0.0055 + 0.0045 64 64 @@ -178,13 +178,13 @@ seconddata2 -0.001 - -0.040 + -0.0455 0.0505 left-center yz-plane text-value - 29JAN-26FEB + <-29JAN-26FEB false BoeingCDU-Large.ttf autopilot/serviceable diff --git a/Nasal/MCDU1.nas b/Nasal/MCDU1.nas index d4a17697..09b3500b 100644 --- a/Nasal/MCDU1.nas +++ b/Nasal/MCDU1.nas @@ -446,11 +446,17 @@ var pagebutton = func(btn) { if (btn == "perf") { if (getprop("/FMGC/status/phase") == 0 or getprop("/FMGC/status/phase") == 1) { setprop("/MCDU[0]/page", "TO"); + } else if (getprop("/FMGC/status/phase") == 2) { + setprop("/MCDU[0]/page", "CLB"); + } else if (getprop("/FMGC/status/phase") == 3) { + setprop("/MCDU[0]/page", "CRZ"); } } else if (btn == "init") { setprop("/MCDU[0]/page", "INITA"); } else if (btn == "data") { setprop("/MCDU[0]/page", "DATA"); + } else if (btn == "mcdu") { + setprop("/MCDU[0]/page", "MCDU"); } } diff --git a/Nasal/MCDU2.nas b/Nasal/MCDU2.nas index 303952fb..101dd16b 100644 --- a/Nasal/MCDU2.nas +++ b/Nasal/MCDU2.nas @@ -446,11 +446,17 @@ var pagebutton = func(btn) { if (btn == "perf") { if (getprop("/FMGC/status/phase") == 0 or getprop("/FMGC/status/phase") == 1) { setprop("/MCDU[1]/page", "TO"); + } else if (getprop("/FMGC/status/phase") == 2) { + setprop("/MCDU[1]/page", "CLB"); + } else if (getprop("/FMGC/status/phase") == 3) { + setprop("/MCDU[1]/page", "CRZ"); } } else if (btn == "init") { setprop("/MCDU[1]/page", "INITA"); } else if (btn == "data") { setprop("/MCDU[1]/page", "DATA"); + } else if (btn == "mcdu") { + setprop("/MCDU[1]/page", "MCDU"); } }