Fix alt-fuel/time label
This commit is contained in:
parent
b15d93c999
commit
3beb08a142
1 changed files with 11 additions and 3 deletions
|
@ -1672,10 +1672,18 @@ var canvas_MCDU_base = {
|
||||||
me["Simple_C3"].hide();
|
me["Simple_C3"].hide();
|
||||||
me["Simple_L4"].setText(sprintf("%.1f", alt_fuel.getValue()));
|
me["Simple_L4"].setText(sprintf("%.1f", alt_fuel.getValue()));
|
||||||
me["Simple_C4"].show();
|
me["Simple_C4"].show();
|
||||||
if (num(alt_time.getValue()) > 9.9) {
|
if (alt_fuel_set.getValue() == 1) {
|
||||||
me["Simple_C4"].setText(sprintf("/%s ", alt_time.getValue()));
|
if (num(alt_fuel.getValue()) > 9.9) {
|
||||||
|
me["Simple_C4"].setText(sprintf("/%s ", alt_time.getValue()));
|
||||||
|
} else {
|
||||||
|
me["Simple_C4"].setText(sprintf("/%s ", alt_time.getValue()));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
me["Simple_C4"].setText(sprintf("/%s ", alt_time.getValue()));
|
if (num(alt_fuel.getValue()) > 9.9) {
|
||||||
|
me["Simple_C4"].setText(sprintf("/%s ", alt_time.getValue()));
|
||||||
|
} else {
|
||||||
|
me["Simple_C4"].setText(sprintf("/%s ", alt_time.getValue()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
me["Simple_L5"].setText(sprintf("%.1f/" ~ final_time.getValue(), final_fuel.getValue()));
|
me["Simple_L5"].setText(sprintf("%.1f/" ~ final_time.getValue(), final_fuel.getValue()));
|
||||||
me["Simple_C5"].hide();
|
me["Simple_C5"].hide();
|
||||||
|
|
Loading…
Reference in a new issue