1
0
Fork 0

Fix speed labels

This commit is contained in:
Matthew Maring 2020-04-12 14:39:23 -04:00
parent a9c44598de
commit bcf473dac0

View file

@ -1687,9 +1687,9 @@ var canvas_MCDU_base = {
} else {
me["Simple_L1"].setText("SELECTED");
if (getprop("it-autoflight/input/kts-mach")) {
me["Simple_L4"].setText(sprintf(" %d", int(getprop("it-autoflight/input/spd-mach"))));
me["Simple_L4"].setText(sprintf(" %3.3f", getprop("it-autoflight/input/spd-mach")));
} else {
me["Simple_L4"].setText(sprintf(" %d", int(getprop("it-autoflight/input/spd-kts"))));
me["Simple_L4"].setText(sprintf(" %s", int(getprop("it-autoflight/input/spd-kts"))));
}
me.fontLeft(0, 0, 0, default, 0, 0);
}
@ -1704,7 +1704,11 @@ var canvas_MCDU_base = {
}
me["Simple_L3S"].setText(" MANAGED");
me["Simple_L3"].setText(sprintf(" %s", getprop("FMGC/internal/mng-spd")));
if (getprop("it-autoflight/input/kts-mach")) {
me["Simple_L3"].setText(sprintf(" %3.3f", getprop("FMGC/internal/mng-spd")));
} else {
me["Simple_L3"].setText(sprintf(" %s", int(getprop("FMGC/internal/mng-spd"))));
}
me["Simple_L5S"].setText(" EXPEDITE");
me["Simple_L5"].setText(" T/O PHASE");
@ -1830,9 +1834,9 @@ var canvas_MCDU_base = {
} else {
me["Simple_L1"].setText("SELECTED");
if (getprop("it-autoflight/input/kts-mach")) {
me["Simple_L4"].setText(sprintf(" %d", int(getprop("it-autoflight/input/spd-mach"))));
me["Simple_L4"].setText(sprintf(" %3.3f", getprop("it-autoflight/input/spd-mach")));
} else {
me["Simple_L4"].setText(sprintf(" %d", int(getprop("it-autoflight/input/spd-kts"))));
me["Simple_L4"].setText(sprintf(" %s", int(getprop("it-autoflight/input/spd-kts"))));
}
me.fontLeft(0, 0, 0, default, 0, 0);
}
@ -1849,7 +1853,11 @@ var canvas_MCDU_base = {
me["Simple_L2S"].setText(" CI");
me["Simple_L3S"].setText(" MANAGED");
me["Simple_L3"].setText(sprintf(" %s", getprop("FMGC/internal/mng-spd")));
if (getprop("it-autoflight/input/kts-mach")) {
me["Simple_L3"].setText(sprintf(" %3.3f", getprop("FMGC/internal/mng-spd")));
} else {
me["Simple_L3"].setText(sprintf(" %s", int(getprop("FMGC/internal/mng-spd"))));
}
me["Simple_R1S"].setText("DEST EFOB");
me["Simple_R1"].setText("---");
@ -1980,9 +1988,9 @@ var canvas_MCDU_base = {
} else {
me["Simple_L1"].setText("SELECTED");
if (getprop("it-autoflight/input/kts-mach")) {
me["Simple_L4"].setText(sprintf(" %d", int(getprop("it-autoflight/input/spd-mach"))));
me["Simple_L4"].setText(sprintf(" %3.3f", getprop("it-autoflight/input/spd-mach")));
} else {
me["Simple_L4"].setText(sprintf(" %d", int(getprop("it-autoflight/input/spd-kts"))));
me["Simple_L4"].setText(sprintf(" %s", int(getprop("it-autoflight/input/spd-kts"))));
}
me.fontLeft(0, 0, 0, default, 0, 0);
}
@ -1999,7 +2007,11 @@ var canvas_MCDU_base = {
me["Simple_L2S"].setText(" CI");
me["Simple_L3S"].setText(" MANAGED");
me["Simple_L3"].setText(sprintf(" %s", getprop("FMGC/internal/mng-spd")));
if (getprop("it-autoflight/input/kts-mach")) {
me["Simple_L3"].setText(sprintf(" %3.3f", getprop("FMGC/internal/mng-spd")));
} else {
me["Simple_L3"].setText(sprintf(" %s", int(getprop("FMGC/internal/mng-spd"))));
}
me["Simple_L5"].setText(" EXPEDITE");