A32X: Lower ECAM fixes
This commit is contained in:
parent
b6b1e0b228
commit
58846b86a7
1 changed files with 217 additions and 219 deletions
|
@ -264,6 +264,223 @@ var canvas_lowerECAM_apu = {
|
|||
},
|
||||
};
|
||||
|
||||
var canvas_lowerECAM_door = {
|
||||
new: func(canvas_group, file) {
|
||||
var m = {parents: [canvas_lowerECAM_door, canvas_lowerECAM_base]};
|
||||
m.init(canvas_group, file);
|
||||
|
||||
return m;
|
||||
},
|
||||
getKeys: func() {
|
||||
return ["TAT","SAT","GW","Bulk","BulkLine","BulkLbl", "Exit1L", "Exit1R", "Cabin1Left", "Cabin1LeftLbl", "Cabin1LeftLine", "Cabin1LeftSlide", "Cabin1Right", "Cabin1RightLbl", "Cabin1RightLine", "Cabin1RightSlide", "Cabin2Left", "Cabin2LeftLbl",
|
||||
"Cabin2LeftLine", "Cabin2LeftSlide", "Cabin2Right", "Cabin2RightLbl", "Cabin2RightLine", "Cabin2RightSlide", "Cabin3Left","Cabin3LeftLbl", "Cabin3LeftLine", "Cabin3LeftSlide", "Cabin3Right", "Cabin3RightLbl", "Cabin3RightLine", "Cabin3RightSlide",
|
||||
"AvionicsLine1", "AvionicsLbl1", "AvionicsLine2", "AvionicsLbl2","Cargo1Line", "Cargo1Lbl", "Cargo1Door", "Cargo2Line", "Cargo2Lbl", "Cargo2Door", "ExitLSlide", "ExitLLine", "ExitLLbl", "ExitRSlide", "ExitRLine", "ExitRLbl", "Cabin4Left",
|
||||
"Cabin4LeftLbl", "Cabin4LeftLine", "Cabin4LeftSlide", "Cabin4Right", "Cabin4RightLbl", "Cabin4RightLine", "Cabin4RightSlide"];
|
||||
},
|
||||
update: func() {
|
||||
# If you make AirBerlin or Allegiant livery add below
|
||||
if (((getprop("/sim/aircraft") == "A319-100-IAE") or (getprop("/sim/aircraft") == "A319-100-CFM")) and (getprop("/sim/model/livery/name") != "easyJet" or getprop("/sim/model/livery/name") != "GermanWings (D-AGWZ)")) {
|
||||
me["Exit1L"].hide();
|
||||
me["Exit1R"].hide()
|
||||
} else {
|
||||
me["Exit1L"].show();
|
||||
me["Exit1R"].show();
|
||||
}
|
||||
|
||||
if (getprop("sim/model/door-positions/doorl1/position-norm") > 0) {
|
||||
me["Cabin1Left"].show();
|
||||
me["Cabin1Left"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin1Left"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin1LeftLbl"].show();
|
||||
me["Cabin1LeftLine"].show();
|
||||
} else {
|
||||
me["Cabin1Left"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin1Left"].setColorFill(0,0,0);
|
||||
me["Cabin1LeftLbl"].hide();
|
||||
me["Cabin1LeftLine"].hide();
|
||||
}
|
||||
|
||||
if (getprop("sim/model/door-positions/doorr1/position-norm") > 0) {
|
||||
me["Cabin1Right"].show();
|
||||
me["Cabin1Right"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin1Right"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin1RightLbl"].show();
|
||||
me["Cabin1RightLine"].show();
|
||||
} else {
|
||||
me["Cabin1Right"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin1Right"].setColorFill(0,0,0);
|
||||
me["Cabin1RightLbl"].hide();
|
||||
me["Cabin1RightLine"].hide();
|
||||
}
|
||||
|
||||
if (((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) and getprop("sim/model/door-positions/doorl2/position-norm") > 0) {
|
||||
me["Cabin2Left"].show();
|
||||
me["Cabin2Left"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin2Left"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin2LeftLbl"].show();
|
||||
me["Cabin2LeftLine"].show();
|
||||
} else if ((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) {
|
||||
me["Cabin2Left"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin2Left"].setColorFill(0,0,0);
|
||||
me["Cabin2LeftLbl"].hide();
|
||||
me["Cabin2LeftLine"].hide();
|
||||
} else {
|
||||
me["Cabin2Left"].hide();
|
||||
me["Cabin2LeftLbl"].hide();
|
||||
me["Cabin2LeftLine"].hide();
|
||||
}
|
||||
|
||||
if (((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) and getprop("sim/model/door-positions/doorr2/position-norm") > 0) {
|
||||
me["Cabin2Right"].show();
|
||||
me["Cabin2Right"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin2Right"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin2RightLbl"].show();
|
||||
me["Cabin2RightLine"].show();
|
||||
} else if ((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) {
|
||||
me["Cabin2Right"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin2Right"].setColorFill(0,0,0);
|
||||
me["Cabin2RightLbl"].hide();
|
||||
me["Cabin2RightLine"].hide();
|
||||
} else {
|
||||
me["Cabin2Right"].hide();
|
||||
me["Cabin2RightLbl"].hide();
|
||||
me["Cabin2RightLine"].hide();
|
||||
}
|
||||
|
||||
if (((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) and getprop("sim/model/door-positions/doorl3/position-norm") > 0) {
|
||||
me["Cabin3Left"].show();
|
||||
me["Cabin3Left"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin3Left"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin3LeftLbl"].show();
|
||||
me["Cabin3LeftLine"].show();
|
||||
} else if ((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) {
|
||||
me["Cabin3Left"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin3Left"].setColorFill(0,0,0);
|
||||
me["Cabin3LeftLbl"].hide();
|
||||
me["Cabin3LeftLine"].hide();
|
||||
} else {
|
||||
me["Cabin3Left"].hide();
|
||||
me["Cabin3LeftLbl"].hide();
|
||||
me["Cabin3LeftLine"].hide();
|
||||
}
|
||||
|
||||
if (((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) and getprop("sim/model/door-positions/doorr3/position-norm") > 0) {
|
||||
me["Cabin3Right"].show();
|
||||
me["Cabin3Right"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin3Right"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin3RightLbl"].show();
|
||||
me["Cabin3RightLine"].show();
|
||||
} else if ((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) {
|
||||
me["Cabin3Right"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin3Right"].setColorFill(0,0,0);
|
||||
me["Cabin3RightLbl"].hide();
|
||||
me["Cabin3RightLine"].hide();
|
||||
} else {
|
||||
me["Cabin3Right"].hide();
|
||||
me["Cabin3RightLbl"].hide();
|
||||
me["Cabin3RightLine"].hide();
|
||||
}
|
||||
|
||||
if (getprop("sim/model/door-positions/doorl4/position-norm") > 0) {
|
||||
me["Cabin4Left"].show();
|
||||
me["Cabin4Left"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin4Left"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin4LeftLbl"].show();
|
||||
me["Cabin4LeftLine"].show();
|
||||
} else {
|
||||
me["Cabin4Left"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin4Left"].setColorFill(0,0,0);
|
||||
me["Cabin4LeftLbl"].hide();
|
||||
me["Cabin4LeftLine"].hide();
|
||||
}
|
||||
|
||||
if (getprop("sim/model/door-positions/doorr4/position-norm") > 0) {
|
||||
me["Cabin4Right"].show();
|
||||
me["Cabin4Right"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin4Right"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin4RightLbl"].show();
|
||||
me["Cabin4RightLine"].show();
|
||||
} else {
|
||||
me["Cabin4Right"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin4Right"].setColorFill(0,0,0);
|
||||
me["Cabin4RightLbl"].hide();
|
||||
me["Cabin4RightLine"].hide();
|
||||
}
|
||||
|
||||
if ((getprop("/sim/aircraft") == "A319-100-IAE") or (getprop("/sim/aircraft") == "A319-100-CFM")) {
|
||||
me["Bulk"].hide();
|
||||
} else {
|
||||
me["Bulk"].show();
|
||||
}
|
||||
|
||||
if (getprop("/sim/model/door-positions/cargobulk/position-norm") > 0) {
|
||||
me["Bulk"].setColor(0.7333,0.3803,0);
|
||||
me["Bulk"].setColorFill(0.7333,0.3803,0);
|
||||
me["BulkLbl"].show();
|
||||
me["BulkLine"].show();
|
||||
} else {
|
||||
me["Bulk"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Bulk"].setColorFill(0,0,0);
|
||||
me["BulkLbl"].hide();
|
||||
me["BulkLine"].hide();
|
||||
}
|
||||
|
||||
if (getprop("/sim/model/door-positions/cargofwd/position-norm") > 0) {
|
||||
me["Cargo1Door"].setColor(0.7333,0.3803,0);
|
||||
me["Cargo1Door"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cargo1Lbl"].show();
|
||||
me["Cargo1Line"].show();
|
||||
} else {
|
||||
me["Cargo1Door"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cargo1Door"].setColorFill(0,0,0);
|
||||
me["Cargo1Lbl"].hide();
|
||||
me["Cargo1Line"].hide();
|
||||
}
|
||||
|
||||
if (getprop("/sim/model/door-positions/cargoaft/position-norm") > 0) {
|
||||
me["Cargo2Door"].setColor(0.7333,0.3803,0);
|
||||
me["Cargo2Door"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cargo2Lbl"].show();
|
||||
me["Cargo2Line"].show();
|
||||
} else {
|
||||
me["Cargo2Door"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cargo2Door"].setColorFill(0,0,0);
|
||||
me["Cargo2Lbl"].hide();
|
||||
me["Cargo2Line"].hide();
|
||||
}
|
||||
|
||||
me["Cabin1LeftSlide"].hide();
|
||||
me["Cabin1RightSlide"].hide();
|
||||
me["Cabin2LeftSlide"].hide();
|
||||
me["Cabin2RightSlide"].hide();
|
||||
me["Cabin3LeftSlide"].hide();
|
||||
me["Cabin3RightSlide"].hide();
|
||||
me["Cabin4LeftSlide"].hide();
|
||||
me["Cabin4RightSlide"].hide();
|
||||
|
||||
me["AvionicsLine1"].hide();
|
||||
me["AvionicsLine2"].hide();
|
||||
me["AvionicsLbl1"].hide();
|
||||
me["AvionicsLbl2"].hide();
|
||||
me["ExitLSlide"].hide();
|
||||
me["ExitLLine"].hide();
|
||||
me["ExitLLbl"].hide();
|
||||
me["ExitRSlide"].hide();
|
||||
me["ExitRLine"].hide();
|
||||
me["ExitRLbl"].hide();
|
||||
me["Cargo1Line"].hide();
|
||||
me["Cargo1Lbl"].hide();
|
||||
me["Cargo2Line"].hide();
|
||||
me["Cargo2Lbl"].hide();
|
||||
me["Cabin1LeftSlide"].hide();
|
||||
me["Cabin1RightSlide"].hide();
|
||||
me["Cabin4LeftSlide"].hide();
|
||||
me["Cabin4RightSlide"].hide();
|
||||
|
||||
me.updateBottomStatus();
|
||||
},
|
||||
};
|
||||
|
||||
var canvas_lowerECAM_eng = {
|
||||
new: func(canvas_group, file) {
|
||||
var m = {parents: [canvas_lowerECAM_eng, canvas_lowerECAM_base]};
|
||||
|
@ -1147,225 +1364,6 @@ var canvas_lowerECAM_wheel = {
|
|||
},
|
||||
};
|
||||
|
||||
var canvas_lowerECAM_door = {
|
||||
new: func(canvas_group, file) {
|
||||
var m = {parents: [canvas_lowerECAM_door, canvas_lowerECAM_base]};
|
||||
m.init(canvas_group, file);
|
||||
|
||||
return m;
|
||||
},
|
||||
getKeys: func() {
|
||||
return ["TAT","SAT","GW","Bulk","BulkLine","BulkLbl", "Exit1L", "Exit1R", "Cabin1Left", "Cabin1LeftLbl", "Cabin1LeftLine", "Cabin1LeftSlide", "Cabin1Right", "Cabin1RightLbl", "Cabin1RightLine", "Cabin1RightSlide", "Cabin2Left", "Cabin2LeftLbl", "Cabin2LeftLine", "Cabin2LeftSlide",
|
||||
"Cabin2Right", "Cabin2RightLbl", "Cabin2RightLine", "Cabin2RightSlide", "Cabin3Left","Cabin3LeftLbl", "Cabin3LeftLine", "Cabin3LeftSlide", "Cabin3Right", "Cabin3RightLbl", "Cabin3RightLine", "Cabin3RightSlide", "AvionicsLine1", "AvionicsLbl1", "AvionicsLine2", "AvionicsLbl2",
|
||||
"Cargo1Line", "Cargo1Lbl", "Cargo1Door", "Cargo2Line", "Cargo2Lbl", "Cargo2Door", "ExitLSlide", "ExitLLine", "ExitLLbl", "ExitRSlide", "ExitRLine", "ExitRLbl", "Cabin4Left", "Cabin4LeftLbl", "Cabin4LeftLine", "Cabin4LeftSlide", "Cabin4Right", "Cabin4RightLbl", "Cabin4RightLine", "Cabin4RightSlide"];
|
||||
},
|
||||
update: func() {
|
||||
|
||||
# If you make AirBerlin or Allegiant livery add below
|
||||
if (((getprop("/sim/aircraft") == "A319-100-IAE") or (getprop("/sim/aircraft") == "A319-100-CFM")) and (getprop("/sim/model/livery/name") != "easyJet" or getprop("/sim/model/livery/name") != "GermanWings (D-AGWZ)")) {
|
||||
me["Exit1L"].hide();
|
||||
me["Exit1R"].hide()
|
||||
} else {
|
||||
me["Exit1L"].show();
|
||||
me["Exit1R"].show();
|
||||
}
|
||||
|
||||
if (getprop("sim/model/door-positions/doorl1/position-norm") > 0) {
|
||||
me["Cabin1Left"].show();
|
||||
me["Cabin1Left"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin1Left"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin1LeftLbl"].show();
|
||||
me["Cabin1LeftLine"].show();
|
||||
} else {
|
||||
me["Cabin1Left"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin1Left"].setColorFill(0,0,0);
|
||||
me["Cabin1LeftLbl"].hide();
|
||||
me["Cabin1LeftLine"].hide();
|
||||
}
|
||||
|
||||
if (getprop("sim/model/door-positions/doorr1/position-norm") > 0) {
|
||||
me["Cabin1Right"].show();
|
||||
me["Cabin1Right"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin1Right"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin1RightLbl"].show();
|
||||
me["Cabin1RightLine"].show();
|
||||
} else {
|
||||
me["Cabin1Right"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin1Right"].setColorFill(0,0,0);
|
||||
me["Cabin1RightLbl"].hide();
|
||||
me["Cabin1RightLine"].hide();
|
||||
}
|
||||
|
||||
if (((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) and getprop("sim/model/door-positions/doorl2/position-norm") > 0) {
|
||||
me["Cabin2Left"].show();
|
||||
me["Cabin2Left"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin2Left"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin2LeftLbl"].show();
|
||||
me["Cabin2LeftLine"].show();
|
||||
} else if ((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) {
|
||||
me["Cabin2Left"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin2Left"].setColorFill(0,0,0);
|
||||
me["Cabin2LeftLbl"].hide();
|
||||
me["Cabin2LeftLine"].hide();
|
||||
} else {
|
||||
me["Cabin2Left"].hide();
|
||||
me["Cabin2LeftLbl"].hide();
|
||||
me["Cabin2LeftLine"].hide();
|
||||
}
|
||||
|
||||
if (((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) and getprop("sim/model/door-positions/doorr2/position-norm") > 0) {
|
||||
me["Cabin2Right"].show();
|
||||
me["Cabin2Right"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin2Right"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin2RightLbl"].show();
|
||||
me["Cabin2RightLine"].show();
|
||||
} else if ((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) {
|
||||
me["Cabin2Right"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin2Right"].setColorFill(0,0,0);
|
||||
me["Cabin2RightLbl"].hide();
|
||||
me["Cabin2RightLine"].hide();
|
||||
} else {
|
||||
me["Cabin2Right"].hide();
|
||||
me["Cabin2RightLbl"].hide();
|
||||
me["Cabin2RightLine"].hide();
|
||||
}
|
||||
|
||||
if (((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) and getprop("sim/model/door-positions/doorl3/position-norm") > 0) {
|
||||
me["Cabin3Left"].show();
|
||||
me["Cabin3Left"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin3Left"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin3LeftLbl"].show();
|
||||
me["Cabin3LeftLine"].show();
|
||||
} else if ((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) {
|
||||
me["Cabin3Left"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin3Left"].setColorFill(0,0,0);
|
||||
me["Cabin3LeftLbl"].hide();
|
||||
me["Cabin3LeftLine"].hide();
|
||||
} else {
|
||||
me["Cabin3Left"].hide();
|
||||
me["Cabin3LeftLbl"].hide();
|
||||
me["Cabin3LeftLine"].hide();
|
||||
}
|
||||
|
||||
if (((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) and getprop("sim/model/door-positions/doorr3/position-norm") > 0) {
|
||||
me["Cabin3Right"].show();
|
||||
me["Cabin3Right"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin3Right"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin3RightLbl"].show();
|
||||
me["Cabin3RightLine"].show();
|
||||
} else if ((getprop("/sim/aircraft") == "A321-200-CFM") or (getprop("/sim/aircraft") == "A321-200-IAE") or (getprop("/sim/aircraft") == "A321neo-CFM") or (getprop("/sim/aircraft") == "A321neo-PW")) {
|
||||
me["Cabin3Right"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin3Right"].setColorFill(0,0,0);
|
||||
me["Cabin3RightLbl"].hide();
|
||||
me["Cabin3RightLine"].hide();
|
||||
} else {
|
||||
me["Cabin3Right"].hide();
|
||||
me["Cabin3RightLbl"].hide();
|
||||
me["Cabin3RightLine"].hide();
|
||||
}
|
||||
|
||||
if (getprop("sim/model/door-positions/doorl4/position-norm") > 0) {
|
||||
me["Cabin4Left"].show();
|
||||
me["Cabin4Left"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin4Left"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin4LeftLbl"].show();
|
||||
me["Cabin4LeftLine"].show();
|
||||
} else {
|
||||
me["Cabin4Left"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin4Left"].setColorFill(0,0,0);
|
||||
me["Cabin4LeftLbl"].hide();
|
||||
me["Cabin4LeftLine"].hide();
|
||||
}
|
||||
|
||||
if (getprop("sim/model/door-positions/doorr4/position-norm") > 0) {
|
||||
me["Cabin4Right"].show();
|
||||
me["Cabin4Right"].setColor(0.7333,0.3803,0);
|
||||
me["Cabin4Right"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cabin4RightLbl"].show();
|
||||
me["Cabin4RightLine"].show();
|
||||
} else {
|
||||
me["Cabin4Right"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cabin4Right"].setColorFill(0,0,0);
|
||||
me["Cabin4RightLbl"].hide();
|
||||
me["Cabin4RightLine"].hide();
|
||||
}
|
||||
|
||||
if ((getprop("/sim/aircraft") == "A319-100-IAE") or (getprop("/sim/aircraft") == "A319-100-CFM")) {
|
||||
me["Bulk"].hide();
|
||||
} else {
|
||||
me["Bulk"].show();
|
||||
}
|
||||
|
||||
if (getprop("/sim/model/door-positions/cargobulk/position-norm") > 0) {
|
||||
me["Bulk"].setColor(0.7333,0.3803,0);
|
||||
me["Bulk"].setColorFill(0.7333,0.3803,0);
|
||||
me["BulkLbl"].show();
|
||||
me["BulkLine"].show();
|
||||
} else {
|
||||
me["Bulk"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Bulk"].setColorFill(0,0,0);
|
||||
me["BulkLbl"].hide();
|
||||
me["BulkLine"].hide();
|
||||
}
|
||||
|
||||
if (getprop("/sim/model/door-positions/cargofwd/position-norm") > 0) {
|
||||
me["Cargo1Door"].setColor(0.7333,0.3803,0);
|
||||
me["Cargo1Door"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cargo1Lbl"].show();
|
||||
me["Cargo1Line"].show();
|
||||
} else {
|
||||
me["Cargo1Door"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cargo1Door"].setColorFill(0,0,0);
|
||||
me["Cargo1Lbl"].hide();
|
||||
me["Cargo1Line"].hide();
|
||||
}
|
||||
|
||||
if (getprop("/sim/model/door-positions/cargoaft/position-norm") > 0) {
|
||||
me["Cargo2Door"].setColor(0.7333,0.3803,0);
|
||||
me["Cargo2Door"].setColorFill(0.7333,0.3803,0);
|
||||
me["Cargo2Lbl"].show();
|
||||
me["Cargo2Line"].show();
|
||||
} else {
|
||||
me["Cargo2Door"].setColor(0.0509,0.7529,0.2941);
|
||||
me["Cargo2Door"].setColorFill(0,0,0);
|
||||
me["Cargo2Lbl"].hide();
|
||||
me["Cargo2Line"].hide();
|
||||
}
|
||||
|
||||
|
||||
me["Cabin1LeftSlide"].hide();
|
||||
me["Cabin1RightSlide"].hide();
|
||||
me["Cabin2LeftSlide"].hide();
|
||||
me["Cabin2RightSlide"].hide();
|
||||
me["Cabin3LeftSlide"].hide();
|
||||
me["Cabin3RightSlide"].hide();
|
||||
me["Cabin4LeftSlide"].hide();
|
||||
me["Cabin4RightSlide"].hide();
|
||||
|
||||
me["AvionicsLine1"].hide();
|
||||
me["AvionicsLine2"].hide();
|
||||
me["AvionicsLbl1"].hide();
|
||||
me["AvionicsLbl2"].hide();
|
||||
me["ExitLSlide"].hide();
|
||||
me["ExitLLine"].hide();
|
||||
me["ExitLLbl"].hide();
|
||||
me["ExitRSlide"].hide();
|
||||
me["ExitRLine"].hide();
|
||||
me["ExitRLbl"].hide();
|
||||
me["Cargo1Line"].hide();
|
||||
me["Cargo1Lbl"].hide();
|
||||
me["Cargo2Line"].hide();
|
||||
me["Cargo2Lbl"].hide();
|
||||
me["Cabin1LeftSlide"].hide();
|
||||
me["Cabin1RightSlide"].hide();
|
||||
me["Cabin4LeftSlide"].hide();
|
||||
me["Cabin4RightSlide"].hide();
|
||||
|
||||
|
||||
me.updateBottomStatus();
|
||||
},
|
||||
};
|
||||
|
||||
setlistener("sim/signals/fdm-initialized", func {
|
||||
lowerECAM_display = canvas.new({
|
||||
"name": "lowerECAM",
|
||||
|
|
Reference in a new issue