Keep align button after align
This commit is contained in:
parent
6f1d18141e
commit
bfe20940da
2 changed files with 6 additions and 5 deletions
|
@ -1078,7 +1078,7 @@ var canvas_MCDU_base = {
|
||||||
me["Simple_L0S"].hide();
|
me["Simple_L0S"].hide();
|
||||||
me.showLeftS(1, 1, 1, 1, 1, 1);
|
me.showLeftS(1, 1, 1, 1, 1, 1);
|
||||||
me.showLeftArrow(-1, -1, -1, -1, -1, -1);
|
me.showLeftArrow(-1, -1, -1, -1, -1, -1);
|
||||||
me.showRight(0, 0, 0, 1, 1, 1);
|
me.showRight(0, 0, 1, 1, 1, 1);
|
||||||
me.showRightS(1, 0, -1, 1, -1, 1);
|
me.showRightS(1, 0, -1, 1, -1, 1);
|
||||||
me.showRightArrow(-1, -1, -1, -1, 1, -1);
|
me.showRightArrow(-1, -1, -1, -1, 1, -1);
|
||||||
|
|
||||||
|
@ -1171,12 +1171,12 @@ var canvas_MCDU_base = {
|
||||||
}
|
}
|
||||||
if (ADIRSMCDUBTN.getValue() != 1) {
|
if (ADIRSMCDUBTN.getValue() != 1) {
|
||||||
me["INITA_AlignIRS"].show();
|
me["INITA_AlignIRS"].show();
|
||||||
me["Simple_R3"].show();
|
me["Simple_R3"].setColor(AMBER);
|
||||||
me.showRightArrow(0, 0, 1, 0, 0, 0);
|
me.showRightArrow(0, 0, -1, 0, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
me["INITA_AlignIRS"].hide();
|
me["INITA_AlignIRS"].hide();
|
||||||
me["Simple_R3"].hide();
|
me["Simple_R3"].setColor(WHITE);
|
||||||
me.showRightArrow(0, 0, -1, 0, 0, 0);
|
me.showRightArrow(0, 0, 1, 0, 0, 0);
|
||||||
}
|
}
|
||||||
if (tropoSet.getValue() == 1) {
|
if (tropoSet.getValue() == 1) {
|
||||||
me["Simple_R6"].setFontSize(normal);
|
me["Simple_R6"].setFontSize(normal);
|
||||||
|
|
|
@ -9,6 +9,7 @@ var initInputIRS = func(key, i) {
|
||||||
setprop("FMGC/internal/align-set", 1);
|
setprop("FMGC/internal/align-set", 1);
|
||||||
} else {
|
} else {
|
||||||
setprop("controls/adirs/mcducbtn", 1);
|
setprop("controls/adirs/mcducbtn", 1);
|
||||||
|
setprop("FMGC/internal/align-set", 0);
|
||||||
setprop("MCDU[" ~ i ~ "]/page", "INITA");
|
setprop("MCDU[" ~ i ~ "]/page", "INITA");
|
||||||
}
|
}
|
||||||
} else if (getprop("FMGC/internal/tofrom-set") == 0) {
|
} else if (getprop("FMGC/internal/tofrom-set") == 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue