1
0
Fork 0
This commit is contained in:
Jonathan Redpath 2022-01-26 12:56:15 +00:00
parent 9b4fdcf5b5
commit d67ff09a79
2 changed files with 10 additions and 2 deletions

View file

@ -29,8 +29,8 @@ var fplnItem = {
if (wptName[0] == "VECTORS") { if (wptName[0] == "VECTORS") {
return ["MANUAL", me.getSubText(), me.colour]; return ["MANUAL", me.getSubText(), me.colour];
} else { } else {
if (me.wp.fly_type == "HOLD") { if (me.wp.fly_type == "Hold") {
return ["HOLD " ~ me.wp.hold_is_left_handed ? "L" : "R", me.getSubText(), me.colour]; return ["HOLD " ~ (me.wp.hold_is_left_handed ? "L" : "R"), me.getSubText(), me.colour];
} else { } else {
if (size(wptName) == 2) { if (size(wptName) == 2) {
return[wptName[0] ~ wptName[1 ~ (me.wp.fly_type == "flyOver" ? "@" : "")], me.getSubText(), me.colour]; return[wptName[0] ~ wptName[1 ~ (me.wp.fly_type == "flyOver" ? "@" : "")], me.getSubText(), me.colour];

View file

@ -112,20 +112,28 @@ var holdPage = {
if (index == 1) { if (index == 1) {
if (size(me.scratchpad) <= 3 and num(me.scratchpad) != nil) { if (size(me.scratchpad) <= 3 and num(me.scratchpad) != nil) {
me.waypoint.hold_inbound_radial = me.scratchpad; me.waypoint.hold_inbound_radial = me.scratchpad;
mcdu_scratchpad.scratchpads[me.computer].empty();
me._setupPageWithData();
} else { } else {
mcdu_message(me.computer, "NOT ALLOWED"); mcdu_message(me.computer, "NOT ALLOWED");
} }
} else if (index == 2) { } else if (index == 2) {
if (me.scratchpad == "L") { if (me.scratchpad == "L") {
me.waypoint.hold_is_left_handed = 1; me.waypoint.hold_is_left_handed = 1;
mcdu_scratchpad.scratchpads[me.computer].empty();
me._setupPageWithData();
} elsif (me.scratchpad == "R") { } elsif (me.scratchpad == "R") {
me.waypoint.hold_is_left_handed = 0; me.waypoint.hold_is_left_handed = 0;
mcdu_scratchpad.scratchpads[me.computer].empty();
me._setupPageWithData();
} else { } else {
mcdu_message(me.computer, "NOT ALLOWED"); mcdu_message(me.computer, "NOT ALLOWED");
} }
} elsif (index == 3) { } elsif (index == 3) {
if (num(me.scratchpad) != nil) { if (num(me.scratchpad) != nil) {
me.waypoint.hold_time_or_distance = me.scratchpad; me.waypoint.hold_time_or_distance = me.scratchpad;
mcdu_scratchpad.scratchpads[me.computer].empty();
me._setupPageWithData();
} else { } else {
mcdu_message(me.computer, "NOT ALLOWED"); mcdu_message(me.computer, "NOT ALLOWED");
} }