Add stars and arrows to wind page
This commit is contained in:
parent
601d733e46
commit
b80cd82aa3
2 changed files with 2501 additions and 2409 deletions
|
@ -231,7 +231,8 @@ 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","WEATHERREQSEND","MODEVHF3","PRINTPAGE","COMM-ADS","COCALL","COCALLTUNE"];
|
||||
"arrow3R","arrow4R","arrow5R","DIRTO_TMPY_group","IRSINIT","IRSINIT_1","IRSINIT_2","IRSINIT_star","NOTIFY","NOTIFY_FLTNBR","NOTIFY_AIRPORT","WEATHERREQSEND",
|
||||
"WIND","WIND_CANCEL","WIND_INSERT_star","MODEVHF3","PRINTPAGE","COMM-ADS","COCALL","COCALLTUNE"];
|
||||
},
|
||||
update: func() {
|
||||
if (systems.ELEC.Bus.ac1.getValue() >= 110 and mcdu1_lgt.getValue() > 0.01) {
|
||||
|
@ -256,6 +257,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
me["arrowsDepArr"].hide();
|
||||
|
@ -272,6 +274,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
},
|
||||
|
@ -370,6 +373,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
me["PERFAPPR"].hide();
|
||||
|
@ -1404,6 +1408,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
me["arrowsDepArr"].show();
|
||||
|
@ -1819,6 +1824,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
me["arrowsDepArr"].hide();
|
||||
|
@ -1983,6 +1989,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].show();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
me["arrowsDepArr"].hide();
|
||||
|
@ -2200,6 +2207,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].show();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
me["arrowsDepArr"].hide();
|
||||
|
@ -2577,6 +2585,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].show();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
me["arrowsDepArr"].hide();
|
||||
|
@ -2855,6 +2864,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].show();
|
||||
me["PERFTO"].hide();
|
||||
me["arrowsDepArr"].hide();
|
||||
|
@ -2985,6 +2995,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].show();
|
||||
me["arrowsDepArr"].hide();
|
||||
|
@ -3874,6 +3885,7 @@ var canvas_MCDU_base = {
|
|||
me["Simple_PageNum"].setText("X/X");
|
||||
me["Simple_PageNum"].hide();
|
||||
me["Simple_Title"].show();
|
||||
me["WIND"].show();
|
||||
me["ArrowLeft"].hide();
|
||||
me["ArrowRight"].hide();
|
||||
|
||||
|
@ -3913,6 +3925,24 @@ var canvas_MCDU_base = {
|
|||
me.fontSizeCenter(small, small, small, small, small, normal);
|
||||
}
|
||||
|
||||
if (page == "WINDHIST") {
|
||||
var hist_winds = fmgc.windController.hist_winds;
|
||||
if (hist_winds.wind1.set or hist_winds.wind2.set or hist_winds.wind2.set or hist_winds.wind2.set or hist_winds.wind2.set) {
|
||||
me["WIND_INSERT_star"].show();
|
||||
} else {
|
||||
me["WIND_INSERT_star"].hide();
|
||||
}
|
||||
me["WIND_CANCEL"].hide();
|
||||
} else {
|
||||
if (fmgc.flightPlanController.temporaryFlag[i]) {
|
||||
me["WIND_CANCEL"].show();
|
||||
me["WIND_INSERT_star"].show();
|
||||
} else {
|
||||
me["WIND_CANCEL"].hide();
|
||||
me["WIND_INSERT_star"].hide();
|
||||
}
|
||||
}
|
||||
|
||||
if (myWind[i] != nil) {
|
||||
if (page == "WINDCRZ") {
|
||||
me["Simple_Title"].setText(sprintf("%s", myWind[i].title[0] ~ myWind[i].title[1] ~ myWind[i].title[2]));
|
||||
|
@ -4499,6 +4529,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
me["arrowsDepArr"].show();
|
||||
|
@ -4564,6 +4595,7 @@ var canvas_MCDU_base = {
|
|||
me["IRSINIT"].hide();
|
||||
me["INITB"].hide();
|
||||
me["FUELPRED"].hide();
|
||||
me["WIND"].hide();
|
||||
me["PROG"].hide();
|
||||
me["PERFTO"].hide();
|
||||
me["arrowsDepArr"].hide();
|
||||
|
|
File diff suppressed because it is too large
Load diff
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 160 KiB |
Loading…
Reference in a new issue