Merge pull request #60 from merspieler/dim

Made MCDU dimable
This commit is contained in:
Joshua Davidson 2018-11-07 18:03:40 -05:00 committed by GitHub
commit 6b13338467
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1656 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,7 @@ 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_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