Correct fuel prediction animation
This commit is contained in:
parent
a84ce9b4e9
commit
8da6258c2c
2 changed files with 14 additions and 8 deletions
|
@ -1577,12 +1577,18 @@ var canvas_MCDU_base = {
|
||||||
me["Simple_L6"].setText("---.-");
|
me["Simple_L6"].setText("---.-");
|
||||||
me["Simple_R2"].hide();
|
me["Simple_R2"].hide();
|
||||||
me["INITB_Block"].show();
|
me["INITB_Block"].show();
|
||||||
me["Simple_R3S"].show();
|
if (zfwSet.getValue() == 1) {
|
||||||
me["Simple_R3"].show();
|
me["Simple_R3S"].show();
|
||||||
me["Simple_R3S"].setText("FUEL");
|
me["Simple_R3"].show();
|
||||||
me["Simple_R3"].setText("PLANNING ");
|
me["Simple_R3S"].setText("FUEL");
|
||||||
me["Simple_R3_Arrow"].show();
|
me["Simple_R3"].setText("PLANNING ");
|
||||||
me["Simple_R3_Arrow"].setColor(AMBER);
|
me["Simple_R3_Arrow"].show();
|
||||||
|
me["Simple_R3_Arrow"].setColor(AMBER);
|
||||||
|
} else {
|
||||||
|
me["Simple_R3S"].hide();
|
||||||
|
me["Simple_R3"].hide();
|
||||||
|
me["Simple_R3_Arrow"].hide();
|
||||||
|
}
|
||||||
me["Simple_R4"].setText("---.-/---.-");
|
me["Simple_R4"].setText("---.-/---.-");
|
||||||
me["Simple_R6"].setText("---.-/----");
|
me["Simple_R6"].setText("---.-/----");
|
||||||
|
|
||||||
|
|
|
@ -250,10 +250,10 @@ var initInputB = func(key, i) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (key == "R3") {
|
} else if (key == "R3") {
|
||||||
if (scratchpad == "" and !getprop("/FMGC/internal/fuel-request-set")) {
|
if (scratchpad == "" and getprop("/FMGC/internal/zfw-set") and !getprop("/FMGC/internal/fuel-request-set")) {
|
||||||
setprop("/FMGC/internal/fuel-request-set", 1);
|
setprop("/FMGC/internal/fuel-request-set", 1);
|
||||||
setprop("/FMGC/internal/block-calculating", 1);
|
setprop("/FMGC/internal/block-calculating", 1);
|
||||||
} else if (scratchpad == "" and getprop("/FMGC/internal/fuel-request-set") and !getprop("/FMGC/internal/block-confirmed") and !getprop("/FMGC/internal/block-calculating")) {
|
} else if (scratchpad == "" and getprop("/FMGC/internal/zfw-set") and getprop("/FMGC/internal/fuel-request-set") and !getprop("/FMGC/internal/block-confirmed") and !getprop("/FMGC/internal/block-calculating")) {
|
||||||
setprop("/FMGC/internal/block-confirmed", 1);
|
setprop("/FMGC/internal/block-confirmed", 1);
|
||||||
setprop("/FMGC/internal/fuel-calculating", 1);
|
setprop("/FMGC/internal/fuel-calculating", 1);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue