VHF DIRECTORY
This commit is contained in:
parent
c4788d48c3
commit
3160f43696
3 changed files with 239 additions and 412 deletions
|
@ -271,7 +271,7 @@ var canvas_MCDU_base = {
|
|||
"FUELPRED_ZFWCG","FUELPRED_ZFWCG_S","PROG","PROG_UPDATE","PERFTO","PERFTO_V1","PERFTO_VR","PERFTO_V2","PERFTO_FE","PERFTO_SE","PERFTO_OE","PERFAPPR",
|
||||
"PERFAPPR_FE","PERFAPPR_SE","PERFAPPR_OE","PERFAPPR_LDG_3","PERFAPPR_LDG_F","PERFGA","PERFGA_FE","PERFGA_SE","PERFGA_OE","FPLN","FPLN_From",
|
||||
"FPLN_TMPY_group","FPLN_FROM","FPLN_Callsign","departureTMPY", "arrowsDepArr","arrow1L","arrow2L","arrow3L","arrow4L","arrow5L","arrow1R","arrow2R",
|
||||
"arrow3R","arrow4R","arrow5R","DIRTO_TMPY_group","IRSINIT","IRSINIT_1","IRSINIT_2","IRSINIT_star","NOTIFY","NOTIFY_FLTNBR","NOTIFY_AIRPORT","COMM-ADS","COCALL","COCALLTUNE"];
|
||||
"arrow3R","arrow4R","arrow5R","DIRTO_TMPY_group","IRSINIT","IRSINIT_1","IRSINIT_2","IRSINIT_star","NOTIFY","NOTIFY_FLTNBR","NOTIFY_AIRPORT","PRINTPAGE","COMM-ADS","COCALL","COCALLTUNE"];
|
||||
},
|
||||
update: func() {
|
||||
if (systems.ELEC.Bus.ac1.getValue() >= 110 and mcdu1_lgt.getValue() > 0.01) {
|
||||
|
@ -303,6 +303,20 @@ var canvas_MCDU_base = {
|
|||
me["PERFGA"].hide();
|
||||
me["Simple_Title"].show();
|
||||
},
|
||||
hideAllArrows: func(i) {
|
||||
me["Simple_L1_Arrow"].hide();
|
||||
me["Simple_L2_Arrow"].hide();
|
||||
me["Simple_L3_Arrow"].hide();
|
||||
me["Simple_L4_Arrow"].hide();
|
||||
me["Simple_L5_Arrow"].hide();
|
||||
me["Simple_L6_Arrow"].hide();
|
||||
me["Simple_R1_Arrow"].hide();
|
||||
me["Simple_R2_Arrow"].hide();
|
||||
me["Simple_R3_Arrow"].hide();
|
||||
me["Simple_R4_Arrow"].hide();
|
||||
me["Simple_R5_Arrow"].hide();
|
||||
me["Simple_R6_Arrow"].hide();
|
||||
},
|
||||
updateCommon: func(i) {
|
||||
page = pageProp[i].getValue();
|
||||
if (page != "NOTIFICATION") {
|
||||
|
@ -319,6 +333,11 @@ var canvas_MCDU_base = {
|
|||
} else {
|
||||
me["COMM-ADS"].show();
|
||||
}
|
||||
if (page != "COMMINIT" and page != "COMPANYCALL" and page != "VOICEDIRECTORY" and page != "COMMSTATUS") {
|
||||
me["PRINTPAGE"].hide();
|
||||
} else {
|
||||
me["PRINTPAGE"].show();
|
||||
}
|
||||
if (page == "F-PLNA" or page == "F-PLNB") {
|
||||
if (!pageSwitch[i].getBoolValue()) {
|
||||
me["Simple"].show();
|
||||
|
@ -343,18 +362,7 @@ var canvas_MCDU_base = {
|
|||
me["Simple_C3B"].hide();
|
||||
me["Simple_C4B"].hide();
|
||||
|
||||
me["Simple_L1_Arrow"].hide();
|
||||
me["Simple_L2_Arrow"].hide();
|
||||
me["Simple_L3_Arrow"].hide();
|
||||
me["Simple_L4_Arrow"].hide();
|
||||
me["Simple_L5_Arrow"].hide();
|
||||
me["Simple_L6_Arrow"].hide();
|
||||
me["Simple_R1_Arrow"].hide();
|
||||
me["Simple_R2_Arrow"].hide();
|
||||
me["Simple_R3_Arrow"].hide();
|
||||
me["Simple_R4_Arrow"].hide();
|
||||
me["Simple_R5_Arrow"].hide();
|
||||
me["Simple_R6_Arrow"].hide();
|
||||
me.hideAllArrows();
|
||||
|
||||
me.fontLeft(default, default, default, default, default, default);
|
||||
me.fontLeftS(default, default, default, default, default, default);
|
||||
|
@ -875,6 +883,83 @@ var canvas_MCDU_base = {
|
|||
|
||||
pageSwitch[i].setBoolValue(1);
|
||||
}
|
||||
} else if (page == "VOICEDIRECTORY") {
|
||||
if (!pageSwitch[i].getBoolValue()) {
|
||||
me["Simple"].show();
|
||||
me["Simple_Center"].show();
|
||||
me["FPLN"].hide();
|
||||
me["DIRTO_TMPY_group"].hide();
|
||||
me["INITA"].hide();
|
||||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
me["arrowsDepArr"].hide();
|
||||
me["PERFAPPR"].hide();
|
||||
me["PERFGA"].hide();
|
||||
me["Simple_Title"].show();
|
||||
me["Simple_Title"].setText("VHF3 VOICE DIRECTORY");
|
||||
me["Simple_Title"].setColor(1, 1, 1);
|
||||
me["Simple_PageNum"].setText("X/X");
|
||||
me["Simple_PageNum"].hide();
|
||||
me["ArrowLeft"].hide();
|
||||
me["ArrowRight"].hide();
|
||||
|
||||
me.showLeft(1, -1, -1, 1, -1, 1);
|
||||
me["Simple_L0S"].hide();
|
||||
me.showLeftS(1, -1, -1, 1, -1, -1);
|
||||
me.showLeftArrow(-1, -1, -1, -1, -1, 1);
|
||||
me.showCenter(-1, -1, -1, -1, -1, -1);
|
||||
me.showCenterS(1, -1, -1, -1, -1, -1);
|
||||
me.showRight(1, -1, -1, -1, 1, 1);
|
||||
me.showRightS(1, -1, -1, -1, 1, 1);
|
||||
me.showRightArrow(-1, -1, -1, -1, -1, -1);
|
||||
me["Simple_C3B"].hide();
|
||||
me["Simple_C4B"].hide();
|
||||
|
||||
me.fontLeft(default, default, default, default, default, default);
|
||||
me.fontLeftS(default, default, default, default, default, default);
|
||||
me.fontRight(default, default, default, default, default, default);
|
||||
me.fontRightS(default, default, default, default, default, default);
|
||||
|
||||
me.fontSizeLeft(normal, normal, normal, normal, normal, normal);
|
||||
me.fontSizeRight(normal, normal, normal, normal, normal, normal);
|
||||
|
||||
me.colorLeft("blu", "wht", "wht", "wht", "wht", "wht");
|
||||
me.colorLeftS("wht", "wht", "wht", "wht", "wht", "wht");
|
||||
me.colorLeftArrow("wht", "wht", "wht", "wht", "wht", "wht");
|
||||
me.colorCenterS("grn", "wht", "wht", "wht", "wht", "wht");
|
||||
me.colorRight("blu", "wht", "wht", "wht", "wht", "wht");
|
||||
me.colorRightS("wht", "wht", "wht", "wht", "wht", "wht");
|
||||
me.colorRightArrow("wht", "wht", "wht", "wht", "wht", "wht");
|
||||
|
||||
me["Simple_L1S"].setText(" OPS");
|
||||
me["Simple_L1"].setText(" 132.225");
|
||||
me["Simple_L4S"].setText(" CO CALL");
|
||||
me["Simple_L6S"].setText(" RETURN TO");
|
||||
me["Simple_L6"].setText(" COMM MENU");
|
||||
me["Simple_R1S"].setText("MAINT ");
|
||||
me["Simple_R1"].setText("132.400 ");
|
||||
me["Simple_R5S"].setText("MODE ");
|
||||
me["Simple_R6S"].setText("PAGE ");
|
||||
me["Simple_R6"].setText("PRINT ");
|
||||
me["Simple_C1S"].setFontSize(normal);
|
||||
|
||||
pageSwitch[i].setBoolValue(1);
|
||||
}
|
||||
if (ecam.vhf3_voice.active) {
|
||||
me["Simple_C1S"].setText("VOICE");
|
||||
me["Simple_R5"].setText("DATA ");
|
||||
} else {
|
||||
me["Simple_C1S"].setText("DATA");
|
||||
me["Simple_R5"].setText("VOICE ");
|
||||
}
|
||||
if (atsu.CompanyCall.frequency != 999.99) {
|
||||
me["Simple_L4"].setText(" " ~ sprintf("%5.2f", atsu.CompanyCall.frequency));
|
||||
} else {
|
||||
me["Simple_L4"].setText(" ---.--");
|
||||
}
|
||||
} else if (page == "COMMINIT") {
|
||||
if (!pageSwitch[i].getBoolValue()) {
|
||||
me.defaultHide();
|
||||
|
@ -891,7 +976,7 @@ var canvas_MCDU_base = {
|
|||
me.showLeftArrow(-1, -1, -1, -1, -1, 1);
|
||||
me.showRight(-1, -1, 1, -1, -1, 1);
|
||||
me.showRightS(-1, -1, 1, -1, -1, 1);
|
||||
me.showRightArrow(-1, -1, 1, -1, -1, 1);
|
||||
me.showRightArrow(-1, -1, 1, -1, -1, -1);
|
||||
me["Simple_C3B"].hide();
|
||||
me["Simple_C4B"].hide();
|
||||
|
||||
|
@ -940,7 +1025,7 @@ var canvas_MCDU_base = {
|
|||
me.showLeftArrow(-1, -1, -1, -1, -1, 1);
|
||||
me.showRight(1, 1, -1, 1, 1, 1);
|
||||
me.showRightS(-1, 1, 1, 1, 1, 1);
|
||||
me.showRightArrow(-1, -1, -1, -1, -1, 1);
|
||||
me.showRightArrow(-1, -1, -1, -1, -1, -1);
|
||||
me["Simple_C3B"].hide();
|
||||
me["Simple_C4B"].hide();
|
||||
|
||||
|
@ -999,7 +1084,7 @@ var canvas_MCDU_base = {
|
|||
me.showLeftArrow(-1, -1, -1, -1, -1, 1);
|
||||
me.showRight(1, -1, -1, -1, -1, 1);
|
||||
me.showRightS(1, -1, -1, -1, -1, 1);
|
||||
me.showRightArrow(-1, -1, -1, -1, -1, 1);
|
||||
me.showRightArrow(-1, -1, -1, -1, -1, -1);
|
||||
me["Simple_C3B"].hide();
|
||||
me["Simple_C4B"].hide();
|
||||
|
||||
|
@ -1046,14 +1131,14 @@ var canvas_MCDU_base = {
|
|||
me["COCALLTUNE"].hide();
|
||||
}
|
||||
|
||||
if (atsu.CompanyCall.activeMsg != "" and !atsu.CompanyCall.received) {
|
||||
if (atsu.CompanyCall.activeMsg != "") {
|
||||
me["Simple_L2"].setText(sprintf("%s", atsu.CompanyCall.activeMsg));
|
||||
me["Simple_L2"].show();
|
||||
} else {
|
||||
me["Simple_L2"].hide();
|
||||
}
|
||||
|
||||
if (atsu.CompanyCall.frequency != 999.99 and !atsu.CompanyCall.received) {
|
||||
if (atsu.CompanyCall.frequency != 999.99) {
|
||||
me["Simple_L1"].setText(" " ~ sprintf("%5.2f", atsu.CompanyCall.frequency));
|
||||
} else {
|
||||
me["Simple_L1"].setText(" ---.--");
|
||||
|
@ -1305,41 +1390,11 @@ var canvas_MCDU_base = {
|
|||
|
||||
me["Simple_Title"].setText(sprintf("%s", myPilotWP[i].title ~ " "));
|
||||
|
||||
forindex (var matrixArrow; myPilotWP[i].arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myPilotWP[i].arrowsMatrix[matrixArrow]) {
|
||||
if (myPilotWP[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].show();
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageArrowFunc(myPilotWP[i]);
|
||||
me.colorLeftArrow(myPilotWP[i].arrowsColour[0][0],myPilotWP[i].arrowsColour[0][1],myPilotWP[i].arrowsColour[0][2],myPilotWP[i].arrowsColour[0][3],myPilotWP[i].arrowsColour[0][4],myPilotWP[i].arrowsColour[0][5]);
|
||||
me.colorRightArrow(myPilotWP[i].arrowsColour[1][0],myPilotWP[i].arrowsColour[1][1],myPilotWP[i].arrowsColour[1][2],myPilotWP[i].arrowsColour[1][3],myPilotWP[i].arrowsColour[1][4],myPilotWP[i].arrowsColour[1][5]);
|
||||
|
||||
|
||||
forindex (var matrixFont; myPilotWP[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myPilotWP[i].fontMatrix[matrixFont]) {
|
||||
if (myPilotWP[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
me.dynamicPageFontFunc(myPilotWP[i]);
|
||||
|
||||
me.dynamicPageFunc(myPilotWP[i].L1, "Simple_L1");
|
||||
me.dynamicPageFunc(myPilotWP[i].L2, "Simple_L2");
|
||||
|
@ -3757,38 +3812,10 @@ var canvas_MCDU_base = {
|
|||
}
|
||||
me["Simple_Title"].setColor(getprop("/MCDUC/colors/" ~ myWind[i].titleColour ~ "/r"), getprop("/MCDUC/colors/" ~ myWind[i].titleColour ~ "/g"), getprop("/MCDUC/colors/" ~ myWind[i].titleColour ~ "/b"));
|
||||
|
||||
forindex (var matrixArrow; myWind[i].arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myWind[i].arrowsMatrix[matrixArrow]) {
|
||||
if (myWind[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].show();
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageArrowFunc(myWind[i]);
|
||||
me.colorLeftArrow(myWind[i].arrowsColour[0][0],myWind[i].arrowsColour[0][1],myWind[i].arrowsColour[0][2],myWind[i].arrowsColour[0][3],myWind[i].arrowsColour[0][4],myWind[i].arrowsColour[0][5]);
|
||||
|
||||
forindex (var matrixFont; myWind[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myWind[i].fontMatrix[matrixFont]) {
|
||||
if (myWind[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageFontFunc(myWind[i]);
|
||||
|
||||
me.dynamicPageFunc(myWind[i].L1, "Simple_L1");
|
||||
me.dynamicPageFunc(myWind[i].L2, "Simple_L2");
|
||||
|
@ -3879,39 +3906,11 @@ var canvas_MCDU_base = {
|
|||
} else {
|
||||
me["Simple_Center"].hide();
|
||||
}
|
||||
forindex (var matrixArrow; myLatRev[i].arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myLatRev[i].arrowsMatrix[matrixArrow]) {
|
||||
if (myLatRev[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].show();
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
me.dynamicPageArrowFunc(myLatRev[i]);
|
||||
me.colorLeftArrow(myLatRev[i].arrowsColour[0][0],myLatRev[i].arrowsColour[0][1],myLatRev[i].arrowsColour[0][2],myLatRev[i].arrowsColour[0][3],myLatRev[i].arrowsColour[0][4],myLatRev[i].arrowsColour[0][5]);
|
||||
|
||||
|
||||
forindex (var matrixFont; myLatRev[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myLatRev[i].fontMatrix[matrixFont]) {
|
||||
if (myLatRev[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageFontFunc(myLatRev[i]);
|
||||
|
||||
me.dynamicPageFunc(myLatRev[i].L1, "Simple_L1");
|
||||
me.dynamicPageFunc(myLatRev[i].L2, "Simple_L2");
|
||||
|
@ -3991,39 +3990,11 @@ var canvas_MCDU_base = {
|
|||
} else {
|
||||
me["Simple_Center"].hide();
|
||||
}
|
||||
forindex (var matrixArrow; myVertRev[i].arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myVertRev[i].arrowsMatrix[matrixArrow]) {
|
||||
if (myVertRev[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].show();
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
me.dynamicPageArrowFunc(myVertRev[i]);
|
||||
me.colorLeftArrow(myVertRev[i].arrowsColour[0][0],myVertRev[i].arrowsColour[0][1],myVertRev[i].arrowsColour[0][2],myVertRev[i].arrowsColour[0][3],myVertRev[i].arrowsColour[0][4],myVertRev[i].arrowsColour[0][5]);
|
||||
|
||||
|
||||
forindex (var matrixFont; myVertRev[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myVertRev[i].fontMatrix[matrixFont]) {
|
||||
if (myVertRev[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageFontFunc(myVertRev[i]);
|
||||
|
||||
me.dynamicPageFunc(myVertRev[i].L1, "Simple_L1");
|
||||
me.dynamicPageFunc(myVertRev[i].L2, "Simple_L2");
|
||||
|
@ -4095,42 +4066,8 @@ var canvas_MCDU_base = {
|
|||
if (myDeparture[i] != nil) {
|
||||
me["Simple_Title"].setText(sprintf("%s", myDeparture[i].title[0] ~ myDeparture[i].title[1] ~ myDeparture[i].title[2]));
|
||||
|
||||
forindex (var matrixArrow; myDeparture[i].arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myDeparture[i].arrowsMatrix[matrixArrow]) {
|
||||
if (item == 5) {
|
||||
me["Simple_L6_Arrow"].setColor(getprop("/MCDUC/colors/" ~ myDeparture[i].arrowsColour[0][5] ~ "/r"), getprop("/MCDUC/colors/" ~ myDeparture[i].arrowsColour[0][5] ~ "/g"), getprop("/MCDUC/colors/" ~ myDeparture[i].arrowsColour[0][5] ~ "/b"));
|
||||
continue;
|
||||
}
|
||||
if (myDeparture[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["arrow" ~ (item + 1) ~ sign].show();
|
||||
me["arrow" ~ (item + 1) ~ sign].setColor(getprop("/MCDUC/colors/" ~ myDeparture[i].arrowsColour[matrixArrow][item] ~ "/r"), getprop("/MCDUC/colors/" ~ myDeparture[i].arrowsColour[matrixArrow][item] ~ "/g"), getprop("/MCDUC/colors/" ~ myDeparture[i].arrowsColour[matrixArrow][item] ~ "/b"));
|
||||
} else {
|
||||
me["arrow" ~ (item + 1) ~ sign].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
forindex (var matrixFont; myDeparture[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myDeparture[i].fontMatrix[matrixFont]) {
|
||||
if (myDeparture[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageArrowFunc(myDeparture[i]);
|
||||
me.dynamicPageFontFunc(myDeparture[i]);
|
||||
|
||||
me.dynamicPageFunc(myDeparture[i].L1, "Simple_L1");
|
||||
me.dynamicPageFunc(myDeparture[i].L2, "Simple_L2");
|
||||
|
@ -4203,39 +4140,10 @@ var canvas_MCDU_base = {
|
|||
if (myDuplicate[i] != nil) {
|
||||
me["Simple_Title"].setText(sprintf("%s", myDuplicate[i].title));
|
||||
|
||||
forindex (var matrixArrow; myDuplicate[i].arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myDuplicate[i].arrowsMatrix[matrixArrow]) {
|
||||
if (myDuplicate[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].show();
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageArrowFunc(myDuplicate[i]);
|
||||
me.colorLeftArrow(myDuplicate[i].arrowsColour[0][0],myDuplicate[i].arrowsColour[0][1],myDuplicate[i].arrowsColour[0][2],myDuplicate[i].arrowsColour[0][3],myDuplicate[i].arrowsColour[0][4],myDuplicate[i].arrowsColour[0][5]);
|
||||
|
||||
|
||||
forindex (var matrixFont; myDuplicate[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myDuplicate[i].fontMatrix[matrixFont]) {
|
||||
if (myDuplicate[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageFontFunc(myDuplicate[i]);
|
||||
|
||||
me.dynamicPageFunc(myDuplicate[i].L1, "Simple_L1");
|
||||
me.dynamicPageFunc(myDuplicate[i].L2, "Simple_L2");
|
||||
|
@ -4325,43 +4233,8 @@ var canvas_MCDU_base = {
|
|||
if (myArrival[i] != nil) {
|
||||
me["Simple_Title"].setText(sprintf("%s", myArrival[i].title[0] ~ myArrival[i].title[1] ~ myArrival[i].title[2]));
|
||||
|
||||
forindex (var matrixArrow; myArrival[i].arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myArrival[i].arrowsMatrix[matrixArrow]) {
|
||||
if (item == 1) { continue; }
|
||||
if (item == 5) {
|
||||
me["Simple_L6_Arrow"].setColor(getprop("/MCDUC/colors/" ~ myArrival[i].arrowsColour[0][5] ~ "/r"), getprop("/MCDUC/colors/" ~ myArrival[i].arrowsColour[0][5] ~ "/g"), getprop("/MCDUC/colors/" ~ myArrival[i].arrowsColour[0][5] ~ "/b"));
|
||||
continue;
|
||||
}
|
||||
if (myArrival[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["arrow" ~ (item + 1) ~ sign].show();
|
||||
me["arrow" ~ (item + 1) ~ sign].setColor(getprop("/MCDUC/colors/" ~ myArrival[i].arrowsColour[matrixArrow][item] ~ "/r"), getprop("/MCDUC/colors/" ~ myArrival[i].arrowsColour[matrixArrow][item] ~ "/g"), getprop("/MCDUC/colors/" ~ myArrival[i].arrowsColour[matrixArrow][item] ~ "/b"));
|
||||
} else {
|
||||
me["arrow" ~ (item + 1) ~ sign].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
forindex (var matrixFont; myArrival[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myArrival[i].fontMatrix[matrixFont]) {
|
||||
if (myArrival[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageArrowFunc(myArrival[i]);
|
||||
me.dynamicPageFontFunc(myArrival[i]);
|
||||
|
||||
me.dynamicPageFunc(myArrival[i].L1, "Simple_L1");
|
||||
me.dynamicPageFunc(myArrival[i].L2, "Simple_L2");
|
||||
|
@ -4446,42 +4319,8 @@ var canvas_MCDU_base = {
|
|||
me["Simple_Title"].setText(sprintf("%s", myHold[i].title[0] ~ myHold[i].title[1] ~ myHold[i].title[2]));
|
||||
me["Simple_Title"].setColor(getprop("/MCDUC/colors/" ~ myHold[i].titleColour ~ "/r"), getprop("/MCDUC/colors/" ~ myHold[i].titleColour ~ "/g"), getprop("/MCDUC/colors/" ~ myHold[i].titleColour ~ "/b"));
|
||||
|
||||
forindex (var matrixArrow; myHold[i].arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myHold[i].arrowsMatrix[matrixArrow]) {
|
||||
if (item == 5) {
|
||||
me["Simple_L6_Arrow"].setColor(getprop("/MCDUC/colors/" ~ myHold[i].arrowsColour[0][5] ~ "/r"), getprop("/MCDUC/colors/" ~ myHold[i].arrowsColour[0][5] ~ "/g"), getprop("/MCDUC/colors/" ~ myHold[i].arrowsColour[0][5] ~ "/b"));
|
||||
continue;
|
||||
}
|
||||
if (myHold[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["arrow" ~ (item + 1) ~ sign].show();
|
||||
me["arrow" ~ (item + 1) ~ sign].setColor(getprop("/MCDUC/colors/" ~ myHold[i].arrowsColour[matrixArrow][item] ~ "/r"), getprop("/MCDUC/colors/" ~ myHold[i].arrowsColour[matrixArrow][item] ~ "/g"), getprop("/MCDUC/colors/" ~ myHold[i].arrowsColour[matrixArrow][item] ~ "/b"));
|
||||
} else {
|
||||
me["arrow" ~ (item + 1) ~ sign].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
forindex (var matrixFont; myHold[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myHold[i].fontMatrix[matrixFont]) {
|
||||
if (myHold[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageArrowFunc(myHold[i]);
|
||||
me.dynamicPageFontFunc(myHold[i]);
|
||||
|
||||
me.dynamicPageFunc(myHold[i].L1, "Simple_L1");
|
||||
me.dynamicPageFunc(myHold[i].L2, "Simple_L2");
|
||||
|
@ -4566,42 +4405,8 @@ var canvas_MCDU_base = {
|
|||
me["Simple_Title"].setText(sprintf("%s", myAirways[i].title[0] ~ myAirways[i].title[1] ~ myAirways[i].title[2]));
|
||||
me["Simple_Title"].setColor(getprop("/MCDUC/colors/" ~ myAirways[i].titleColour ~ "/r"), getprop("/MCDUC/colors/" ~ myAirways[i].titleColour ~ "/g"), getprop("/MCDUC/colors/" ~ myAirways[i].titleColour ~ "/b"));
|
||||
|
||||
forindex (var matrixArrow; myAirways[i].arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myAirways[i].arrowsMatrix[matrixArrow]) {
|
||||
if (item == 5) {
|
||||
me["Simple_L6_Arrow"].setColor(getprop("/MCDUC/colors/" ~ myAirways[i].arrowsColour[0][5] ~ "/r"), getprop("/MCDUC/colors/" ~ myAirways[i].arrowsColour[0][5] ~ "/g"), getprop("/MCDUC/colors/" ~ myAirways[i].arrowsColour[0][5] ~ "/b"));
|
||||
continue;
|
||||
}
|
||||
if (myAirways[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["arrow" ~ (item + 1) ~ sign].show();
|
||||
me["arrow" ~ (item + 1) ~ sign].setColor(getprop("/MCDUC/colors/" ~ myAirways[i].arrowsColour[matrixArrow][item] ~ "/r"), getprop("/MCDUC/colors/" ~ myAirways[i].arrowsColour[matrixArrow][item] ~ "/g"), getprop("/MCDUC/colors/" ~ myAirways[i].arrowsColour[matrixArrow][item] ~ "/b"));
|
||||
} else {
|
||||
me["arrow" ~ (item + 1) ~ sign].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
forindex (var matrixFont; myAirways[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myAirways[i].fontMatrix[matrixFont]) {
|
||||
if (myAirways[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageArrowFunc(myAirways[i]);
|
||||
me.dynamicPageFontFunc(myAirways[i]);
|
||||
|
||||
me.dynamicPageFunc(myAirways[i].L1, "Simple_L1");
|
||||
me.dynamicPageFunc(myAirways[i].L2, "Simple_L2");
|
||||
|
@ -4687,22 +4492,8 @@ var canvas_MCDU_base = {
|
|||
me["Simple_L6_Arrow"].setColor(getprop("/MCDUC/colors/" ~ myClosestAirport[i].arrowsColour[0][5] ~ "/r"), getprop("/MCDUC/colors/" ~ myClosestAirport[i].arrowsColour[0][5] ~ "/g"), getprop("/MCDUC/colors/" ~ myClosestAirport[i].arrowsColour[0][5] ~ "/b"));
|
||||
me["Simple_R6_Arrow"].setColor(getprop("/MCDUC/colors/" ~ myClosestAirport[i].arrowsColour[1][5] ~ "/r"), getprop("/MCDUC/colors/" ~ myClosestAirport[i].arrowsColour[1][5] ~ "/g"), getprop("/MCDUC/colors/" ~ myClosestAirport[i].arrowsColour[1][5] ~ "/b"));
|
||||
|
||||
forindex (var matrixFont; myClosestAirport[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myClosestAirport[i].fontMatrix[matrixFont]) {
|
||||
if (myClosestAirport[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
me.dynamicPageFontFunc(myClosestAirport[i]);
|
||||
|
||||
me.dynamicPageFunc(myClosestAirport[i].L1, "Simple_L1");
|
||||
me.dynamicPageFunc(myClosestAirport[i].L2, "Simple_L2");
|
||||
|
@ -4755,18 +4546,7 @@ var canvas_MCDU_base = {
|
|||
me["Simple_Title"].show();
|
||||
me["ArrowLeft"].hide();
|
||||
me["ArrowRight"].hide();
|
||||
me["Simple_L1_Arrow"].hide();
|
||||
me["Simple_L2_Arrow"].hide();
|
||||
me["Simple_L3_Arrow"].hide();
|
||||
me["Simple_L4_Arrow"].hide();
|
||||
me["Simple_L5_Arrow"].hide();
|
||||
me["Simple_L6_Arrow"].hide();
|
||||
me["Simple_R1_Arrow"].hide();
|
||||
me["Simple_R2_Arrow"].hide();
|
||||
me["Simple_R3_Arrow"].hide();
|
||||
me["Simple_R4_Arrow"].hide();
|
||||
me["Simple_R5_Arrow"].hide();
|
||||
me["Simple_R6_Arrow"].hide();
|
||||
me.hideAllArrows();
|
||||
|
||||
me["Simple_L0S"].hide();
|
||||
me["Simple_C3B"].hide();
|
||||
|
@ -4789,39 +4569,8 @@ var canvas_MCDU_base = {
|
|||
me["Simple_Title"].setText(sprintf("%s", myDirTo[i].title[0]));
|
||||
me["Simple_Title"].setColor(getprop("/MCDUC/colors/" ~ myDirTo[i].titleColour ~ "/r"), getprop("/MCDUC/colors/" ~ myDirTo[i].titleColour ~ "/g"), getprop("/MCDUC/colors/" ~ myDirTo[i].titleColour ~ "/b"));
|
||||
|
||||
forindex (var matrixArrow; myDirTo[i].arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myDirTo[i].arrowsMatrix[matrixArrow]) {
|
||||
if (item == 5) { continue; }
|
||||
if (myDirTo[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["arrow" ~ (item + 1) ~ sign].show();
|
||||
me["arrow" ~ (item + 1) ~ sign].setColor(getprop("/MCDUC/colors/" ~ myDirTo[i].arrowsColour[matrixArrow][item] ~ "/r"), getprop("/MCDUC/colors/" ~ myDirTo[i].arrowsColour[matrixArrow][item] ~ "/g"), getprop("/MCDUC/colors/" ~ myDirTo[i].arrowsColour[matrixArrow][item] ~ "/b"));
|
||||
} else {
|
||||
me["arrow" ~ (item + 1) ~ sign].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
forindex (var matrixFont; myDirTo[i].fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myDirTo[i].fontMatrix[matrixFont]) {
|
||||
if (myDirTo[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
me.dynamicPageArrowFunc(myDirTo[i]);
|
||||
me.dynamicPageFontFunc(myDirTo[i]);
|
||||
|
||||
if (fmgc.flightPlanController.temporaryFlag[i] and mcdu.dirToFlag) {
|
||||
me["DIRTO_TMPY_group"].show();
|
||||
|
@ -5600,6 +5349,40 @@ var canvas_MCDU_base = {
|
|||
}
|
||||
}
|
||||
},
|
||||
dynamicPageArrowFunc: func (dynamic) {
|
||||
forindex (var matrixArrow; dynamic.arrowsMatrix) {
|
||||
if (matrixArrow == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myLatRev[i].arrowsMatrix[matrixArrow]) {
|
||||
if (myLatRev[i].arrowsMatrix[matrixArrow][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].show();
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1) ~ "_Arrow"].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
dynamicPageFontFunc: func (dynamic) {
|
||||
forindex (var matrixFont; dynamic.fontMatrix) {
|
||||
if (matrixFont == 0) {
|
||||
var sign = "L";
|
||||
} else {
|
||||
var sign = "R";
|
||||
}
|
||||
forindex (var item; myDeparture[i].fontMatrix[matrixFont]) {
|
||||
if (myDeparture[i].fontMatrix[matrixFont][item] == 1) {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(symbol);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(small);
|
||||
} else {
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFont(default);
|
||||
me["Simple_" ~ sign ~ (item + 1)].setFontSize(normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
updateScratchpad: func(i) {
|
||||
me["Scratchpad"].setText(sprintf("%s", mcdu_scratchpad.scratchpads[i].scratchpad));
|
||||
var color_selected = mcdu_scratchpad.scratchpads[i].scratchpadColour;
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
id="namedview371"
|
||||
showgrid="true"
|
||||
inkscape:zoom="1.1488097"
|
||||
inkscape:cx="169.16726"
|
||||
inkscape:cy="883.37609"
|
||||
inkscape:cx="1163.1014"
|
||||
inkscape:cy="302.3673"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
|
@ -2897,33 +2897,63 @@
|
|||
sodipodi:nodetypes="cc" />
|
||||
</g>
|
||||
<g
|
||||
style="opacity:0.97000002;stroke:#179ab7;stroke-opacity:1"
|
||||
id="COMM-ADS"
|
||||
inkscape:label="#g4324"
|
||||
transform="matrix(1.0807111,0,0,1.0807111,-1029.7034,213.33078)">
|
||||
<path
|
||||
sodipodi:nodetypes="cc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1273"
|
||||
d="M 998.71909,284.70793 H 970.18944"
|
||||
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 994.54102,294.79468 -20.17351,-20.1735"
|
||||
id="path1275"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
sodipodi:nodetypes="cc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1277"
|
||||
d="m 984.45427,298.97275 -10e-6,-28.52964"
|
||||
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 974.36752,294.79468 20.17349,-20.1735"
|
||||
id="path1279"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
</g>
|
||||
style="opacity:0.97000002;stroke:#179ab7;stroke-opacity:1"
|
||||
id="COMM-ADS"
|
||||
inkscape:label="#g4324"
|
||||
transform="matrix(1.0807111,0,0,1.0807111,-1029.7034,213.33078)">
|
||||
<path
|
||||
sodipodi:nodetypes="cc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1273"
|
||||
d="M 998.71909,284.70793 H 970.18944"
|
||||
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 994.54102,294.79468 -20.17351,-20.1735"
|
||||
id="path1275"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
sodipodi:nodetypes="cc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1277"
|
||||
d="m 984.45427,298.97275 -10e-6,-28.52964"
|
||||
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 974.36752,294.79468 20.17349,-20.1735"
|
||||
id="path1279"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
</g>
|
||||
<g
|
||||
style="stroke:#ffffff;stroke-opacity:1"
|
||||
id="PRINTPAGE"
|
||||
inkscape:label="#g4324"
|
||||
transform="matrix(1.0807111,0,0,1.0807111,-76.462145,451.30193)">
|
||||
<path
|
||||
sodipodi:nodetypes="cc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1281"
|
||||
d="M 998.71909,284.70793 H 970.18944"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 994.54102,294.79468 -20.17351,-20.1735"
|
||||
id="path1283"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
sodipodi:nodetypes="cc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1285"
|
||||
d="m 984.45427,298.97275 -10e-6,-28.52964"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 974.36752,294.79468 20.17349,-20.1735"
|
||||
id="path1287"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 154 KiB |
|
@ -388,6 +388,8 @@ var lskbutton = func(btn, i) {
|
|||
}
|
||||
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") {
|
||||
canvas_mcdu.myDuplicate[i].pushButtonLeft(3);
|
||||
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMMENU") {
|
||||
setprop("/MCDU[" ~ i ~ "]/page", "VOICEDIRECTORY");
|
||||
} else {
|
||||
mcdu_message(i, "NOT ALLOWED");
|
||||
}
|
||||
|
@ -428,6 +430,12 @@ var lskbutton = func(btn, i) {
|
|||
} else {
|
||||
atsu.ADS.setState(1);
|
||||
}
|
||||
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "VOICEDIRECTORY") {
|
||||
if (atsu.CompanyCall.frequency != 999.99) {
|
||||
atsu.CompanyCall.tune();
|
||||
} else {
|
||||
mcdu_message(i, "NOT ALLOWED");
|
||||
}
|
||||
} else {
|
||||
mcdu_message(i, "NOT ALLOWED");
|
||||
}
|
||||
|
@ -546,7 +554,7 @@ var lskbutton = func(btn, i) {
|
|||
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU");
|
||||
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMMENU") {
|
||||
setprop("/MCDU[" ~ i ~ "]/page", "ATSUDLINK");
|
||||
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMINIT" or getprop("/MCDU[" ~ i ~ "]/page") == "COMMSTATUS" or getprop("/MCDU[" ~ i ~ "]/page") == "COMPANYCALL") {
|
||||
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMINIT" or getprop("/MCDU[" ~ i ~ "]/page") == "VOICEDIRECTORY" or getprop("/MCDU[" ~ i ~ "]/page") == "COMMSTATUS" or getprop("/MCDU[" ~ i ~ "]/page") == "COMPANYCALL") {
|
||||
setprop("/MCDU[" ~ i ~ "]/page", "COMMMENU");
|
||||
} else {
|
||||
mcdu_message(i, "NOT ALLOWED");
|
||||
|
@ -804,6 +812,12 @@ var rskbutton = func(btn, i) {
|
|||
}
|
||||
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATCMENU") {
|
||||
setprop("/MCDU[" ~ i ~ "]/page", "CONNECTSTATUS");
|
||||
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "VOICEDIRECTORY") {
|
||||
for (var i = 0; i < 3; i = i + 1) {
|
||||
if (getprop("/systems/radio/rmp[" ~ i ~ "]/sel_chan") == "vhf3") {
|
||||
rmp.transfer(i + 1);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
mcdu_message(i, "NOT ALLOWED");
|
||||
}
|
||||
|
@ -990,7 +1004,7 @@ var pagebutton = func(btn, i) {
|
|||
setprop("/MCDU[" ~ i ~ "]/page", "DATA");
|
||||
} else if (btn == "mcdu") {
|
||||
var page = getprop("/MCDU[" ~ i ~ "]/page");
|
||||
if (page != "ATSUDLINK" and page != "ATCMENU" and page != "ATCMENU2" and page != "NOTIFICATION" and page != "CONNECTSTATUS" and page != "COMPANYCALL" and page != "COMMMENU" and page != "COMMSTATUS" and page != "COMMINIT") {
|
||||
if (page != "ATSUDLINK" and page != "ATCMENU" and page != "ATCMENU2" and page != "NOTIFICATION" and page != "CONNECTSTATUS" and page != "COMPANYCALL" and page != "VOICEDIRECTORY" and page != "COMMMENU" and page != "COMMSTATUS" and page != "COMMINIT") {
|
||||
setprop("/MCDU[" ~ i ~ "]/last-fmgc-page", getprop("/MCDU[" ~ i ~ "]/page"));
|
||||
} else {
|
||||
setprop("/MCDU[" ~ i ~ "]/last-atsu-page", getprop("/MCDU[" ~ i ~ "]/page"));
|
||||
|
|
Loading…
Reference in a new issue