Merge branch 'master' of github.com:it0uchpods/IDG-A32X

This commit is contained in:
Joshua Davidson 2017-10-20 18:37:27 -04:00
commit 39234b47c5

View file

@ -698,6 +698,9 @@ var canvas_lowerECAM_wheel = {
leftgear = getprop("gear/gear[1]/position-norm"); leftgear = getprop("gear/gear[1]/position-norm");
rightgear = getprop("gear/gear[2]/position-norm"); rightgear = getprop("gear/gear[2]/position-norm");
leftdoor = getprop("/systems/hydraulic/gear/door-left"); leftdoor = getprop("/systems/hydraulic/gear/door-left");
rightdoor = getprop("/systems/hydraulic/gear/door-right");
nosedoor = getprop("/systems/hydraulic/gear/door-nose");
# Gear Doors # Gear Doors
me["leftdoor"].setRotation(getprop("/ECAM/Lower/door-left")*D2R); me["leftdoor"].setRotation(getprop("/ECAM/Lower/door-left")*D2R);
@ -705,6 +708,26 @@ var canvas_lowerECAM_wheel = {
me["nosegeardoorL"].setRotation(getprop("/ECAM/Lower/door-nose-left")*D2R); me["nosegeardoorL"].setRotation(getprop("/ECAM/Lower/door-nose-left")*D2R);
me["nosegeardoorR"].setRotation(getprop("/ECAM/Lower/door-nose-right")*D2R); me["nosegeardoorR"].setRotation(getprop("/ECAM/Lower/door-nose-right")*D2R);
if (nosedoor == 0) {
me["nosegeardoorL"].setColorFill(0.0667,0.7294,0.3137);
me["nosegeardoorR"].setColorFill(0.0667,0.7294,0.3137);
} else {
me["nosegeardoorL"].setColorFill(0.7333,0.3803,0);
me["nosegeardoorR"].setColorFill(0.7333,0.3803,0);
}
if (leftdoor == 0) {
me["leftdoor"].setColorFill(0.0667,0.7294,0.3137);
} else {
me["leftdoor"].setColorFill(0.7333,0.3803,0);
}
if (rightdoor == 0) {
me["rightdoor"].setColorFill(0.0667,0.7294,0.3137);
} else {
me["rightdoor"].setColorFill(0.7333,0.3803,0);
}
# Triangles # Triangles
if (leftgear < 0.2 or leftgear > 0.8) { if (leftgear < 0.2 or leftgear > 0.8) {
me["Triangle-Left1"].hide(); me["Triangle-Left1"].hide();