A32X: Formatting
This commit is contained in:
parent
341700c36c
commit
fd6981554b
2 changed files with 33 additions and 33 deletions
|
@ -219,7 +219,7 @@ var canvas_lowerECAM_apu = {
|
|||
}
|
||||
|
||||
if (getprop("/controls/pneumatic/switches/bleedapu") == 1) {
|
||||
me["APUBleedValve"].setRotation(90*D2R);
|
||||
me["APUBleedValve"].setRotation(90 * D2R);
|
||||
me["APUBleedOnline"].show();
|
||||
} else {
|
||||
me["APUBleedValve"].setRotation(0);
|
||||
|
@ -243,8 +243,8 @@ var canvas_lowerECAM_apu = {
|
|||
me["APUEGT"].setColor(0.7333,0.3803,0);
|
||||
me["APUEGT"].setText(sprintf("%s", "XX"));
|
||||
}
|
||||
me["APUN-needle"].setRotation((getprop("/ECAM/Lower/APU-N") + 90)*D2R);
|
||||
me["APUEGT-needle"].setRotation((getprop("/ECAM/Lower/APU-EGT") + 90)*D2R);
|
||||
me["APUN-needle"].setRotation((getprop("/ECAM/Lower/APU-N") + 90) * D2R);
|
||||
me["APUEGT-needle"].setRotation((getprop("/ECAM/Lower/APU-EGT") + 90) * D2R);
|
||||
|
||||
me.updateBottomStatus();
|
||||
},
|
||||
|
@ -267,8 +267,8 @@ var canvas_lowerECAM_eng = {
|
|||
me["OilQT1-decimal"].setText(sprintf("%s", int(10*math.mod(getprop("/engines/engine[0]/oil-qt-actual"),1))));
|
||||
me["OilQT2-decimal"].setText(sprintf("%s", int(10*math.mod(getprop("/engines/engine[1]/oil-qt-actual"),1))));
|
||||
|
||||
me["OilQT1-needle"].setRotation((getprop("/ECAM/Lower/Oil-QT[0]") + 90)*D2R);
|
||||
me["OilQT2-needle"].setRotation((getprop("/ECAM/Lower/Oil-QT[1]") + 90)*D2R);
|
||||
me["OilQT1-needle"].setRotation((getprop("/ECAM/Lower/Oil-QT[0]") + 90) * D2R);
|
||||
me["OilQT2-needle"].setRotation((getprop("/ECAM/Lower/Oil-QT[1]") + 90) * D2R);
|
||||
|
||||
# Oil Pressure
|
||||
if (getprop("/engines/engine[0]/oil-psi-actual") >= 20) {
|
||||
|
@ -290,8 +290,8 @@ var canvas_lowerECAM_eng = {
|
|||
me["OilPSI1"].setText(sprintf("%s", math.round(getprop("/engines/engine[0]/oil-psi-actual"))));
|
||||
me["OilPSI2"].setText(sprintf("%s", math.round(getprop("/engines/engine[1]/oil-psi-actual"))));
|
||||
|
||||
me["OilPSI1-needle"].setRotation((getprop("/ECAM/Lower/Oil-PSI[0]") + 90)*D2R);
|
||||
me["OilPSI2-needle"].setRotation((getprop("/ECAM/Lower/Oil-PSI[1]") + 90)*D2R);
|
||||
me["OilPSI1-needle"].setRotation((getprop("/ECAM/Lower/Oil-PSI[0]") + 90) * D2R);
|
||||
me["OilPSI2-needle"].setRotation((getprop("/ECAM/Lower/Oil-PSI[1]") + 90) * D2R);
|
||||
|
||||
me.updateBottomStatus();
|
||||
},
|
||||
|
@ -804,10 +804,10 @@ var canvas_lowerECAM_wheel = {
|
|||
}
|
||||
|
||||
# Gear Doors
|
||||
me["leftdoor"].setRotation(getprop("/ECAM/Lower/door-left")*D2R);
|
||||
me["rightdoor"].setRotation(getprop("/ECAM/Lower/door-right")*D2R);
|
||||
me["nosegeardoorL"].setRotation(getprop("/ECAM/Lower/door-nose-left")*D2R);
|
||||
me["nosegeardoorR"].setRotation(getprop("/ECAM/Lower/door-nose-right")*D2R);
|
||||
me["leftdoor"].setRotation(getprop("/ECAM/Lower/door-left") * D2R);
|
||||
me["rightdoor"].setRotation(getprop("/ECAM/Lower/door-right") * D2R);
|
||||
me["nosegeardoorL"].setRotation(getprop("/ECAM/Lower/door-nose-left") * D2R);
|
||||
me["nosegeardoorR"].setRotation(getprop("/ECAM/Lower/door-nose-right") * D2R);
|
||||
|
||||
if (nosedoor == 0) {
|
||||
me["nosegeardoorL"].setColorFill(0.0667,0.7294,0.3137);
|
||||
|
|
|
@ -256,13 +256,13 @@ var canvas_upperECAM_cfm_eis2 = {
|
|||
me["N12"].setText(sprintf("%s", math.floor(getprop("/engines/engine[1]/n1-actual") + 0.05)));
|
||||
me["N12-decimal"].setText(sprintf("%s", int(10*math.mod(getprop("/engines/engine[1]/n1-actual") + 0.05,1))));
|
||||
|
||||
me["N11-needle"].setRotation((getprop("/ECAM/Upper/N1[0]") + 90)*D2R);
|
||||
me["N11-thr"].setRotation((getprop("/ECAM/Upper/N1thr[0]") + 90)*D2R);
|
||||
me["N11-ylim"].setRotation((getprop("/ECAM/Upper/N1ylim") + 90)*D2R);
|
||||
me["N11-needle"].setRotation((getprop("/ECAM/Upper/N1[0]") + 90) * D2R);
|
||||
me["N11-thr"].setRotation((getprop("/ECAM/Upper/N1thr[0]") + 90) * D2R);
|
||||
me["N11-ylim"].setRotation((getprop("/ECAM/Upper/N1ylim") + 90) * D2R);
|
||||
|
||||
me["N12-needle"].setRotation((getprop("/ECAM/Upper/N1[1]") + 90)*D2R);
|
||||
me["N12-thr"].setRotation((getprop("/ECAM/Upper/N1thr[1]") + 90)*D2R);
|
||||
me["N12-ylim"].setRotation((getprop("/ECAM/Upper/N1ylim") + 90)*D2R);
|
||||
me["N12-needle"].setRotation((getprop("/ECAM/Upper/N1[1]") + 90) * D2R);
|
||||
me["N12-thr"].setRotation((getprop("/ECAM/Upper/N1thr[1]") + 90) * D2R);
|
||||
me["N12-ylim"].setRotation((getprop("/ECAM/Upper/N1ylim") + 90) * D2R);
|
||||
|
||||
if (getprop("/systems/fadec/eng1/n1") == 1) {
|
||||
me["N11-scale"].setColor(0.8078,0.8039,0.8078);
|
||||
|
@ -336,8 +336,8 @@ var canvas_upperECAM_cfm_eis2 = {
|
|||
me["EGT1"].setText(sprintf("%s", math.round(getprop("/engines/engine[0]/egt-actual"))));
|
||||
me["EGT2"].setText(sprintf("%s", math.round(getprop("/engines/engine[1]/egt-actual"))));
|
||||
|
||||
me["EGT1-needle"].setRotation((getprop("/ECAM/Upper/EGT[0]") + 90)*D2R);
|
||||
me["EGT2-needle"].setRotation((getprop("/ECAM/Upper/EGT[1]") + 90)*D2R);
|
||||
me["EGT1-needle"].setRotation((getprop("/ECAM/Upper/EGT[0]") + 90) * D2R);
|
||||
me["EGT2-needle"].setRotation((getprop("/ECAM/Upper/EGT[1]") + 90) * D2R);
|
||||
|
||||
if (getprop("/systems/fadec/eng1/egt") == 1) {
|
||||
me["EGT1-scale"].setColor(0.8078,0.8039,0.8078);
|
||||
|
@ -470,12 +470,12 @@ var canvas_upperECAM_iae_eis2 = {
|
|||
me["EPR1"].setText(sprintf("%1.3f", getprop("/engines/engine[0]/epr-actual")));
|
||||
me["EPR2"].setText(sprintf("%1.3f", getprop("/engines/engine[1]/epr-actual")));
|
||||
|
||||
me["EPR1-needle"].setRotation((getprop("/ECAM/Upper/EPR[0]") + 90)*D2R);
|
||||
me["EPR1-thr"].setRotation((getprop("/ECAM/Upper/EPRthr[0]") + 90)*D2R);
|
||||
me["EPR1-ylim"].setRotation((getprop("/ECAM/Upper/EPRylim") + 90)*D2R);
|
||||
me["EPR2-needle"].setRotation((getprop("/ECAM/Upper/EPR[1]") + 90)*D2R);
|
||||
me["EPR2-thr"].setRotation((getprop("/ECAM/Upper/EPRthr[1]") + 90)*D2R);
|
||||
me["EPR2-ylim"].setRotation((getprop("/ECAM/Upper/EPRylim") + 90)*D2R);
|
||||
me["EPR1-needle"].setRotation((getprop("/ECAM/Upper/EPR[0]") + 90) * D2R);
|
||||
me["EPR1-thr"].setRotation((getprop("/ECAM/Upper/EPRthr[0]") + 90) * D2R);
|
||||
me["EPR1-ylim"].setRotation((getprop("/ECAM/Upper/EPRylim") + 90) * D2R);
|
||||
me["EPR2-needle"].setRotation((getprop("/ECAM/Upper/EPR[1]") + 90) * D2R);
|
||||
me["EPR2-thr"].setRotation((getprop("/ECAM/Upper/EPRthr[1]") + 90) * D2R);
|
||||
me["EPR2-ylim"].setRotation((getprop("/ECAM/Upper/EPRylim") + 90) * D2R);
|
||||
|
||||
if (getprop("/systems/fadec/eng1/epr") == 1) {
|
||||
me["EPR1-scale"].setColor(0.8078,0.8039,0.8078);
|
||||
|
@ -533,8 +533,8 @@ var canvas_upperECAM_iae_eis2 = {
|
|||
me["EGT1"].setText(sprintf("%s", math.round(getprop("/engines/engine[0]/egt-actual"))));
|
||||
me["EGT2"].setText(sprintf("%s", math.round(getprop("/engines/engine[1]/egt-actual"))));
|
||||
|
||||
me["EGT1-needle"].setRotation((getprop("/ECAM/Upper/EGT[0]") + 90)*D2R);
|
||||
me["EGT2-needle"].setRotation((getprop("/ECAM/Upper/EGT[1]") + 90)*D2R);
|
||||
me["EGT1-needle"].setRotation((getprop("/ECAM/Upper/EGT[0]") + 90) * D2R);
|
||||
me["EGT2-needle"].setRotation((getprop("/ECAM/Upper/EGT[1]") + 90) * D2R);
|
||||
|
||||
if (getprop("/systems/fadec/eng1/egt") == 1) {
|
||||
me["EGT1-scale"].setColor(0.8078,0.8039,0.8078);
|
||||
|
@ -579,13 +579,13 @@ var canvas_upperECAM_iae_eis2 = {
|
|||
me["N12"].setText(sprintf("%s", math.floor(getprop("/engines/engine[1]/n1-actual") + 0.05)));
|
||||
me["N12-decimal"].setText(sprintf("%s", int(10*math.mod(getprop("/engines/engine[1]/n1-actual") + 0.05,1))));
|
||||
|
||||
me["N11-needle"].setRotation((getprop("/ECAM/Upper/N1[0]") + 90)*D2R);
|
||||
me["N11-thr"].setRotation((getprop("/ECAM/Upper/N1thr[0]") + 90)*D2R);
|
||||
me["N11-ylim"].setRotation((getprop("/ECAM/Upper/N1ylim") + 90)*D2R);
|
||||
me["N11-needle"].setRotation((getprop("/ECAM/Upper/N1[0]") + 90) * D2R);
|
||||
me["N11-thr"].setRotation((getprop("/ECAM/Upper/N1thr[0]") + 90) * D2R);
|
||||
me["N11-ylim"].setRotation((getprop("/ECAM/Upper/N1ylim") + 90) * D2R);
|
||||
|
||||
me["N12-needle"].setRotation((getprop("/ECAM/Upper/N1[1]") + 90)*D2R);
|
||||
me["N12-thr"].setRotation((getprop("/ECAM/Upper/N1thr[1]") + 90)*D2R);
|
||||
me["N12-ylim"].setRotation((getprop("/ECAM/Upper/N1ylim") + 90)*D2R);
|
||||
me["N12-needle"].setRotation((getprop("/ECAM/Upper/N1[1]") + 90) * D2R);
|
||||
me["N12-thr"].setRotation((getprop("/ECAM/Upper/N1thr[1]") + 90) * D2R);
|
||||
me["N12-ylim"].setRotation((getprop("/ECAM/Upper/N1ylim") + 90) * D2R);
|
||||
|
||||
if (getprop("/systems/fadec/eng1/n1") == 1) {
|
||||
me["N11-scale"].setColor(0.8078,0.8039,0.8078);
|
||||
|
|
Reference in a new issue