Made MCDU dimable

Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
merspieler 2018-11-07 23:50:30 +01:00
parent 92cc62fcfc
commit 5d867b9cdf
3 changed files with 1657 additions and 618 deletions

View file

@ -94,7 +94,7 @@ var canvas_MCDU_base = {
"PERFTO_V2","PERFTO_FE","PERFTO_SE","PERFTO_OE"];
},
update: func() {
if (getprop("/systems/electrical/bus/ac1") >= 110) {
if (getprop("/systems/electrical/bus/ac1") >= 110 and getprop("/controls/lighting/DU/mcdu1") > 0) {
MCDU_1.update();
MCDU_1.updateFast();
updateL = 1;
@ -103,7 +103,8 @@ var canvas_MCDU_base = {
updateL = 0;
MCDU_1.page.hide();
}
if (getprop("/systems/electrical/bus/ac2") >= 110) {
if (getprop("/systems/electrical/bus/ac2") >= 110 and getprop("/controls/lighting/DU/mcdu2") > 0) {
MCDU_1.update();
MCDU_2.update();
MCDU_2.updateFast();
updateR = 1;

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff