More stuff
This commit is contained in:
parent
1811431d00
commit
611cd9c74c
5 changed files with 13 additions and 9 deletions
|
@ -296,7 +296,7 @@ var canvas_lowerECAM_base = {
|
|||
lowerECAM_hyd.page.hide();
|
||||
lowerECAM_wheel.page.hide();
|
||||
lowerECAM_cond.update();
|
||||
} else if (page == "crz") {
|
||||
} else if (page == "cruise") {
|
||||
lowerECAM_apu.page.hide();
|
||||
lowerECAM_bleed.page.hide();
|
||||
lowerECAM_cond.page.hide();
|
||||
|
|
|
@ -478,9 +478,14 @@ var ECAM_controller = {
|
|||
}
|
||||
}
|
||||
|
||||
if (statusFlag == 1 and lines[0].getValue() == "") {
|
||||
ecam.SystemDisplayController.manCall("statusPage");
|
||||
if (!hasCleared and statusFlag) {
|
||||
statusFlag = 0;
|
||||
ecam.SystemDisplayController.manCall("statusPage");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!hasCleared and !statusFlag) {
|
||||
SystemDisplayController.manCall("CLR");
|
||||
}
|
||||
},
|
||||
recall: func() {
|
||||
|
|
|
@ -551,13 +551,13 @@ var messages_priority_3 = func {
|
|||
apuFireAgentTimer.msg = " -AGENT AFT " ~ systems.apuAgentTimer.getValue() ~ " S...DISCH";
|
||||
}
|
||||
|
||||
if (apuFireAgent.clearFlag == 0 and systems.APUNodes.Controls.fire.getValue() and !systems.extinguisherBottles.vector[5].lightProp.getValue() and systems.apuAgentTimer.getValue() != 0) {
|
||||
if (apuFireAgent.clearFlag == 0 and systems.APUNodes.Controls.fire.getValue() and !systems.extinguisherBottles.vector[4].lightProp.getValue() and systems.apuAgentTimer.getValue() != 0) {
|
||||
apuFireAgentTimer.active = 1;
|
||||
} else {
|
||||
ECAM_controller.warningReset(apuFireAgentTimer);
|
||||
}
|
||||
|
||||
if (apuFireAgent.clearFlag == 0 and systems.APUNodes.Controls.fire.getValue() and !systems.extinguisherBottles.vector[5].lightProp.getValue() and systems.apuAgentTimer.getValue() == 0) {
|
||||
if (apuFireAgent.clearFlag == 0 and systems.APUNodes.Controls.fire.getValue() and !systems.extinguisherBottles.vector[4].lightProp.getValue() and systems.apuAgentTimer.getValue() == 0) {
|
||||
apuFireAgent.active = 1;
|
||||
} else {
|
||||
ECAM_controller.warningReset(apuFireAgent);
|
||||
|
|
|
@ -154,7 +154,6 @@ var ECAMControlPanel = {
|
|||
return;
|
||||
}
|
||||
|
||||
SystemDisplayController.manCall("CLR");
|
||||
ecam.ECAM_controller.clear();
|
||||
},
|
||||
stsBtn: func() {
|
||||
|
@ -172,11 +171,11 @@ var ECAMControlPanel = {
|
|||
# todo
|
||||
},
|
||||
lightOff: func(pageLightOff) {
|
||||
if (pageLightOff == "crz") { return; }
|
||||
if (pageLightOff == "cruise") { return; }
|
||||
ECAM.lights[pageLightOff].setBoolValue(0);
|
||||
},
|
||||
lightOn: func(pageLightOn) {
|
||||
if (pageLightOn == "crz") { return; }
|
||||
if (pageLightOn == "cruise") { return; }
|
||||
ECAM.lights[pageLightOn].setBoolValue(1);
|
||||
},
|
||||
};
|
||||
|
|
|
@ -259,11 +259,11 @@ var SystemDisplayController = {
|
|||
},
|
||||
failureCall: func(newPage) {
|
||||
if (contains(me.PageList, newPage)) {
|
||||
ECAMControlPanel.lightOff(me.displayedPage.name);
|
||||
me.lastDisplayedPage = me.displayedPage;
|
||||
me.displayedPage = me.PageList[newPage];
|
||||
me.lastMode = me.mode;
|
||||
me.mode = 1;
|
||||
ECAMControlPanel.lightOff(me.lastDisplayedPage.name);
|
||||
ECAMControlPanel.lightOn(me.displayedPage.name);
|
||||
} else {
|
||||
debug.dump("Attempted to set page to unknown page", newPage);
|
||||
|
|
Loading…
Reference in a new issue