-
-
+
+
-
+
-
diff --git a/html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/MFD/Heavy/Heavy_B747_8_MFD_MainPage.js b/html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/MFD/Heavy/Heavy_B747_8_MFD_MainPage.js
index 841aae8..92a6038 100644
--- a/html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/MFD/Heavy/Heavy_B747_8_MFD_MainPage.js
+++ b/html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/MFD/Heavy/Heavy_B747_8_MFD_MainPage.js
@@ -49,95 +49,75 @@ B747_8_MFD_MainPage.prototype.updateAltitudeArc = function (_deltatime) {
}
};
+B747_8_MFD_MainPage.prototype.extendMFDHtmlElementsWithIrsState = () => {
+ [document.getElementById('headingGroup'),
+ document.getElementById('CourseInfo'),
+ document.getElementById('selectedHeadingGroup'),
+ document.getElementById('selectedTrackGroup'),
+ document.getElementById('ILSGroup'),
+ document.getElementById('currentRefGroup'),
+ document.getElementById('RangeGroup'),
+ ].forEach((element) => {
+ element.setAttribute('irs-state', 'off');
+ });
+
+ let compassCircleGroup = document.getElementById('circleGroup');
+ compassCircleGroup.querySelectorAll('text').forEach((element) => {
+ element.setAttribute('irs-state', 'off');
+ });
+};
+
B747_8_MFD_MainPage.prototype.updateMapIfIrsNotAligned = function () {
+ this.extendMFDHtmlElementsWithIrsState();
this.heavyIRSSimulator.update();
if (this.heavyIRSSimulator.irsLState > 2 || this.heavyIRSSimulator.irsCState > 2 || this.heavyIRSSimulator.irsRState > 2) {
- document.getElementById('align-times').style.visibility = 'hidden';
- document.getElementById('FakeMapBox').style.visibility = 'hidden';
- document.getElementById('FakeCompassBoxHdg').style.visibility = 'hidden';
- document.getElementById('FakeCompassBox').style.visibility = 'hidden';
-
- document.getElementById('Map').style.visibility = 'visible';
- document.getElementById('headingGroup').style.visibility = 'visible';
- document.getElementById('CourseInfo').style.visibility = 'visible';
- document.getElementById('selectedHeadingGroup').style.visibility = 'visible';
- document.getElementById('selectedTrackGroup').style.visibility = 'visible';
- document.getElementById('ILSGroup').style.visibility = 'visible';
- document.getElementById('currentRefGroup').style.visibility = 'visible';
- document.getElementById('RangeGroup').style.visibility = 'visible';
-
- document.getElementById('NDInfo').style.visibility = 'visible';
-
- let compassCircleGroup = document.getElementById('circleGroup');
- compassCircleGroup.querySelectorAll('text').forEach((element) => {
- element.style.visibility = 'visible';
+ document.querySelectorAll('[irs-state]').forEach((element) => {
+ element.setAttribute('irs-state', 'aligned');
});
return;
- }
-
- document.getElementById('align-times').style.visibility = 'visible';
-
- if (this.heavyIRSSimulator.irsLState > 0 || this.heavyIRSSimulator.irsCState > 0 || this.heavyIRSSimulator.irsRState > 0) {
- document.getElementById('FakeCompassBoxHdg').style.visibility = 'hidden';
- document.getElementById('FakeCompassBox').style.visibility = 'visible';
- } else {
- document.getElementById('FakeCompassBoxHdg').style.visibility = 'visible';
- document.getElementById('FakeCompassBox').style.visibility = 'hidden';
- }
-
- document.getElementById('Map').style.visibility = 'hidden';
-
- document.getElementById('headingGroup').style.visibility = 'hidden';
- document.getElementById('CourseInfo').style.visibility = 'hidden';
- document.getElementById('selectedHeadingGroup').style.visibility = 'hidden';
- document.getElementById('selectedTrackGroup').style.visibility = 'hidden';
- document.getElementById('ILSGroup').style.visibility = 'hidden';
- document.getElementById('currentRefGroup').style.visibility = 'hidden';
- document.getElementById('RangeGroup').style.visibility = 'hidden';
-
- document.getElementById('NDInfo').style.visibility = 'hidden';
+ } else if (this.heavyIRSSimulator.irsLState > 1 || this.heavyIRSSimulator.irsCState > 1 || this.heavyIRSSimulator.irsRState > 1) {
+ document.querySelectorAll('[irs-state]').forEach((element) => {
+ element.setAttribute('irs-state', 'aligning');
+ });
- let aligns = [document.getElementById('l-align'), document.getElementById('c-align'), document.getElementById('r-align')];
+ let aligns = [document.getElementById('l-align'), document.getElementById('c-align'), document.getElementById('r-align')];
+ aligns.forEach((element) => {
+ element.style.visibility = 'hidden';
+ element.textContent = '';
+ });
- if (this.heavyIRSSimulator.irsLState === 2 || this.heavyIRSSimulator.irsCState === 2 || this.heavyIRSSimulator.irsRState === 2) {
- document.getElementById('time-to-align').style.visibility = 'visible';
+ let times = [];
+ let position = 0;
+ let now = Math.floor(Date.now() / 1000);
+ if (this.heavyIRSSimulator.irsLState === 2) {
+ aligns[position].textContent = 'L ' + Math.floor(((this.heavyIRSSimulator.initLAlignTime + this.heavyIRSSimulator.irsLTimeForAligning) - now) / 60) + '+ MIN';
+ aligns[position].style.visibility = 'visible';
+ position++;
+ }
+
+ if (this.heavyIRSSimulator.irsCState === 2) {
+ aligns[position].textContent = 'C ' + Math.floor(((this.heavyIRSSimulator.initCAlignTime + this.heavyIRSSimulator.irsCTimeForAligning) - now) / 60) + '+ MIN';
+ aligns[position].style.visibility = 'visible';
+ position++;
+ }
+
+ if (this.heavyIRSSimulator.irsRState === 2) {
+ aligns[position].textContent = 'R ' + Math.floor(((this.heavyIRSSimulator.initRAlignTime + this.heavyIRSSimulator.irsRTimeForAligning) - now) / 60) + '+ MIN';
+ aligns[position].style.visibility = 'visible';
+ position++;
+ }
+
+ } else if (this.heavyIRSSimulator.irsLState > 0 || this.heavyIRSSimulator.irsCState > 0 || this.heavyIRSSimulator.irsRState > 0) {
+ document.querySelectorAll('[irs-state]').forEach((element) => {
+ element.setAttribute('irs-state', 'inited');
+ });
} else {
- document.getElementById('time-to-align').style.visibility = 'hidden';
- }
-
- aligns.forEach((element) => {
- element.style.visibility = 'hidden';
- element.textContent = '';
- });
-
- let times = [];
- let position = 0;
- let now = Math.floor(Date.now() / 1000);
- if (this.heavyIRSSimulator.irsLState === 2) {
- aligns[position].textContent = 'L ' + Math.floor(((this.heavyIRSSimulator.initLAlignTime + this.heavyIRSSimulator.irsLTimeForAligning) - now) / 60) + '+ MIN';
- aligns[position].style.visibility = 'visible';
- position++;
- }
-
- if (this.heavyIRSSimulator.irsCState === 2) {
- aligns[position].textContent = 'C ' + Math.floor(((this.heavyIRSSimulator.initCAlignTime + this.heavyIRSSimulator.irsCTimeForAligning) - now) / 60) + '+ MIN';
- aligns[position].style.visibility = 'visible';
- position++;
- }
-
- if (this.heavyIRSSimulator.irsRState === 2) {
- aligns[position].textContent = 'R ' + Math.floor(((this.heavyIRSSimulator.initRAlignTime + this.heavyIRSSimulator.irsRTimeForAligning) - now) / 60) + '+ MIN';
- aligns[position].style.visibility = 'visible';
- position++;
+ document.querySelectorAll('[irs-state]').forEach((element) => {
+ element.setAttribute('irs-state', 'off');
+ });
}
-
- // Hides all texts from compass circle
- let compassCircleGroup = document.getElementById('circleGroup');
- compassCircleGroup.querySelectorAll('text').forEach((element) => {
- element.style.visibility = 'hidden';
- });
};
B747_8_MFD_MainPage.prototype.onUpdate = function (_deltatime) {
diff --git a/layout.json b/layout.json
index 215f9ec..d7ce759 100644
--- a/layout.json
+++ b/layout.json
@@ -3,322 +3,322 @@
{
"path": "html_ui/Heavy/Arrays/HeavyArray.js",
"size": 473,
- "date": 132526360038658630
+ "date": 132524234856761326
},
{
"path": "html_ui/Heavy/Simulators/HeavyIRSSimulator.js",
"size": 7251,
- "date": 132533004119786056
+ "date": 132532863418499372
},
{
"path": "html_ui/Heavy/Tools/FMCString.js",
"size": 5350,
- "date": 132534605912221164
+ "date": 132534900642531152
},
{
"path": "html_ui/Heavy/Utils/HeavyDataStorage.js",
"size": 378,
- "date": 132533004119826060
+ "date": 132532627646314052
},
{
"path": "html_ui/Heavy/Utils/HeavyInputUtils.js",
"size": 331,
- "date": 132515617729653522
+ "date": 132515241274547892
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/EICAS/B747_8_EICAS.html",
"size": 2910,
- "date": 132529239650175314
+ "date": 132529543826965590
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/EICAS/B747_8_EICAS.js",
"size": 6142,
- "date": 132533004119826060
+ "date": 132532426284561606
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/EICAS/Pages/B747_8_LowerEICAS_Doors.css",
"size": 906,
- "date": 132526360038688550
+ "date": 132525662059923200
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/EICAS/Pages/B747_8_LowerEICAS_Doors.html",
"size": 7067,
- "date": 132526360038688550
+ "date": 132525662059923200
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/EICAS/Pages/B747_8_LowerEICAS_Doors.js",
"size": 3311,
- "date": 132526360038698524
+ "date": 132525662059933168
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/EICAS/Pages/B747_8_LowerEICAS_Elec.css",
"size": 2202,
- "date": 132529239650225184
+ "date": 132529543826985536
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/EICAS/Pages/B747_8_LowerEICAS_Elec.html",
"size": 13566,
- "date": 132529239650235160
+ "date": 132529543826995508
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/EICAS/Pages/B747_8_LowerEICAS_Elec.js",
"size": 12433,
- "date": 132529239650275054
+ "date": 132529543826995508
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/B747_8_FMC.html",
"size": 6167,
- "date": 132533135683972318
+ "date": 132534900642552386
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/B747_8_FMC_MainDisplay.js",
"size": 37442,
- "date": 132533004119866052
+ "date": 132532426284581552
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_ApproachPage.js",
"size": 2603,
- "date": 132516612341800584
+ "date": 132532174313813394
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_ArrivalsPage.js",
"size": 3863,
- "date": 132516581510063472
+ "date": 132532175051290116
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_DepArrIndexPage.js",
"size": 6262,
- "date": 132526360038708494
+ "date": 132532176066558044
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_DeparturesPage.js",
"size": 9664,
- "date": 132526360038718466
+ "date": 132521313380213042
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_HeavyIRSMenuPage.js",
"size": 4638,
- "date": 132533128153953394
+ "date": 132532869086978464
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_HeavyMenuPage.js",
"size": 858,
- "date": 132534605912450552
+ "date": 132534900642552386
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_HeavyPayloadManager.js",
"size": 19161,
- "date": 132534602154552780
+ "date": 132534900642562372
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_HeavySimRateManager.js",
"size": 15484,
- "date": 132533004119906052
+ "date": 132532903159152390
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_IdentPage.js",
"size": 815,
- "date": 132516612342129660
+ "date": 132517761042841034
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_InitRefIndexPage.js",
"size": 1206,
- "date": 132516581510073440
+ "date": 132515949358228578
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_LateralRevisionPage.js",
"size": 1663,
- "date": 132516581510083410
+ "date": 132532178049257298
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_LegsPage.js",
"size": 8035,
- "date": 132533004119906052
+ "date": 132532426284581552
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_MainDisplay.js",
"size": 16978,
- "date": 132533004119906052
+ "date": 132532426284591530
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_MaintPage.js",
"size": 371,
- "date": 132516612340942852
+ "date": 132517761042851006
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_MenuPage.js",
"size": 547,
- "date": 132534605678686168
+ "date": 132534900642562372
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_NavDataPage.js",
"size": 376,
- "date": 132516612341142296
+ "date": 132517761042860980
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_NavRadioPage.js",
"size": 6424,
- "date": 132516581510103350
+ "date": 132532186684501702
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_PerfInitPage.js",
"size": 3336,
- "date": 132533004119946054
+ "date": 132532426284591530
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_PosInitPage.js",
"size": 4663,
- "date": 132531265358467676
+ "date": 132532426284601498
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_ProgPage.js",
"size": 6909,
- "date": 132533004119946054
+ "date": 132532426284601498
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_RoutePage.js",
"size": 9202,
- "date": 132516581510113332
+ "date": 132532196529480290
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_SelectWptPage.js",
"size": 1198,
- "date": 132516581510123300
+ "date": 132532196939327154
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_TakeOffPage.js",
"size": 4123,
- "date": 132533004119946054
+ "date": 132532426284611470
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_ThrustLimPage.js",
"size": 2342,
- "date": 132533004119946054
+ "date": 132532426284611470
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_VerticalRevisionPage.js",
"size": 1022,
- "date": 132516581510143252
+ "date": 132532202586326458
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/FMC/Heavy/Heavy_B747_8_FMC_VNAVPage.js",
"size": 5835,
- "date": 132533004119986072
+ "date": 132532426284621446
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/MFD/B747_8_MFD.css",
- "size": 9328,
- "date": 132533004119986072
+ "size": 12505,
+ "date": 132535710752276966
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/MFD/B747_8_MFD.html",
- "size": 9765,
- "date": 132533004119986072
+ "size": 9973,
+ "date": 132535710393653274
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/MFD/Heavy/Heavy_B747_8_MFD_MainPage.js",
- "size": 6981,
- "date": 132533004119986072
+ "size": 5666,
+ "date": 132535711666638344
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/PFD/B747_8_PFD.css",
- "size": 4876,
- "date": 132533004120026066
+ "size": 7381,
+ "date": 132535655743498964
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/PFD/B747_8_PFD.html",
- "size": 5904,
- "date": 132533004120026066
+ "size": 6166,
+ "date": 132535655743498964
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B747_8/PFD/Heavy/Heavy_B747_8_PFD.js",
- "size": 3526,
- "date": 132533004120026066
+ "size": 2173,
+ "date": 132535655743508940
},
{
"path": "SimObjects/Airplanes/Asobo_B747_8i/approach.FLT",
"size": 5448,
- "date": 132533004119706056
+ "date": 132532454245748146
},
{
"path": "SimObjects/Airplanes/Asobo_B747_8i/apron.FLT",
"size": 5312,
- "date": 132533004119706056
+ "date": 132532541617140878
},
{
"path": "SimObjects/Airplanes/Asobo_B747_8i/Climb.flt",
"size": 5453,
- "date": 132533004119706056
+ "date": 132532454245967300
},
{
"path": "SimObjects/Airplanes/Asobo_B747_8i/cruise.FLT",
"size": 5448,
- "date": 132533004119706056
+ "date": 132532454246047326
},
{
"path": "SimObjects/Airplanes/Asobo_B747_8i/final.FLT",
"size": 5456,
- "date": 132533004119746048
+ "date": 132532454245827662
},
{
"path": "SimObjects/Airplanes/Asobo_B747_8i/hangar.flt",
"size": 4422,
- "date": 132533004119746048
+ "date": 132532454246264120
},
{
"path": "SimObjects/Airplanes/Asobo_B747_8i/runway.FLT",
"size": 5313,
- "date": 132533004119786056
+ "date": 132532454246194304
},
{
"path": "SimObjects/Airplanes/Asobo_B747_8i/taxi.FLT",
"size": 5242,
- "date": 132533004119786056
+ "date": 132532454246126866
},
{
"path": "SimObjects/Airplanes/Asobo_B747_8i/model/747_8I.xml",
"size": 11838,
- "date": 132531602218788586
+ "date": 132532426284541660
},
{
"path": "SimObjects/Airplanes/Asobo_B747_8i/model/747_8I_INTERIOR.xml",
- "size": 190825,
- "date": 132533004119786056
+ "size": 186611,
+ "date": 132532436926101582
},
{
"path": "ModelBehaviorDefs/Asobo/Common.xml",
"size": 167,
- "date": 132531265358367938
+ "date": 132532426284521718
},
{
"path": "ModelBehaviorDefs/Asobo/Airliner/AirlinerCommon.xml",
"size": 49866,
- "date": 132531600018779696
+ "date": 132532426284501774
},
{
"path": "ModelBehaviorDefs/Asobo/Airliner/Boeing.xml",
"size": 43998,
- "date": 132531598760295184
+ "date": 132532426284511764
},
{
"path": "ModelBehaviorDefs/Asobo/Airliner/FMC.xml",
"size": 73497,
- "date": 132531591658669152
+ "date": 132532426284511764
},
{
"path": "ModelBehaviorDefs/Heavy/Index.xml",
"size": 85,
- "date": 132531265358377924
+ "date": 132532426284521718
},
{
"path": "ModelBehaviorDefs/Heavy/Switches/Index.xml",
"size": 74,
- "date": 132531265358387898
+ "date": 132532426284531694
},
{
"path": "ModelBehaviorDefs/Heavy/Switches/IRS.xml",
"size": 535,
- "date": 132531265358387898
+ "date": 132532426284531694
}
]
}
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index a69a575..8fde5e8 100644
--- a/manifest.json
+++ b/manifest.json
@@ -21,5 +21,5 @@
"OlderHistory": ""
}
},
- "total_package_size": "00000000000000696866"
+ "total_package_size": "00000000000000696136"
}
\ No newline at end of file