Heavy-Division / B78XH

B78XH is an open source and free modification of default Boeing 787-10 in Microsoft Flight Simulator.
GNU General Public License v3.0
418 stars 75 forks source link

SYS STAT page break SYS pages #41

Closed kimlada closed 3 years ago

kimlada commented 3 years ago

MSFS import B78XH_SystemInfo.js file after B787_10_MFD.js and B787_10_SYS.js sometimes.

calling:

_this.B78XH_SystemsInfo = new B78XHSystemsInfo();

throw an exception in the situation

Solutions: 1) do not use B78XH_SystemsInfo class in SYS pages and use direct calls for SimVars 2) wrap _this.B78XH_SystemsInfo = new B78XHSystemsInfo(); into try cache block try to init the class in init() and updateChild() methods 3) try to import the B78XHSystemInfo.js different than using: _ in _B787_10MFD.html or _B787_10SYS.html

maybe Include.addScript('/B78XH/Systems/B78XH_SystemsInfo.js'); in _B787_10MFD.js

We will call direct for SimVars right now...

kimlada commented 3 years ago

Probably just DEV MODE problem... SYS pages not working after MFD reset...

kimlada commented 3 years ago

Fixed bz direct SimVar calls