1
0
Fork 0

HOLD page - connect butons

This commit is contained in:
Jonathan Redpath 2022-01-26 12:48:48 +00:00
parent 74eaf75477
commit 9b4fdcf5b5
2 changed files with 7 additions and 7 deletions

View file

@ -71,7 +71,7 @@ var holdPage = {
me.arrowsMatrix[1][1] = 1;
}
me.L1 = [sprintf("%03.0f°", me.waypoint.hold_inbound_radial), "INB CRS", "yel"];
me.L1 = [sprintf("%03.0f°", me.waypoint.hold_inbound_radial), "INB CRS", "blu"];
if (me.waypoint.hold_is_left_handed) {
me.L2 = ["L", " TURN", "blu"];
} else {
@ -129,12 +129,6 @@ var holdPage = {
} else {
mcdu_message(me.computer, "NOT ALLOWED");
}
} elsif (index == 6) {
if (fmgc.flightPlanController.temporaryFlag[me.computer]) {
setprop("/MCDU[" ~ me.computer ~ "]/page", "F-PLNA");
} else {
setprop("/MCDU[" ~ me.computer ~ "]/page", "LATREV");
}
}
},
pushbuttonRight: func(index) {

View file

@ -353,6 +353,8 @@ var lskbutton = func(btn, i) {
mcdu_scratchpad.scratchpads[i].empty();
}
}
} else if (page == "HOLD") {
canvas_mcdu.myHold[i].pushbuttonLeft(1);
} else if (page == "MCDUTEXT") {
atsu.freeTexts[i].selection = 0;
atsu.freeTexts[i].changed = 1;
@ -497,6 +499,8 @@ var lskbutton = func(btn, i) {
}
} else if (page == "VERTREV") {
canvas_mcdu.myVertRev[i].pushButtonLeft(2);
} else if (page == "HOLD") {
canvas_mcdu.myHold[i].pushbuttonLeft(2);
} else if (page == "MCDUTEXT") {
atsu.freeTexts[i].selection = 1;
atsu.freeTexts[i].changed = 1;
@ -624,6 +628,8 @@ var lskbutton = func(btn, i) {
}
} else if (page == "VERTREV") {
canvas_mcdu.myVertRev[i].pushButtonLeft(3);
} else if (page == "HOLD") {
canvas_mcdu.myHold[i].pushbuttonLeft(3);
} else if (page == "MCDUTEXT") {
atsu.freeTexts[i].selection = 2;
atsu.freeTexts[i].changed = 1;