diff --git a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas index dade3ca9..e9df21c4 100644 --- a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas +++ b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas @@ -698,6 +698,9 @@ var canvas_lowerECAM_wheel = { leftgear = getprop("gear/gear[1]/position-norm"); rightgear = getprop("gear/gear[2]/position-norm"); leftdoor = getprop("/systems/hydraulic/gear/door-left"); + rightdoor = getprop("/systems/hydraulic/gear/door-right"); + nosedoor = getprop("/systems/hydraulic/gear/door-nose"); + # Gear Doors 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["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 if (leftgear < 0.2 or leftgear > 0.8) { me["Triangle-Left1"].hide();