1
0
Fork 0

PFD: set font size of RA

This commit is contained in:
legoboyvdlp R 2021-09-14 14:50:18 +01:00
parent ac324d064a
commit c892f7a786

View file

@ -1553,7 +1553,13 @@ var canvas_pfd = {
me["AI_agl"].show();
if (notification.agl <= notification.decision) {
me["AI_agl"].setColor(0.7333,0.3803,0);
me["AI_agl"].setFontSize(60);
} else {
if (notification.agl <= 400) {
me["AI_agl"].setFontSize(60);
} else {
me["AI_agl"].setFontSize(45);
}
me["AI_agl"].setColor(0.0509,0.7529,0.2941);
}
} else {
@ -1572,7 +1578,13 @@ var canvas_pfd = {
minimum.setValue(notification.radio);
if (notification.agl <= notification.radio + 100) {
me["AI_agl"].setColor(0.7333,0.3803,0);
me["AI_agl"].setFontSize(60);
} else {
if (notification.agl <= 400) {
me["AI_agl"].setFontSize(60);
} else {
me["AI_agl"].setFontSize(45);
}
me["AI_agl"].setColor(0.0509,0.7529,0.2941);
}
} else if (int(notification.baro) != 99999) {
@ -1585,7 +1597,13 @@ var canvas_pfd = {
minimum.setValue(notification.baro);
if (notification.agl <= notification.baro + 100) {
me["AI_agl"].setColor(0.7333,0.3803,0);
me["AI_agl"].setFontSize(60);
} else {
if (notification.agl <= 400) {
me["AI_agl"].setFontSize(60);
} else {
me["AI_agl"].setFontSize(45);
}
me["AI_agl"].setColor(0.0509,0.7529,0.2941);
}
} else if (fmgc.FMGCInternal.radioNo) {
@ -1596,6 +1614,12 @@ var canvas_pfd = {
me["FMA_nodh"].hide();
hundredAbove.setValue(100);
minimum.setValue(0);
if (notification.agl <= 400) {
me["AI_agl"].setFontSize(60);
} else {
me["AI_agl"].setFontSize(45);
}
if (notification.agl <= 100) {
me["AI_agl"].setColor(0.7333,0.3803,0);
} else {
@ -1609,8 +1633,10 @@ var canvas_pfd = {
minimum.setValue(300);
if (notification.agl <= 400) {
me["AI_agl"].setColor(0.7333,0.3803,0);
me["AI_agl"].setFontSize(60);
} else {
me["AI_agl"].setColor(0.0509,0.7529,0.2941);
me["AI_agl"].setFontSize(45);
}
}
} else {