diff --git a/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/components/tlr/tlr.js b/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/components/tlr/tlr.js new file mode 100644 index 0000000..93f3de4 --- /dev/null +++ b/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/components/tlr/tlr.js @@ -0,0 +1,172 @@ +import { DisplayComponent, FSComponent } from '@microsoft/msfs-sdk'; +const content = ` +TAKEOFF AND LANDING REPORT VGA 1013 EDDH-EDDF 19JAN25 +TLR-1 SEQ-123304905 19JAN25 2124Z +A/C D-AGHI HEADWIND A339X TRENT 7000-72 BEW/CG 127000/..... + +/// TAKEOFF DATA /// + +APT PRWY POAT PWIND PQNH PMRTW FLP MT V1 VR V2 PTOW MFPTW LIMIT +EDDH 15 0.0 077M03 30.15 2510 1 54 30 30 39 1768 1962 AFM + +RMKS FLEX - SEL TEMP 54 + BLEEDS ON + +---- ---- ------ ----- ------- --- --- --- --- --- ----------------- +RWY OAT WIND QNH MRTW FLP V1 VR V2 PWR CONFIG/CONDITION + +--------------------------- ACARS RUNWAYS -------------------------- +RWY ACARS LENGTH PMTOW NOTES +05 10663 2510 ILS 110.50 +15 10564 2510 ILS 109.55 +23 10663 2510 ILS 111.30 +33 12028 2510 + +-------------------- DRY RWY - PTOW - CALM WIND -------------------- +RWY MTOW MT CONFIG FLP V1 VR V2 LIMIT +05 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM +15 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM +23 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM +33 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM + +--------------- DRY RWY - PTOW PLUS 6000 - CALM WIND --------------- +RWY MTOW MT CONFIG FLP V1 VR V2 LIMIT +05 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM +15 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM +23 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM +33 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM + +------------- WET RWY - PTOW - CALM WIND - ENG A/I ON -------------- +RWY MTOW MT CONFIG FLP V1 VR V2 LIMIT +05 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM +15 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM +23 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM +33 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM + +-------- WET RWY - PTOW PLUS 6000 - CALM WIND - ENG A/I ON --------- +RWY MTOW MT CONFIG FLP V1 VR V2 LIMIT +05 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM +15 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM +23 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM +33 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM + +/// LANDING DATA /// + +APT PRWY POAT PWIND PQNH PMRLW FLP PLDW LIMIT +EDDF 25R M2.0 187M03 30.12 1910 FULL 1716 AFM + +RMKS NONE + +-------- ---- ------ ----- ------- --- ----- --- ------------------- +RWY OAT WIND QNH MRLW FLP VREF PWR CONFIG/CONDITION + +--------------------------- ACARS RUNWAYS -------------------------- +RWY ACARS LENGTH PMRLW NOTES +07C 13123 1910 ILS 110.55 +07L 9186 1910 ILS 110.30 +07R 13123 1910 ILS 110.95 +18 13123 1910 +25C 13123 1910 ILS 111.55 +25L 13123 1910 ILS 111.15 +25R 9186 1910 ILS 111.35 + +------------- FLAPS FULL - PACKS ON - NO ENROUTE ICING ------------- +DRY RWY / WET RWY + 07C 07L 07R 18 + OAT 13123 FT 9186 FT 13123 FT 13123 FT + -07 1910A/1910A 1910A/1910A 1910A/1910A 1910A/1910A + /-02 1910A/1910A 1910A/1910A 1910A/1910A 1910A/1910A + 03 1910A/1910A 1910A/1910A 1910A/1910A 1910A/1910A +HW/10KT 0/ 0 0/ 0 0/ 0 0/ 0 +TW/10KT 0/ 0 0/ 0 0/ 0 0/ 0 + + 25C 25L 25R + OAT 13123 FT 13123 FT 9186 FT + -07 1910A/1910A 1910A/1910A 1910A/1910A + /-02 1910A/1910A 1910A/1910A 1910A/1910A + 03 1910A/1910A 1910A/1910A 1910A/1910A +HW/10KT 0/ 0 0/ 0 0/ 0 +TW/10KT 0/ 0 0/ 0 0/ 0 + +-------- LANDING DISTANCE - FLAPS FULL - MAX MANUAL BRAKING -------- + ACTUAL FACTORED + LDW VREF DRY WET DRY WET + 1680 129 3362 4243 4471 5485 + 1710 130 3405 4298 4538 5565 +/ 1740 132 3456 4362 4612 5654 + 1770 133 3507 4426 4687 5744 + 1800 134 3558 4491 4762 5835 +HW/KT -20 -25 -23 -30 +TW/KT 62 78 91 110 + +END TAKEOFF AND LANDING REPORT VGA 1013 EDDH-EDDF 19JAN25 +`; +function defineDragScroll(ele, horizontalScroll = true, verticalScroll = true) { + let pos = { top: 0, left: 0, x: 0, y: 0 }; + const mouseDownHandler = function (e) { + pos = { + // The current scroll + left: ele.scrollLeft, + top: ele.scrollTop, + // Get the current mouse position + x: e.clientX, + y: e.clientY, + }; + document.addEventListener('mousemove', mouseMoveHandler); + document.addEventListener('mouseup', mouseUpHandler); + document.removeEventListener('mouseleave', mouseUpHandler); + }; + const mouseMoveHandler = function (e) { + // How far the mouse has been moved + const dx = e.clientX - pos.x; + const dy = e.clientY - pos.y; + // Scroll the element + if (verticalScroll) { + ele.scrollTop = pos.top - dy; + } + if (horizontalScroll) { + ele.scrollLeft = pos.left - dx; + } + }; + const mouseUpHandler = function (e) { + document.removeEventListener('mousemove', mouseMoveHandler); + document.removeEventListener('mouseup', mouseUpHandler); + document.removeEventListener('mouseleave', mouseUpHandler); + }; + ele.addEventListener('mousedown', mouseDownHandler); +} +export class TLR extends DisplayComponent { + constructor(props) { + super(props); + } + onAfterRender() { + const ele = document.getElementById('KH_FE_FPLAN'); + if (ele) + defineDragScroll(ele); + const toIns = document.getElementById('KH_FE_FPLAN_INS'); + if (toIns) + toIns.onclick = this.toIns; + const toTop = document.getElementById('KH_FE_FPLAN_TOP'); + if (toTop) + toTop.onclick = this.toTop; + } + toIns() { + SimVar.SetSimVarValue('L:KH_FE_FPLAN_BOARD', 'number', 2); + } + toTop() { + const ele = document.getElementById('KH_FE_FPLAN'); + if (ele) + ele.scrollTop = 0; + } + render() { + return (FSComponent.buildComponent(FSComponent.Fragment, null, + FSComponent.buildComponent("div", { id: "KH_FE_FPLAN" }, + FSComponent.buildComponent("div", { id: "TLR" }, + FSComponent.buildComponent("div", null, + FSComponent.buildComponent("pre", null, this.props.content)))), + FSComponent.buildComponent("div", { id: "KH_CTRL" }, + FSComponent.buildComponent("button", { id: "KH_FE_FPLAN_TOP" }, "To top"), + FSComponent.buildComponent("button", { id: "KH_FE_FPLAN_INS" }, "Switch to INS")))); + } +} +//# sourceMappingURL=tlr.js.map \ No newline at end of file diff --git a/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/components/tlr/tlr.js.map b/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/components/tlr/tlr.js.map new file mode 100644 index 0000000..2c456f6 --- /dev/null +++ b/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/components/tlr/tlr.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tlr.js","sourceRoot":"","sources":["tlr.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,gBAAgB,EAAE,WAAW,EAAuB,MAAM,qBAAqB,CAAC;AAEzG,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqGf,CAAC;AAEF,SAAS,gBAAgB,CAAC,GAAgB,EAAE,gBAAgB,GAAG,IAAI,EAAE,cAAc,GAAG,IAAI;IACxF,IAAI,GAAG,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IAC1C,MAAM,gBAAgB,GAAG,UAAU,CAAa;QAC9C,GAAG,GAAG;YACJ,qBAAqB;YACrB,IAAI,EAAE,GAAG,CAAC,UAAU;YACpB,GAAG,EAAE,GAAG,CAAC,SAAS;YAClB,iCAAiC;YACjC,CAAC,EAAE,CAAC,CAAC,OAAO;YACZ,CAAC,EAAE,CAAC,CAAC,OAAO;SACb,CAAC;QACF,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;QACzD,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;QACrD,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAC7D,CAAC,CAAC;IACF,MAAM,gBAAgB,GAAG,UAAU,CAAa;QAC9C,mCAAmC;QACnC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC;QAC7B,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC;QAC7B,qBAAqB;QACrB,IAAI,cAAc,EAAE,CAAC;YACnB,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC;QAC/B,CAAC;QACD,IAAI,gBAAgB,EAAE,CAAC;YACrB,GAAG,CAAC,UAAU,GAAG,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC;QACjC,CAAC;IACH,CAAC,CAAC;IACF,MAAM,cAAc,GAAG,UAAU,CAAa;QAC5C,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;QAC5D,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;QACxD,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAC7D,CAAC,CAAC;IACF,GAAG,CAAC,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;AACtD,CAAC;AAMD,MAAM,OAAO,GAAI,SAAQ,gBAA0B;IACjD,YAAY,KAAe;QACzB,KAAK,CAAC,KAAK,CAAC,CAAC;IACf,CAAC;IAED,aAAa;QACX,MAAM,GAAG,GAAG,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QACnD,IAAI,GAAG;YAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;QACzD,IAAI,KAAK;YAAE,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC;QACtC,MAAM,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;QACzD,IAAI,KAAK;YAAE,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC;IACxC,CAAC;IAED,KAAK;QACH,MAAM,CAAC,cAAc,CAAC,qBAAqB,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK;QACH,MAAM,GAAG,GAAG,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QACnD,IAAI,GAAG;YAAE,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;IAC7B,CAAC;IAEM,MAAM;QACX,OAAO,CACL;YACE,oCAAK,EAAE,EAAC,aAAa;gBACnB,oCAAK,EAAE,EAAC,KAAK;oBACX;wBACE,wCAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAO,CAC3B,CACF,CACF;YACN,oCAAK,EAAE,EAAC,SAAS;gBACf,uCAAQ,EAAE,EAAC,iBAAiB,aAAgB;gBAC5C,uCAAQ,EAAE,EAAC,iBAAiB,oBAAuB,CAC/C,CACL,CACJ,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { ComponentProps, DisplayComponent, FSComponent, Subscribable, VNode } from '@microsoft/msfs-sdk';\r\n\r\nconst content = `\r\nTAKEOFF AND LANDING REPORT VGA 1013 EDDH-EDDF 19JAN25\r\nTLR-1 SEQ-123304905 19JAN25 2124Z\r\nA/C D-AGHI HEADWIND A339X TRENT 7000-72 BEW/CG 127000/.....\r\n\r\n/// TAKEOFF DATA ///\r\n\r\nAPT PRWY POAT PWIND PQNH PMRTW FLP MT V1 VR V2 PTOW MFPTW LIMIT\r\nEDDH 15 0.0 077M03 30.15 2510 1 54 30 30 39 1768 1962 AFM\r\n\r\nRMKS FLEX - SEL TEMP 54\r\n BLEEDS ON\r\n\r\n---- ---- ------ ----- ------- --- --- --- --- --- -----------------\r\nRWY OAT WIND QNH MRTW FLP V1 VR V2 PWR CONFIG/CONDITION\r\n\r\n--------------------------- ACARS RUNWAYS --------------------------\r\nRWY ACARS LENGTH PMTOW NOTES\r\n05 10663 2510 ILS 110.50\r\n15 10564 2510 ILS 109.55\r\n23 10663 2510 ILS 111.30\r\n33 12028 2510\r\n\r\n-------------------- DRY RWY - PTOW - CALM WIND --------------------\r\nRWY MTOW MT CONFIG FLP V1 VR V2 LIMIT\r\n05 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM\r\n15 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM\r\n23 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM\r\n33 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM\r\n\r\n--------------- DRY RWY - PTOW PLUS 6000 - CALM WIND ---------------\r\nRWY MTOW MT CONFIG FLP V1 VR V2 LIMIT\r\n05 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM\r\n15 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM\r\n23 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM\r\n33 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM\r\n\r\n------------- WET RWY - PTOW - CALM WIND - ENG A/I ON --------------\r\nRWY MTOW MT CONFIG FLP V1 VR V2 LIMIT\r\n05 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM\r\n15 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM\r\n23 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM\r\n33 2510 54 FLEX - BLEEDS ON 1 130 130 139 AFM\r\n\r\n-------- WET RWY - PTOW PLUS 6000 - CALM WIND - ENG A/I ON ---------\r\nRWY MTOW MT CONFIG FLP V1 VR V2 LIMIT\r\n05 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM\r\n15 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM\r\n23 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM\r\n33 2510 54 FLEX - BLEEDS ON 1 133 133 140 AFM\r\n\r\n/// LANDING DATA ///\r\n\r\nAPT PRWY POAT PWIND PQNH PMRLW FLP PLDW LIMIT\r\nEDDF 25R M2.0 187M03 30.12 1910 FULL 1716 AFM\r\n\r\nRMKS NONE\r\n\r\n-------- ---- ------ ----- ------- --- ----- --- -------------------\r\nRWY OAT WIND QNH MRLW FLP VREF PWR CONFIG/CONDITION\r\n\r\n--------------------------- ACARS RUNWAYS --------------------------\r\nRWY ACARS LENGTH PMRLW NOTES\r\n07C 13123 1910 ILS 110.55\r\n07L 9186 1910 ILS 110.30\r\n07R 13123 1910 ILS 110.95\r\n18 13123 1910\r\n25C 13123 1910 ILS 111.55\r\n25L 13123 1910 ILS 111.15\r\n25R 9186 1910 ILS 111.35\r\n\r\n------------- FLAPS FULL - PACKS ON - NO ENROUTE ICING -------------\r\nDRY RWY / WET RWY\r\n 07C 07L 07R 18\r\n OAT 13123 FT 9186 FT 13123 FT 13123 FT\r\n -07 1910A/1910A 1910A/1910A 1910A/1910A 1910A/1910A\r\n /-02 1910A/1910A 1910A/1910A 1910A/1910A 1910A/1910A\r\n 03 1910A/1910A 1910A/1910A 1910A/1910A 1910A/1910A\r\nHW/10KT 0/ 0 0/ 0 0/ 0 0/ 0\r\nTW/10KT 0/ 0 0/ 0 0/ 0 0/ 0\r\n\r\n 25C 25L 25R\r\n OAT 13123 FT 13123 FT 9186 FT\r\n -07 1910A/1910A 1910A/1910A 1910A/1910A\r\n /-02 1910A/1910A 1910A/1910A 1910A/1910A\r\n 03 1910A/1910A 1910A/1910A 1910A/1910A\r\nHW/10KT 0/ 0 0/ 0 0/ 0\r\nTW/10KT 0/ 0 0/ 0 0/ 0\r\n\r\n-------- LANDING DISTANCE - FLAPS FULL - MAX MANUAL BRAKING --------\r\n ACTUAL FACTORED\r\n LDW VREF DRY WET DRY WET\r\n 1680 129 3362 4243 4471 5485\r\n 1710 130 3405 4298 4538 5565\r\n/ 1740 132 3456 4362 4612 5654\r\n 1770 133 3507 4426 4687 5744\r\n 1800 134 3558 4491 4762 5835\r\nHW/KT -20 -25 -23 -30\r\nTW/KT 62 78 91 110\r\n\r\nEND TAKEOFF AND LANDING REPORT VGA 1013 EDDH-EDDF 19JAN25\r\n`;\r\n\r\nfunction defineDragScroll(ele: HTMLElement, horizontalScroll = true, verticalScroll = true) {\r\n let pos = { top: 0, left: 0, x: 0, y: 0 };\r\n const mouseDownHandler = function (e: MouseEvent) {\r\n pos = {\r\n // The current scroll\r\n left: ele.scrollLeft,\r\n top: ele.scrollTop,\r\n // Get the current mouse position\r\n x: e.clientX,\r\n y: e.clientY,\r\n };\r\n document.addEventListener('mousemove', mouseMoveHandler);\r\n document.addEventListener('mouseup', mouseUpHandler);\r\n document.removeEventListener('mouseleave', mouseUpHandler);\r\n };\r\n const mouseMoveHandler = function (e: MouseEvent) {\r\n // How far the mouse has been moved\r\n const dx = e.clientX - pos.x;\r\n const dy = e.clientY - pos.y;\r\n // Scroll the element\r\n if (verticalScroll) {\r\n ele.scrollTop = pos.top - dy;\r\n }\r\n if (horizontalScroll) {\r\n ele.scrollLeft = pos.left - dx;\r\n }\r\n };\r\n const mouseUpHandler = function (e: MouseEvent) {\r\n document.removeEventListener('mousemove', mouseMoveHandler);\r\n document.removeEventListener('mouseup', mouseUpHandler);\r\n document.removeEventListener('mouseleave', mouseUpHandler);\r\n };\r\n ele.addEventListener('mousedown', mouseDownHandler);\r\n}\r\n\r\ninterface TLRProps extends ComponentProps {\r\n content: Subscribable;\r\n}\r\n\r\nexport class TLR extends DisplayComponent {\r\n constructor(props: TLRProps) {\r\n super(props);\r\n }\r\n\r\n onAfterRender() {\r\n const ele = document.getElementById('KH_FE_FPLAN');\r\n if (ele) defineDragScroll(ele);\r\n const toIns = document.getElementById('KH_FE_FPLAN_INS');\r\n if (toIns) toIns.onclick = this.toIns;\r\n const toTop = document.getElementById('KH_FE_FPLAN_TOP');\r\n if (toTop) toTop.onclick = this.toTop;\r\n }\r\n\r\n toIns() {\r\n SimVar.SetSimVarValue('L:KH_FE_FPLAN_BOARD', 'number', 2);\r\n }\r\n\r\n toTop() {\r\n const ele = document.getElementById('KH_FE_FPLAN');\r\n if (ele) ele.scrollTop = 0;\r\n }\r\n\r\n public render(): VNode {\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n
{this.props.content}
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n );\r\n }\r\n}\r\n"]} \ No newline at end of file diff --git a/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/index.js b/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/index.js index 101a7b2..f7b598d 100644 --- a/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/index.js +++ b/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/index.js @@ -1,14 +1,43 @@ /// -import { FSComponent } from "@microsoft/msfs-sdk"; -import { Test } from "./components/test/test"; +import './index.scss'; +import { EventBus, FSComponent, SimVarPublisher, SimVarValueType, Subject } from '@microsoft/msfs-sdk'; +import { TLR } from './components/tlr/tlr'; class KH_FE_FPLAN extends BaseInstrument { + constructor() { + super(...arguments); + this.bus = new EventBus(); + this.newDataPublisher = new SimVarPublisher(new Map([['newData', { name: 'L:KH_FE_FPLAN_NEW_DATA', type: SimVarValueType.Bool }]]), this.bus); + this.contentPLAN = Subject.create(''); + this.contentTLR = Subject.create(''); + } get templateID() { - return "KH_FE_FPLAN"; + return 'kh-fe-fplan'; + } + get isInteractive() { + return true; } connectedCallback() { super.connectedCallback(); - FSComponent.render(FSComponent.buildComponent(Test, null), document.getElementById("InstrumentContent")); + this.newDataPublisher.startPublish(); + this.bus + .getSubscriber() + .on('newData') + .handle((flag) => { + var _a, _b; + if (!flag) + return; + SimVar.SetSimVarValue('L:KH_FE_FPLAN_NEW_DATA', 'bool', 0); + this.contentPLAN.set(JSON.parse((_a = window.localStorage.getItem('KH_FE_FPLAN_PLAN')) !== null && _a !== void 0 ? _a : '')); + this.contentTLR.set(JSON.parse((_b = window.localStorage.getItem('KH_FE_FPLAN_TLR')) !== null && _b !== void 0 ? _b : '')); + }); + window.localStorage.removeItem('KH_FE_FPLAN_PLAN'); + window.localStorage.removeItem('KH_FE_FPLAN_TLR'); + FSComponent.render(FSComponent.buildComponent(TLR, { content: this.contentTLR }), document.getElementById('root')); + } + Update() { + super.Update(); + this.newDataPublisher.onUpdate(); } } -registerInstrument("KH_FE_FPLAN", KH_FE_FPLAN); +registerInstrument('kh-fe-fplan', KH_FE_FPLAN); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/index.js.map b/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/index.js.map index e44a785..437002b 100644 --- a/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/index.js.map +++ b/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/Gauge/src/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,WAAY,SAAQ,cAAc;IACtC,IAAI,UAAU;QACZ,OAAO,aAAa,CAAC;IACvB,CAAC;IAEM,iBAAiB;QACtB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAE1B,WAAW,CAAC,MAAM,CAAC,2BAAC,IAAI,OAAG,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC7E,CAAC;CACF;AAED,kBAAkB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC","sourcesContent":["/// \r\n\r\nimport { FSComponent } from \"@microsoft/msfs-sdk\";\r\nimport { Test } from \"./components/test/test\";\r\n\r\nclass KH_FE_FPLAN extends BaseInstrument {\r\n get templateID(): string {\r\n return \"KH_FE_FPLAN\";\r\n }\r\n\r\n public connectedCallback(): void {\r\n super.connectedCallback();\r\n\r\n FSComponent.render(, document.getElementById(\"InstrumentContent\"));\r\n }\r\n}\r\n\r\nregisterInstrument(\"KH_FE_FPLAN\", KH_FE_FPLAN);\r\n"]} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAM3C,MAAM,WAAY,SAAQ,cAAc;IAAxC;;QACmB,QAAG,GAAG,IAAI,QAAQ,EAAE,CAAC;QAErB,qBAAgB,GAAG,IAAI,eAAe,CACrD,IAAI,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,IAAI,EAAE,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EACtF,IAAI,CAAC,GAAG,CACT,CAAC;QAEM,gBAAW,GAAG,OAAO,CAAC,MAAM,CAAS,EAAE,CAAC,CAAC;QACzC,eAAU,GAAG,OAAO,CAAC,MAAM,CAAS,EAAE,CAAC,CAAC;IAmClD,CAAC;IAjCC,IAAI,UAAU;QACZ,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,IAAI,aAAa;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,iBAAiB;QACtB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAE1B,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;QACrC,IAAI,CAAC,GAAG;aACL,aAAa,EAAiB;aAC9B,EAAE,CAAC,SAAS,CAAC;aACb,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;;YACf,IAAI,CAAC,IAAI;gBAAE,OAAO;YAClB,MAAM,CAAC,cAAc,CAAC,wBAAwB,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;YAC3D,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAA,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,mCAAI,EAAE,CAAC,CAAC,CAAC;YACxF,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAA,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,iBAAiB,CAAC,mCAAI,EAAE,CAAC,CAAC,CAAC;QACxF,CAAC,CAAC,CAAC;QAEL,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;QACnD,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;QAElD,WAAW,CAAC,MAAM,CAAC,2BAAC,GAAG,IAAC,OAAO,EAAE,IAAI,CAAC,UAAU,GAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACzF,CAAC;IAES,MAAM;QACd,KAAK,CAAC,MAAM,EAAE,CAAC;QAEf,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC;IACnC,CAAC;CACF;AAED,kBAAkB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC","sourcesContent":["/// \r\nimport './index.scss';\r\n\r\nimport { EventBus, FSComponent, SimVarPublisher, SimVarValueType, Subject } from '@microsoft/msfs-sdk';\r\nimport { TLR } from './components/tlr/tlr';\r\n\r\nexport interface NewDataEvents {\r\n newData: boolean;\r\n}\r\n\r\nclass KH_FE_FPLAN extends BaseInstrument {\r\n private readonly bus = new EventBus();\r\n\r\n private readonly newDataPublisher = new SimVarPublisher(\r\n new Map([['newData', { name: 'L:KH_FE_FPLAN_NEW_DATA', type: SimVarValueType.Bool }]]),\r\n this.bus\r\n );\r\n\r\n private contentPLAN = Subject.create('');\r\n private contentTLR = Subject.create('');\r\n\r\n get templateID(): string {\r\n return 'kh-fe-fplan';\r\n }\r\n\r\n get isInteractive() {\r\n return true;\r\n }\r\n\r\n public connectedCallback(): void {\r\n super.connectedCallback();\r\n\r\n this.newDataPublisher.startPublish();\r\n this.bus\r\n .getSubscriber()\r\n .on('newData')\r\n .handle((flag) => {\r\n if (!flag) return;\r\n SimVar.SetSimVarValue('L:KH_FE_FPLAN_NEW_DATA', 'bool', 0);\r\n this.contentPLAN.set(JSON.parse(window.localStorage.getItem('KH_FE_FPLAN_PLAN') ?? ''));\r\n this.contentTLR.set(JSON.parse(window.localStorage.getItem('KH_FE_FPLAN_TLR') ?? ''));\r\n });\r\n\r\n window.localStorage.removeItem('KH_FE_FPLAN_PLAN');\r\n window.localStorage.removeItem('KH_FE_FPLAN_TLR');\r\n\r\n FSComponent.render(, document.getElementById('root'));\r\n }\r\n\r\n protected Update(): void {\r\n super.Update();\r\n\r\n this.newDataPublisher.onUpdate();\r\n }\r\n}\r\n\r\nregisterInstrument('kh-fe-fplan', KH_FE_FPLAN);\r\n"]} \ No newline at end of file diff --git a/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/tsconfig.tsbuildinfo b/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/tsconfig.tsbuildinfo index b158244..3a368cb 100644 --- a/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/tsconfig.tsbuildinfo +++ b/.rollup.cache/C/Users/llego/Documents/MyFSProjects/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan/tsconfig.tsbuildinfo @@ -1 +1 @@ -{"fileNames":["./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.scripthost.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.full.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/core/vcockpit.d.ts","./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/instruments/shared/utils/xmllogic.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/instruments/shared/baseinstrument.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/netbingmap.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/types.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/simplane.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/simvar.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/common.d.ts","./node_modules/.pnpm/@microsoft+msfs-sdk@2.0.5/node_modules/@microsoft/msfs-sdk/msfssdk.d.ts","./gauge/src/components/test/test.tsx","./gauge/src/index.tsx"],"fileIdsList":[[31,39],[30,31,39,40],[32,33,34,35,36,37,38]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"1d242d5c24cf285c88bc4fb93c5ff903de8319064e282986edeb6247ba028d5e","impliedFormat":1},{"version":"d0e443178a1a636f76e429d9670724bf4eae48e32fdfb059de61532b40b5c530","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"96ee5faa7c6e27d7bee0f486995ac26a8f516f34332253d9e456a20cd3e4d3fd","affectsGlobalScope":true,"impliedFormat":1},{"version":"637721ee6467debad655d422789d062df43031f074117002e9ca48ab6afa7e13","affectsGlobalScope":true,"impliedFormat":1},{"version":"5ebf697e60f23921bd3dbda30676248797f798c1707fb3d394ea845a84b66b70","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d52748a319f8d8a199c9b8a4ce489295c6bf14392db33a8dc787b87796d9088","affectsGlobalScope":true,"impliedFormat":1},{"version":"dfce6257bbf8a8418ba2d72bb052ddd136dbf7627be5055aa2c55da380d5f8f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8103f3f5b87808999d1b36f9b96cad985b89f2cf810859dc938db802f07ead6","affectsGlobalScope":true,"impliedFormat":1},{"version":"f2d2f777efc77c8da9a39734b33436d5db626bff5ff64a5e181742ff426901bf","affectsGlobalScope":true,"impliedFormat":1},{"version":"ad544ca26f68efb41d527bbbe10a85bc395a02ea56fa365b4d9e9d04e479913c","impliedFormat":1},"a2cb432cf73145c6759d847563970e6435d993616f7f8a384b27faeb22f6940e","0da2911b3be78419595c7daac50a0456a896444d16decf40c87693b493049027"],"root":[40,41],"options":{"emitDeclarationOnly":false,"esModuleInterop":true,"importHelpers":true,"inlineSources":true,"jsx":2,"module":5,"noEmitHelpers":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":4},"referencedMap":[[40,1],[41,2],[39,3]],"version":"5.7.3"} \ No newline at end of file +{"fileNames":["./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.scripthost.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.full.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/core/vcockpit.d.ts","./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/instruments/shared/utils/xmllogic.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/instruments/shared/baseinstrument.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/netbingmap.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/types.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/simplane.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/simvar.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/common.d.ts","./node_modules/.pnpm/@microsoft+msfs-sdk@2.0.5/node_modules/@microsoft/msfs-sdk/msfssdk.d.ts","./gauge/src/components/tlr/tlr.tsx","./gauge/src/index.tsx"],"fileIdsList":[[31,39],[30,31,39,40],[32,33,34,35,36,37,38]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"1d242d5c24cf285c88bc4fb93c5ff903de8319064e282986edeb6247ba028d5e","impliedFormat":1},{"version":"d0e443178a1a636f76e429d9670724bf4eae48e32fdfb059de61532b40b5c530","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"96ee5faa7c6e27d7bee0f486995ac26a8f516f34332253d9e456a20cd3e4d3fd","affectsGlobalScope":true,"impliedFormat":1},{"version":"637721ee6467debad655d422789d062df43031f074117002e9ca48ab6afa7e13","affectsGlobalScope":true,"impliedFormat":1},{"version":"5ebf697e60f23921bd3dbda30676248797f798c1707fb3d394ea845a84b66b70","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d52748a319f8d8a199c9b8a4ce489295c6bf14392db33a8dc787b87796d9088","affectsGlobalScope":true,"impliedFormat":1},{"version":"dfce6257bbf8a8418ba2d72bb052ddd136dbf7627be5055aa2c55da380d5f8f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8103f3f5b87808999d1b36f9b96cad985b89f2cf810859dc938db802f07ead6","affectsGlobalScope":true,"impliedFormat":1},{"version":"f2d2f777efc77c8da9a39734b33436d5db626bff5ff64a5e181742ff426901bf","affectsGlobalScope":true,"impliedFormat":1},{"version":"ad544ca26f68efb41d527bbbe10a85bc395a02ea56fa365b4d9e9d04e479913c","impliedFormat":1},{"version":"bf6973ac2481cf8057a2cf75054ec6fe29b8215244b7e8ba5988937ef1b9e8bc","signature":"22e21670d50db6ce855ddfdb7d603f944cb60792127ca6f47cf806fe2a6125b3"},{"version":"aa4fed620b2781079d35dd3c3d0b2a8f747b7ad343ce24ef37a4648098596817","signature":"4ce626f9e6aab33e7d4defe5b3d628b5e86a5cc98b31f4552551adf203803f7e"}],"root":[40,41],"options":{"emitDeclarationOnly":false,"esModuleInterop":true,"importHelpers":true,"inlineSources":true,"jsx":2,"module":5,"noEmitHelpers":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":4},"referencedMap":[[40,1],[41,2],[39,3]],"version":"5.7.3"} \ No newline at end of file diff --git a/Blender/FSS-FLPAN.blend b/Blender/FSS-FLPAN.blend index 5d77dfd..6f68282 100644 Binary files a/Blender/FSS-FLPAN.blend and b/Blender/FSS-FLPAN.blend differ diff --git a/Blender/FSS-FLPAN.blend1 b/Blender/FSS-FLPAN.blend1 index 917962a..5ed32ff 100644 Binary files a/Blender/FSS-FLPAN.blend1 and b/Blender/FSS-FLPAN.blend1 differ diff --git a/Gauge/src/Consolas.ttf b/Gauge/src/Consolas.ttf new file mode 100644 index 0000000..bb988e8 Binary files /dev/null and b/Gauge/src/Consolas.ttf differ diff --git a/Gauge/src/components/test/test.tsx b/Gauge/src/components/test/test.tsx deleted file mode 100644 index 5660ea2..0000000 --- a/Gauge/src/components/test/test.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import { FSComponent, DisplayComponent, VNode } from "@microsoft/msfs-sdk"; - -export class Test extends DisplayComponent { - public render(): VNode { - return
Hello World!
; - } -} diff --git a/Gauge/src/components/tlr/tlr.tsx b/Gauge/src/components/tlr/tlr.tsx new file mode 100644 index 0000000..4ca5b13 --- /dev/null +++ b/Gauge/src/components/tlr/tlr.tsx @@ -0,0 +1,82 @@ +import { ComponentProps, DisplayComponent, FSComponent, Subscribable, VNode } from '@microsoft/msfs-sdk'; + +function defineDragScroll(ele: HTMLElement, horizontalScroll = true, verticalScroll = true) { + let pos = { top: 0, left: 0, x: 0, y: 0 }; + const mouseDownHandler = function (e: MouseEvent) { + pos = { + // The current scroll + left: ele.scrollLeft, + top: ele.scrollTop, + // Get the current mouse position + x: e.clientX, + y: e.clientY, + }; + document.addEventListener('mousemove', mouseMoveHandler); + document.addEventListener('mouseup', mouseUpHandler); + document.removeEventListener('mouseleave', mouseUpHandler); + }; + const mouseMoveHandler = function (e: MouseEvent) { + // How far the mouse has been moved + const dx = e.clientX - pos.x; + const dy = e.clientY - pos.y; + // Scroll the element + if (verticalScroll) { + ele.scrollTop = pos.top - dy; + } + if (horizontalScroll) { + ele.scrollLeft = pos.left - dx; + } + }; + const mouseUpHandler = function (e: MouseEvent) { + document.removeEventListener('mousemove', mouseMoveHandler); + document.removeEventListener('mouseup', mouseUpHandler); + document.removeEventListener('mouseleave', mouseUpHandler); + }; + ele.addEventListener('mousedown', mouseDownHandler); +} + +interface TLRProps extends ComponentProps { + content: Subscribable; +} + +export class TLR extends DisplayComponent { + constructor(props: TLRProps) { + super(props); + } + + onAfterRender() { + const ele = document.getElementById('KH_FE_FPLAN'); + if (ele) defineDragScroll(ele); + const toIns = document.getElementById('KH_FE_FPLAN_INS'); + if (toIns) toIns.onclick = this.toIns; + const toTop = document.getElementById('KH_FE_FPLAN_TOP'); + if (toTop) toTop.onclick = this.toTop; + } + + toIns() { + SimVar.SetSimVarValue('L:KH_FE_FPLAN_BOARD', 'number', 2); + } + + toTop() { + const ele = document.getElementById('KH_FE_FPLAN'); + if (ele) ele.scrollTop = 0; + } + + public render(): VNode { + return ( + <> +
+
+
+
{this.props.content}
+
+
+
+
+ + +
+ + ); + } +} diff --git a/Gauge/src/index.html b/Gauge/src/index.html index 021faa7..1a56207 100644 --- a/Gauge/src/index.html +++ b/Gauge/src/index.html @@ -1,5 +1,5 @@ - diff --git a/Gauge/src/index.scss b/Gauge/src/index.scss new file mode 100644 index 0000000..4c35e95 --- /dev/null +++ b/Gauge/src/index.scss @@ -0,0 +1,71 @@ +@font-face { + font-family: 'Consolas'; + src: url('./Consolas.ttf') format('truetype'); + font-weight: 100; + font-style: normal; +} + +::-webkit-scrollbar { + width: 10px; +} + +/* Track */ +::-webkit-scrollbar-track { + background: lightgray; +} + +/* Handle */ +::-webkit-scrollbar-thumb { + background: gray; + height: 200px; +} + +/* Handle on hover */ +::-webkit-scrollbar-thumb:hover { + background: darkgray; +} + +#root { + --buttonHoverColor: lightgray; + --fss-select-hover: lightgray; + /* No idea why, zero. I looked at the EFB.css and it has 100%, but doing so screws this over hard */ + width: 594px; + height: 100%; + background-image: url(../EFB/Images/bg.png); + background-size: 100% 100%; + color: #000; + font-size: 25px; + padding: 3vw; + + #KH_CTRL { + height: 80px; + background: red; + display: flex; + justify-content: space-around; + } + + #KH_FE_FPLAN { + #TLR div { + line-height: unset !important; + font-size: unset !important; + } + + #TLR pre { + white-space: pre; + line-height: 14px; + font-size: 13px; + font-family: 'Consolas' !important; + } + + #TLR img { + width: calc(100vw - 6vw); + } + + height: calc(100vh - 6vw - 170px); + width: 100%; + margin-top: 90px; + margin-bottom: 3vw; + overflow-y: scroll; + overflow-x: hidden; + } +} diff --git a/Gauge/src/index.tsx b/Gauge/src/index.tsx index b1e2013..c4349e4 100644 --- a/Gauge/src/index.tsx +++ b/Gauge/src/index.tsx @@ -1,18 +1,57 @@ /// +import './index.scss'; -import { FSComponent } from "@microsoft/msfs-sdk"; -import { Test } from "./components/test/test"; +import { EventBus, FSComponent, SimVarPublisher, SimVarValueType, Subject } from '@microsoft/msfs-sdk'; +import { TLR } from './components/tlr/tlr'; + +export interface NewDataEvents { + newData: boolean; +} class KH_FE_FPLAN extends BaseInstrument { + private readonly bus = new EventBus(); + + private readonly newDataPublisher = new SimVarPublisher( + new Map([['newData', { name: 'L:KH_FE_FPLAN_NEW_DATA', type: SimVarValueType.Bool }]]), + this.bus + ); + + private contentPLAN = Subject.create(''); + private contentTLR = Subject.create(''); + get templateID(): string { - return "KH_FE_FPLAN"; + return 'kh-fe-fplan'; + } + + get isInteractive() { + return true; } public connectedCallback(): void { super.connectedCallback(); - FSComponent.render(, document.getElementById("InstrumentContent")); + this.newDataPublisher.startPublish(); + this.bus + .getSubscriber() + .on('newData') + .handle((flag) => { + if (!flag) return; + SimVar.SetSimVarValue('L:KH_FE_FPLAN_NEW_DATA', 'bool', 0); + this.contentPLAN.set(JSON.parse(window.localStorage.getItem('KH_FE_FPLAN_PLAN') ?? '')); + this.contentTLR.set(JSON.parse(window.localStorage.getItem('KH_FE_FPLAN_TLR') ?? '')); + }); + + window.localStorage.removeItem('KH_FE_FPLAN_PLAN'); + window.localStorage.removeItem('KH_FE_FPLAN_TLR'); + + FSComponent.render(, document.getElementById('root')); + } + + protected Update(): void { + super.Update(); + + this.newDataPublisher.onUpdate(); } } -registerInstrument("KH_FE_FPLAN", KH_FE_FPLAN); +registerInstrument('kh-fe-fplan', KH_FE_FPLAN); diff --git a/PackageSources/SimObjects/Airplanes/FSS_Boeing_727_200F/model/B727_interior.xml b/PackageSources/SimObjects/Airplanes/FSS_Boeing_727_200F/model/B727_interior.xml index 8bc584b..c8e95a5 100644 --- a/PackageSources/SimObjects/Airplanes/FSS_Boeing_727_200F/model/B727_interior.xml +++ b/PackageSources/SimObjects/Airplanes/FSS_Boeing_727_200F/model/B727_interior.xml @@ -496,7 +496,6 @@ - @@ -518,7 +517,7 @@ (L:KH_FE_FPLAN_BOARD) 30 * - + KH_FE_FPLAN 30 @@ -526,11 +525,6 @@ (L:KH_FE_FPLAN_P1) 30 * - - - (L:KH_FE_FPLAN_P1) 0 == - - diff --git a/PackageSources/SimObjects/Misc/fss-aircraft-boeing-727-200f-sb-fplan/model/sb-fplan.bin b/PackageSources/SimObjects/Misc/fss-aircraft-boeing-727-200f-sb-fplan/model/sb-fplan.bin index 661c317..59fcf1f 100644 Binary files a/PackageSources/SimObjects/Misc/fss-aircraft-boeing-727-200f-sb-fplan/model/sb-fplan.bin and b/PackageSources/SimObjects/Misc/fss-aircraft-boeing-727-200f-sb-fplan/model/sb-fplan.bin differ diff --git a/PackageSources/SimObjects/Misc/fss-aircraft-boeing-727-200f-sb-fplan/model/sb-fplan.gltf b/PackageSources/SimObjects/Misc/fss-aircraft-boeing-727-200f-sb-fplan/model/sb-fplan.gltf index 7ea0473..a155800 100644 --- a/PackageSources/SimObjects/Misc/fss-aircraft-boeing-727-200f-sb-fplan/model/sb-fplan.gltf +++ b/PackageSources/SimObjects/Misc/fss-aircraft-boeing-727-200f-sb-fplan/model/sb-fplan.gltf @@ -12,14 +12,15 @@ "ASOBO_normal_map_convention", "ASOBO_unique_id", "ASOBO_material_invisible", - "ASOBO_material_shadow_options" + "ASOBO_material_shadow_options", + "ASOBO_tags" ], "scene": 0, "scenes": [ { "name": "Scene", "nodes": [ - 2 + 31 ] } ], @@ -46,7 +47,7 @@ "translation": [ 0.0007727742195129395, 0.12721025943756104, - 0.0034127086400985718 + 0.0047774538397789 ] }, { @@ -63,17 +64,587 @@ 0.0016529858112335205 ] }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_9" + } + }, + "mesh": 2, + "name": "KH_FE_FPLAN_P1_9", + "rotation": [ + 0.7071067690849304, + 2.081224749424281e-15, + -2.5121479332521068e-14, + 0.7071067690849304 + ], + "translation": [ + -1.9967102105056256e-07, + 0.0329994261264801, + -6.639704679400893e-07 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_B_9" + } + }, + "mesh": 3, + "name": "KH_FE_FPLAN_P1_B_9", + "rotation": [ + 5.3385093679025886e-08, + -0.7071067690849304, + 0.7071067690849304, + 5.3385093679025886e-08 + ], + "translation": [ + -1.9967102105056256e-07, + 0.0329994261264801, + -6.639704679400893e-07 + ] + }, + { + "children": [ + 2, + 3 + ], + "extensions": { + "ASOBO_unique_id": { + "id": "KH_BONE008" + } + }, + "name": "KH_BONE008", + "rotation": [ + 2.890080213546753e-05, + 0, + 1.1254996934439987e-11, + 1 + ], + "translation": [ + -8.051988231727591e-08, + 0.03300037980079651, + -1.1184558843524428e-06 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_8" + } + }, + "mesh": 4, + "name": "KH_FE_FPLAN_P1_8", + "rotation": [ + 0.7071067690849304, + -2.5121478909004595e-15, + -2.5121478909004595e-15, + 0.7071067690849304 + ], + "translation": [ + -1.4012360338711005e-07, + 0.03300014138221741, + -3.063057420149562e-06 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_B_8" + } + }, + "mesh": 5, + "name": "KH_FE_FPLAN_P1_B_8", + "rotation": [ + 5.338508657359853e-08, + -0.7071067690849304, + 0.7071067690849304, + 5.338507236274381e-08 + ], + "translation": [ + -1.4012360338711005e-07, + 0.03300014138221741, + -3.063057420149562e-06 + ] + }, + { + "children": [ + 4, + 5, + 6 + ], + "extensions": { + "ASOBO_unique_id": { + "id": "KH_BONE007" + } + }, + "name": "KH_BONE007", + "translation": [ + -8.051955546761747e-08, + 0.03299993276596069, + -6.416187261493178e-07 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_7" + } + }, + "mesh": 6, + "name": "KH_FE_FPLAN_P1_7", + "rotation": [ + 0.7071067690849304, + -2.5121478909004595e-15, + -2.5121478909004595e-15, + 0.7071067690849304 + ], + "translation": [ + -1.401242002430081e-07, + 0.032999902963638306, + -6.34168145552394e-07 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_B_7" + } + }, + "mesh": 7, + "name": "KH_FE_FPLAN_P1_B_7", + "rotation": [ + 5.338508657359853e-08, + -0.7071067690849304, + 0.7071067690849304, + 5.338507236274381e-08 + ], + "translation": [ + -1.401242002430081e-07, + 0.032999902963638306, + -6.34168145552394e-07 + ] + }, + { + "children": [ + 7, + 8, + 9 + ], + "extensions": { + "ASOBO_unique_id": { + "id": "KH_BONE006" + } + }, + "name": "KH_BONE006", + "translation": [ + -8.052012390180607e-08, + 0.03299969434738159, + 1.7127647424786119e-06 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_6" + } + }, + "mesh": 8, + "name": "KH_FE_FPLAN_P1_6", + "rotation": [ + 0.7071067690849304, + -2.5121478909004595e-15, + -2.5121478909004595e-15, + 0.7071067690849304 + ], + "translation": [ + -1.9972944187429675e-07, + 0.032999277114868164, + 1.7723693872540025e-06 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_B_6" + } + }, + "mesh": 9, + "name": "KH_FE_FPLAN_P1_B_6", + "rotation": [ + 5.338508657359853e-08, + -0.7071067690849304, + 0.7071067690849304, + 5.338507236274381e-08 + ], + "translation": [ + -1.4012479709890613e-07, + 0.032999277114868164, + 1.7723693872540025e-06 + ] + }, + { + "children": [ + 10, + 11, + 12 + ], + "extensions": { + "ASOBO_unique_id": { + "id": "KH_BONE005" + } + }, + "name": "KH_BONE005", + "translation": [ + -8.051976863043819e-08, + 0.03299999237060547, + -3.6069498037250014e-06 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_5" + } + }, + "mesh": 10, + "name": "KH_FE_FPLAN_P1_5", + "rotation": [ + 0.7071067690849304, + -2.5121478909004595e-15, + -2.5121478909004595e-15, + 0.7071067690849304 + ], + "translation": [ + -1.9972812026480824e-07, + 0.03299999237060547, + -5.588804469880415e-06 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_B_5" + } + }, + "mesh": 11, + "name": "KH_FE_FPLAN_P1_B_5", + "rotation": [ + 5.338508657359853e-08, + -0.7071067690849304, + 0.7071067690849304, + 5.338507236274381e-08 + ], + "translation": [ + -1.4012347548941761e-07, + 0.03299999237060547, + -5.588804015133064e-06 + ] + }, + { + "children": [ + 13, + 14, + 15 + ], + "extensions": { + "ASOBO_unique_id": { + "id": "KH_BONE004" + } + }, + "name": "KH_BONE004", + "translation": [ + -8.051988231727591e-08, + 0.03300023078918457, + 6.473317171185045e-07 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_4" + } + }, + "mesh": 12, + "name": "KH_FE_FPLAN_P1_4", + "rotation": [ + 0.7071067690849304, + -2.5121478909004595e-15, + -2.5121478909004595e-15, + 0.7071067690849304 + ], + "translation": [ + -1.9972915765720245e-07, + 0.033000290393829346, + 6.324305559246568e-07 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_B_4" + } + }, + "mesh": 13, + "name": "KH_FE_FPLAN_P1_B_4", + "rotation": [ + 5.338508657359853e-08, + -0.7071067690849304, + 0.7071067690849304, + 5.338507236274381e-08 + ], + "translation": [ + -1.4012451288181182e-07, + 0.033000290393829346, + 6.324305559246568e-07 + ] + }, + { + "children": [ + 16, + 17, + 18 + ], + "extensions": { + "ASOBO_unique_id": { + "id": "KH_BONE003" + } + }, + "name": "KH_BONE003", + "translation": [ + -8.051954125676275e-08, + 0.03299975395202637, + -8.204326604754897e-07 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_3" + } + }, + "mesh": 14, + "name": "KH_FE_FPLAN_P1_3", + "rotation": [ + 0.7071067690849304, + -2.5121478909004595e-15, + -2.5121478909004595e-15, + 0.7071067690849304 + ], + "translation": [ + -1.99728830807544e-07, + 0.03299969434738159, + -8.05531499281642e-07 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_B_3" + } + }, + "mesh": 15, + "name": "KH_FE_FPLAN_P1_B_3", + "rotation": [ + 5.338508657359853e-08, + -0.7071067690849304, + 0.7071067690849304, + 5.338507236274381e-08 + ], + "translation": [ + -1.4012418603215337e-07, + 0.03299969434738159, + -8.05531499281642e-07 + ] + }, + { + "children": [ + 19, + 20, + 21 + ], + "extensions": { + "ASOBO_unique_id": { + "id": "KH_BONE002" + } + }, + "name": "KH_BONE002", + "translation": [ + -8.052010969095136e-08, + 0.033000290393829346, + -3.808483768352744e-07 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_2" + } + }, + "mesh": 16, + "name": "KH_FE_FPLAN_P1_2", + "rotation": [ + 0.7071067690849304, + -2.5121478909004595e-15, + -2.5121478909004595e-15, + 0.7071067690849304 + ], + "translation": [ + -1.997284613253214e-07, + 0.03300034999847412, + -2.3403511022479506e-06 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_B_2" + } + }, + "mesh": 17, + "name": "KH_FE_FPLAN_P1_B_2", + "rotation": [ + 5.338508657359853e-08, + -0.7071067690849304, + 0.7071067690849304, + 5.338507236274381e-08 + ], + "translation": [ + -1.4012381654993078e-07, + 0.03300034999847412, + -2.3403511022479506e-06 + ] + }, + { + "children": [ + 22, + 23, + 24 + ], + "extensions": { + "ASOBO_unique_id": { + "id": "KH_BONE001" + } + }, + "name": "KH_BONE001", + "translation": [ + -8.051976152501084e-08, + 0.033000051975250244, + 1.966084482774022e-06 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_1" + } + }, + "mesh": 18, + "name": "KH_FE_FPLAN_P1_1", + "rotation": [ + 0.7071067690849304, + -2.5121478909004595e-15, + -2.5121478909004595e-15, + 0.7071067690849304 + ], + "translation": [ + -1.9972998188677593e-07, + 0.033000051975250244, + 3.910685791197466e-06 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "KH_FE_FPLAN_P1_B_1" + } + }, + "mesh": 19, + "name": "KH_FE_FPLAN_P1_B_1", + "rotation": [ + 5.338508657359853e-08, + -0.7071067690849304, + 0.7071067690849304, + 5.338507236274381e-08 + ], + "translation": [ + -1.401253371113853e-07, + 0.03299999237060547, + 3.9181368265417404e-06 + ] + }, + { + "children": [ + 25, + 26, + 27 + ], + "extensions": { + "ASOBO_unique_id": { + "id": "KH_BONE" + } + }, + "name": "KH_BONE", + "rotation": [ + 1.9470719792025193e-07, + 0, + -1, + 0 + ], + "translation": [ + 0.8823389410972595, + -2.2633979320526123, + 18.878217697143555 + ] + }, + { + "extensions": { + "ASOBO_unique_id": { + "id": "TARGET" + } + }, + "name": "TARGET", + "rotation": [ + 1.9470719792025193e-07, + 0, + -1, + 0 + ], + "translation": [ + 0.8823389410972595, + -2.5603978633880615, + 18.878217697143555 + ] + }, + { + "children": [ + 28, + 29 + ], + "extensions": { + "ASOBO_unique_id": { + "id": "KH_RIG" + } + }, + "name": "KH_RIG", + "translation": [ + -0.8823389410972595, + 2.401921033859253, + -18.876070022583008 + ] + }, { "children": [ 0, - 1 + 1, + 30 ], "extensions": { "ASOBO_unique_id": { "id": "KH_FE_FPLAN_BOARD" } }, - "mesh": 2, + "mesh": 20, "name": "KH_FE_FPLAN_BOARD", "rotation": [ -0.07845910638570786, @@ -94,14 +665,14 @@ { "sampler": 0, "target": { - "node": 2, + "node": 31, "path": "translation" } }, { "sampler": 1, "target": { - "node": 2, + "node": 31, "path": "rotation" } } @@ -109,21 +680,147 @@ "name": "KH_FE_FPLAN_BOARD", "samplers": [ { - "input": 12, + "input": 70, "interpolation": "LINEAR", - "output": 13 + "output": 71 }, { - "input": 12, + "input": 70, "interpolation": "LINEAR", - "output": 14 + "output": 72 + } + ] + }, + { + "channels": [ + { + "sampler": 0, + "target": { + "node": 25, + "path": "rotation" + } + }, + { + "sampler": 1, + "target": { + "node": 22, + "path": "rotation" + } + }, + { + "sampler": 2, + "target": { + "node": 19, + "path": "rotation" + } + }, + { + "sampler": 3, + "target": { + "node": 16, + "path": "rotation" + } + }, + { + "sampler": 4, + "target": { + "node": 13, + "path": "rotation" + } + }, + { + "sampler": 5, + "target": { + "node": 10, + "path": "rotation" + } + }, + { + "sampler": 6, + "target": { + "node": 7, + "path": "rotation" + } + }, + { + "sampler": 7, + "target": { + "node": 4, + "path": "rotation" + } + }, + { + "sampler": 8, + "target": { + "node": 29, + "path": "translation" + } + }, + { + "sampler": 9, + "target": { + "node": 29, + "path": "rotation" + } + } + ], + "name": "KH_FE_FPLAN", + "samplers": [ + { + "input": 73, + "interpolation": "LINEAR", + "output": 74 + }, + { + "input": 73, + "interpolation": "LINEAR", + "output": 75 + }, + { + "input": 73, + "interpolation": "LINEAR", + "output": 76 + }, + { + "input": 73, + "interpolation": "LINEAR", + "output": 77 + }, + { + "input": 73, + "interpolation": "LINEAR", + "output": 78 + }, + { + "input": 73, + "interpolation": "LINEAR", + "output": 79 + }, + { + "input": 73, + "interpolation": "LINEAR", + "output": 80 + }, + { + "input": 73, + "interpolation": "LINEAR", + "output": 81 + }, + { + "input": 73, + "interpolation": "LINEAR", + "output": 82 + }, + { + "input": 73, + "interpolation": "LINEAR", + "output": 83 } ] } ], "materials": [ { - "alphaMode": "BLEND", "doubleSided": true, "emissiveFactor": [ 0, @@ -157,6 +854,13 @@ 0, 0 ], + "extensions": { + "ASOBO_tags": { + "tags": [ + "Collision" + ] + } + }, "extras": {}, "name": "$KH_FE_FPLAN_P2", "pbrMetallicRoughness": { @@ -171,21 +875,39 @@ } }, { - "alphaMode": "BLEND", "emissiveFactor": [ 0, 0, 0 ], - "emissiveTexture": { - "index": 0 - }, "extras": {}, - "name": "FSS_B727_Pilot_Panelx", + "name": "$KH_FE_FPLAN_P1", + "pbrMetallicRoughness": { + "baseColorFactor": [ + 1, + 1, + 1, + 1 + ], + "metallicFactor": 1, + "roughnessFactor": 1 + } + }, + { + "emissiveFactor": [ + 0, + 0, + 0 + ], + "extras": {}, + "name": "KH_FE_FPLAN_P1_BACK", "normalTexture": { - "index": 1, + "index": 0, "scale": 1 }, + "occlusionTexture": { + "index": 1 + }, "pbrMetallicRoughness": { "baseColorFactor": [ 1, @@ -197,6 +919,44 @@ "index": 2 }, "metallicFactor": 1, + "metallicRoughnessTexture": { + "index": 1 + }, + "roughnessFactor": 1 + } + }, + { + "emissiveFactor": [ + 0, + 0, + 0 + ], + "emissiveTexture": { + "index": 3 + }, + "extras": {}, + "name": "FSS_B727_Pilot_Panelx", + "normalTexture": { + "index": 4, + "scale": 1 + }, + "occlusionTexture": { + "index": 5 + }, + "pbrMetallicRoughness": { + "baseColorFactor": [ + 1, + 1, + 1, + 1 + ], + "baseColorTexture": { + "index": 6 + }, + "metallicFactor": 1, + "metallicRoughnessTexture": { + "index": 5 + }, "roughnessFactor": 1 } } @@ -231,7 +991,7 @@ ] }, { - "name": "KH_FE_FPLAN_BOARD", + "name": "KH_FE_FPLAN_P1_9", "primitives": [ { "attributes": { @@ -243,6 +1003,258 @@ "material": 2 } ] + }, + { + "name": "KH_FE_FPLAN_P1_B_9", + "primitives": [ + { + "attributes": { + "POSITION": 12, + "NORMAL": 13, + "TEXCOORD_0": 14 + }, + "indices": 11, + "material": 3 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_8", + "primitives": [ + { + "attributes": { + "POSITION": 15, + "NORMAL": 16, + "TEXCOORD_0": 17 + }, + "indices": 18, + "material": 2 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_B_8", + "primitives": [ + { + "attributes": { + "POSITION": 19, + "NORMAL": 20, + "TEXCOORD_0": 21 + }, + "indices": 18, + "material": 3 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_7", + "primitives": [ + { + "attributes": { + "POSITION": 22, + "NORMAL": 23, + "TEXCOORD_0": 24 + }, + "indices": 25, + "material": 2 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_B_7", + "primitives": [ + { + "attributes": { + "POSITION": 26, + "NORMAL": 27, + "TEXCOORD_0": 28 + }, + "indices": 25, + "material": 3 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_6", + "primitives": [ + { + "attributes": { + "POSITION": 29, + "NORMAL": 30, + "TEXCOORD_0": 31 + }, + "indices": 25, + "material": 2 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_B_6", + "primitives": [ + { + "attributes": { + "POSITION": 32, + "NORMAL": 33, + "TEXCOORD_0": 34 + }, + "indices": 25, + "material": 3 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_5", + "primitives": [ + { + "attributes": { + "POSITION": 35, + "NORMAL": 36, + "TEXCOORD_0": 37 + }, + "indices": 25, + "material": 2 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_B_5", + "primitives": [ + { + "attributes": { + "POSITION": 38, + "NORMAL": 39, + "TEXCOORD_0": 40 + }, + "indices": 25, + "material": 3 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_4", + "primitives": [ + { + "attributes": { + "POSITION": 41, + "NORMAL": 42, + "TEXCOORD_0": 43 + }, + "indices": 25, + "material": 2 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_B_4", + "primitives": [ + { + "attributes": { + "POSITION": 44, + "NORMAL": 45, + "TEXCOORD_0": 46 + }, + "indices": 25, + "material": 3 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_3", + "primitives": [ + { + "attributes": { + "POSITION": 47, + "NORMAL": 48, + "TEXCOORD_0": 49 + }, + "indices": 25, + "material": 2 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_B_3", + "primitives": [ + { + "attributes": { + "POSITION": 50, + "NORMAL": 51, + "TEXCOORD_0": 52 + }, + "indices": 25, + "material": 3 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_2", + "primitives": [ + { + "attributes": { + "POSITION": 53, + "NORMAL": 54, + "TEXCOORD_0": 55 + }, + "indices": 25, + "material": 2 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_B_2", + "primitives": [ + { + "attributes": { + "POSITION": 56, + "NORMAL": 57, + "TEXCOORD_0": 58 + }, + "indices": 25, + "material": 3 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_1", + "primitives": [ + { + "attributes": { + "POSITION": 59, + "NORMAL": 60, + "TEXCOORD_0": 61 + }, + "indices": 62, + "material": 2 + } + ] + }, + { + "name": "KH_FE_FPLAN_P1_B_1", + "primitives": [ + { + "attributes": { + "POSITION": 63, + "NORMAL": 64, + "TEXCOORD_0": 65 + }, + "indices": 62, + "material": 3 + } + ] + }, + { + "name": "KH_FE_FPLAN_BOARD", + "primitives": [ + { + "attributes": { + "POSITION": 66, + "NORMAL": 67, + "TEXCOORD_0": 68 + }, + "indices": 69, + "material": 4 + } + ] } ], "textures": [ @@ -257,9 +1269,40 @@ { "sampler": 0, "source": 2 + }, + { + "sampler": 0, + "source": 3 + }, + { + "sampler": 0, + "source": 4 + }, + { + "sampler": 0, + "source": 5 + }, + { + "sampler": 0, + "source": 6 } ], "images": [ + { + "mimeType": "image/png", + "name": "FSS_727_GENERAL_NORM.PNG", + "uri": "FSS_727_GENERAL_NORM.PNG" + }, + { + "mimeType": "image/png", + "name": "FSS_727_GENERAL_COMP.PNG", + "uri": "FSS_727_GENERAL_COMP.PNG" + }, + { + "mimeType": "image/png", + "name": "FSS_727_COCKPIT_DECAL_ALBD.PNG", + "uri": "FSS_727_COCKPIT_DECAL_ALBD.PNG" + }, { "mimeType": "image/png", "name": "FSS_B727_PILOT_PANEL_EMIS.PNG", @@ -270,12 +1313,35 @@ "name": "FSS_B727_PILOT_PANEL_NORM.PNG", "uri": "FSS_B727_PILOT_PANEL_NORM.PNG" }, + { + "mimeType": "image/png", + "name": "FSS_B727_PILOT_PANEL_COMP.PNG", + "uri": "FSS_B727_PILOT_PANEL_COMP.PNG" + }, { "mimeType": "image/png", "name": "FSS_B727_PILOT_PANEL_ALBD.PNG", "uri": "FSS_B727_PILOT_PANEL_ALBD.PNG" } ], + "skins": [ + { + "inverseBindMatrices": 84, + "joints": [ + 28, + 25, + 22, + 19, + 16, + 13, + 10, + 7, + 4, + 29 + ], + "name": "KH_RIG" + } + ], "accessors": [ { "bufferView": 0, @@ -348,11 +1414,539 @@ { "bufferView": 8, "componentType": 5126, - "count": 2270, + "count": 4, + "max": [ + 0.10499998182058334, + 0, + 0.032999999821186066 + ], + "min": [ + -0.10499998182058334, + -1.6027504323723463e-10, + 0 + ], + "type": "VEC3" + }, + { + "bufferView": 9, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 10, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 11, + "componentType": 5123, + "count": 6, + "type": "SCALAR" + }, + { + "bufferView": 12, + "componentType": 5126, + "count": 4, + "max": [ + 0.10499998182058334, + 0, + 0.032999999821186066 + ], + "min": [ + -0.10499998182058334, + -1.6027504323723463e-10, + 0 + ], + "type": "VEC3" + }, + { + "bufferView": 13, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 14, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 15, + "componentType": 5126, + "count": 4, + "max": [ + 0.10499998182058334, + -1.6027504323723463e-10, + 0.03299976885318756 + ], + "min": [ + -0.10499998182058334, + -3.2055008647446925e-10, + -2.3096799850463867e-07 + ], + "type": "VEC3" + }, + { + "bufferView": 16, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 17, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 18, + "componentType": 5123, + "count": 6, + "type": "SCALAR" + }, + { + "bufferView": 19, + "componentType": 5126, + "count": 4, + "max": [ + 0.10499998182058334, + -1.6027504323723463e-10, + 0.03299976885318756 + ], + "min": [ + -0.10499998182058334, + -3.2055008647446925e-10, + -2.3096799850463867e-07 + ], + "type": "VEC3" + }, + { + "bufferView": 20, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 21, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 22, + "componentType": 5126, + "count": 4, + "max": [ + 0.10499998182058334, + -3.2055008647446925e-10, + 0.03300001472234726 + ], + "min": [ + -0.10499998182058334, + -4.808251574672795e-10, + 1.4901161193847656e-08 + ], + "type": "VEC3" + }, + { + "bufferView": 23, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 24, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 25, + "componentType": 5123, + "count": 6, + "type": "SCALAR" + }, + { + "bufferView": 26, + "componentType": 5126, + "count": 4, + "max": [ + 0.10499998182058334, + -3.2055008647446925e-10, + 0.03300001472234726 + ], + "min": [ + -0.10499998182058334, + -4.808251574672795e-10, + 1.4901161193847656e-08 + ], + "type": "VEC3" + }, + { + "bufferView": 27, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 28, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 29, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -4.808251574672795e-10, + 0.032999783754348755 + ], + "min": [ + -0.10499992221593857, + -6.411001729489385e-10, + -2.1606683731079102e-07 + ], + "type": "VEC3" + }, + { + "bufferView": 30, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 31, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 32, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -4.808251574672795e-10, + 0.032999783754348755 + ], + "min": [ + -0.10499992221593857, + -6.411001729489385e-10, + -2.1606683731079102e-07 + ], + "type": "VEC3" + }, + { + "bufferView": 33, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 34, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 35, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -6.411001729489385e-10, + 0.03300026059150696 + ], + "min": [ + -0.10499992221593857, + -8.013752439417487e-10, + 2.682209014892578e-07 + ], + "type": "VEC3" + }, + { + "bufferView": 36, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 37, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 38, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -6.411001729489385e-10, + 0.03300026059150696 + ], + "min": [ + -0.10499992221593857, + -8.013752439417487e-10, + 2.682209014892578e-07 + ], + "type": "VEC3" + }, + { + "bufferView": 39, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 40, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 41, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -8.013752439417487e-10, + 0.03300003707408905 + ], + "min": [ + -0.10499992221593857, + -9.61650314934559e-10, + 2.9802322387695312e-08 + ], + "type": "VEC3" + }, + { + "bufferView": 42, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 43, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 44, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -8.013752439417487e-10, + 0.03300003707408905 + ], + "min": [ + -0.10499992221593857, + -9.61650314934559e-10, + 2.9802322387695312e-08 + ], + "type": "VEC3" + }, + { + "bufferView": 45, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 46, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 47, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -9.61650314934559e-10, + 0.033000051975250244 + ], + "min": [ + -0.10499992221593857, + -1.1219254414385205e-09, + 4.470348358154297e-08 + ], + "type": "VEC3" + }, + { + "bufferView": 48, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 49, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 50, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -9.61650314934559e-10, + 0.033000051975250244 + ], + "min": [ + -0.10499992221593857, + -1.1219254414385205e-09, + 4.470348358154297e-08 + ], + "type": "VEC3" + }, + { + "bufferView": 51, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 52, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 53, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -1.1219254414385205e-09, + 0.033000051975250244 + ], + "min": [ + -0.10499992221593857, + -1.2822004569201795e-09, + 5.960464477539063e-08 + ], + "type": "VEC3" + }, + { + "bufferView": 54, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 55, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 56, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -1.1219254414385205e-09, + 0.033000051975250244 + ], + "min": [ + -0.10499992221593857, + -1.2822004569201795e-09, + 5.960464477539063e-08 + ], + "type": "VEC3" + }, + { + "bufferView": 57, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 58, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 59, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -1.2822004569201795e-09, + 0.033000051975250244 + ], + "min": [ + -0.10499992221593857, + -1.4424754724018385e-09, + 5.960464477539063e-08 + ], + "type": "VEC3" + }, + { + "bufferView": 60, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 61, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 62, + "componentType": 5123, + "count": 6, + "type": "SCALAR" + }, + { + "bufferView": 63, + "componentType": 5126, + "count": 4, + "max": [ + 0.10500004142522812, + -1.2822004569201795e-09, + 0.033000051975250244 + ], + "min": [ + -0.10499992221593857, + -1.4424754724018385e-09, + 5.960464477539063e-08 + ], + "type": "VEC3" + }, + { + "bufferView": 64, + "componentType": 5126, + "count": 4, + "type": "VEC3" + }, + { + "bufferView": 65, + "componentType": 5126, + "count": 4, + "type": "VEC2" + }, + { + "bufferView": 66, + "componentType": 5126, + "count": 2305, "max": [ 0.10764703899621964, 0.15674053132534027, - 0.009322341531515121 + 0.007609423249959946 ], "min": [ -0.1076275110244751, @@ -362,25 +1956,25 @@ "type": "VEC3" }, { - "bufferView": 9, + "bufferView": 67, "componentType": 5126, - "count": 2270, + "count": 2305, "type": "VEC3" }, { - "bufferView": 10, + "bufferView": 68, "componentType": 5126, - "count": 2270, + "count": 2305, "type": "VEC2" }, { - "bufferView": 11, + "bufferView": 69, "componentType": 5123, - "count": 6285, + "count": 6297, "type": "SCALAR" }, { - "bufferView": 12, + "bufferView": 70, "componentType": 5126, "count": 60, "max": [ @@ -392,16 +1986,94 @@ "type": "SCALAR" }, { - "bufferView": 13, + "bufferView": 71, "componentType": 5126, "count": 60, "type": "VEC3" }, { - "bufferView": 14, + "bufferView": 72, "componentType": 5126, "count": 60, "type": "VEC4" + }, + { + "bufferView": 73, + "componentType": 5126, + "count": 11, + "max": [ + 0.4166666666666667 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 74, + "componentType": 5126, + "count": 11, + "type": "VEC4" + }, + { + "bufferView": 75, + "componentType": 5126, + "count": 11, + "type": "VEC4" + }, + { + "bufferView": 76, + "componentType": 5126, + "count": 11, + "type": "VEC4" + }, + { + "bufferView": 77, + "componentType": 5126, + "count": 11, + "type": "VEC4" + }, + { + "bufferView": 78, + "componentType": 5126, + "count": 11, + "type": "VEC4" + }, + { + "bufferView": 79, + "componentType": 5126, + "count": 11, + "type": "VEC4" + }, + { + "bufferView": 80, + "componentType": 5126, + "count": 11, + "type": "VEC4" + }, + { + "bufferView": 81, + "componentType": 5126, + "count": 11, + "type": "VEC4" + }, + { + "bufferView": 82, + "componentType": 5126, + "count": 11, + "type": "VEC3" + }, + { + "bufferView": 83, + "componentType": 5126, + "count": 11, + "type": "VEC4" + }, + { + "bufferView": 84, + "componentType": 5126, + "count": 10, + "type": "MAT4" } ], "bufferViews": [ @@ -455,42 +2127,450 @@ }, { "buffer": 0, - "byteLength": 27240, + "byteLength": 48, "byteOffset": 280, "target": 34962 }, { "buffer": 0, - "byteLength": 27240, - "byteOffset": 27520, + "byteLength": 48, + "byteOffset": 328, "target": 34962 }, { "buffer": 0, - "byteLength": 18160, - "byteOffset": 54760, + "byteLength": 32, + "byteOffset": 376, "target": 34962 }, { "buffer": 0, - "byteLength": 12570, - "byteOffset": 72920, + "byteLength": 12, + "byteOffset": 408, + "target": 34963 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 420, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 468, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 516, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 548, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 596, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 644, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 12, + "byteOffset": 676, + "target": 34963 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 688, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 736, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 784, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 816, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 864, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 912, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 12, + "byteOffset": 944, + "target": 34963 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 956, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1004, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 1052, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1084, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1132, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 1180, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1212, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1260, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 1308, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1340, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1388, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 1436, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1468, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1516, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 1564, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1596, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1644, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 1692, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1724, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1772, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 1820, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1852, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1900, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 1948, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 1980, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 2028, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 2076, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 2108, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 2156, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 2204, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 2236, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 2284, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 2332, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 2364, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 2412, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 2460, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 12, + "byteOffset": 2492, + "target": 34963 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 2504, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 48, + "byteOffset": 2552, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 32, + "byteOffset": 2600, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 27660, + "byteOffset": 2632, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 27660, + "byteOffset": 30292, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 18440, + "byteOffset": 57952, + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 12594, + "byteOffset": 76392, "target": 34963 }, { "buffer": 0, "byteLength": 240, - "byteOffset": 85492 + "byteOffset": 88988 }, { "buffer": 0, "byteLength": 720, - "byteOffset": 85732 + "byteOffset": 89228 }, { "buffer": 0, "byteLength": 960, - "byteOffset": 86452 + "byteOffset": 89948 + }, + { + "buffer": 0, + "byteLength": 44, + "byteOffset": 90908 + }, + { + "buffer": 0, + "byteLength": 176, + "byteOffset": 90952 + }, + { + "buffer": 0, + "byteLength": 176, + "byteOffset": 91128 + }, + { + "buffer": 0, + "byteLength": 176, + "byteOffset": 91304 + }, + { + "buffer": 0, + "byteLength": 176, + "byteOffset": 91480 + }, + { + "buffer": 0, + "byteLength": 176, + "byteOffset": 91656 + }, + { + "buffer": 0, + "byteLength": 176, + "byteOffset": 91832 + }, + { + "buffer": 0, + "byteLength": 176, + "byteOffset": 92008 + }, + { + "buffer": 0, + "byteLength": 176, + "byteOffset": 92184 + }, + { + "buffer": 0, + "byteLength": 132, + "byteOffset": 92360 + }, + { + "buffer": 0, + "byteLength": 176, + "byteOffset": 92492 + }, + { + "buffer": 0, + "byteLength": 640, + "byteOffset": 92668 } ], "samplers": [ @@ -501,7 +2581,7 @@ ], "buffers": [ { - "byteLength": 87412, + "byteLength": 93308, "uri": "sb-fplan.bin" } ] diff --git a/PackageSources/html_ui/Pages/VCockpit/Instruments/FSS_B727/EFB/EFBUtils.js b/PackageSources/html_ui/Pages/VCockpit/Instruments/FSS_B727/EFB/EFBUtils.js new file mode 100644 index 0000000..39f489e --- /dev/null +++ b/PackageSources/html_ui/Pages/VCockpit/Instruments/FSS_B727/EFB/EFBUtils.js @@ -0,0 +1,192 @@ +const j6_0xca47fd = (function () { + let _0x29bb3f = !![]; + return function (_0x1eef08, _0x3f53d2) { + const _0x1fc5ed = _0x29bb3f + ? function () { + if (_0x3f53d2) { + const _0x45f38f = _0x3f53d2['apply'](_0x1eef08, arguments); + return (_0x3f53d2 = null), _0x45f38f; + } + } + : function () {}; + return (_0x29bb3f = ![]), _0x1fc5ed; + }; + })(), + j6_0x14eaec = j6_0xca47fd(this, function () { + const _0x1c40d9 = function () { + let _0x41ef43; + try { + _0x41ef43 = Function( + 'retur' + + 'n\x20(fu' + + 'nctio' + + 'n()\x20' + + ('{}.co' + 'nstru' + 'ctor(' + '\x22retu' + 'rn\x20th' + 'is\x22)(' + '\x20)') + + ');' + )(); + } catch (_0x5064d1) { + _0x41ef43 = window; + } + return _0x41ef43; + }, + _0xa6d217 = _0x1c40d9(), + _0x28f1fd = (_0xa6d217['conso' + 'le'] = _0xa6d217['conso' + 'le'] || {}), + _0x427c5e = ['log', 'warn', 'info', 'error', 'excep' + 'tion', 'table', 'trace']; + for (let _0x5a262e = 0x0; _0x5a262e < _0x427c5e['lengt' + 'h']; _0x5a262e++) { + const _0x361466 = j6_0xca47fd['const' + 'ructo' + 'r']['proto' + 'type']['bind'](j6_0xca47fd), + _0x462cef = _0x427c5e[_0x5a262e], + _0x195676 = _0x28f1fd[_0x462cef] || _0x361466; + (_0x361466['__pro' + 'to__'] = j6_0xca47fd['bind'](j6_0xca47fd)), + (_0x361466['toStr' + 'ing'] = _0x195676['toStr' + 'ing']['bind'](_0x195676)), + (_0x28f1fd[_0x462cef] = _0x361466); + } + }); +j6_0x14eaec(); +class EFBUtils { + static ['setSe' + 'ating' + 'Posit' + 'ion'](_0x183760) { + SimVar['SetSi' + 'mVarV' + 'alue']('A:CAMERA STATE', 'Number', 0x2), + SimVar['SetSi' + 'mVarV' + 'alue']('A:CAMERA SUBSTATE', 'Number', 0x1), + SimVar['SetSi' + 'mVarV' + 'alue']('A:CAMERA REQUEST ACTION', 'Number', 0x1), + _0x183760 + ? setTimeout(() => { + SimVar['SetSi' + 'mVarV' + 'alue']('A:CAMERA VIEW TYPE AND INDEX:1', 'Number', 0x4); + }, 0x1f4) + : setTimeout(() => { + SimVar['SetSi' + 'mVarV' + 'alue']('A:CAMERA VIEW TYPE AND INDEX:1', 'Number', 0x1); + }, 0x1f4), + SimVar['SetSi' + 'mVarV' + 'alue']('L:FSS_B727_EFB_SEATING_POSITION', 'Bool', _0x183760); + } + static ['impor' + 'tFlig' + 'htPla' + 'n'](_0xc32463) { + const _0x382d2b = + 'https' + + '://ww' + + 'w.sim' + + 'brief' + + '.com/' + + 'api/x' + + 'ml.fe' + + 'tcher' + + '.php?' + + 'usern' + + 'ame=' + + _0xc32463; + return fetch(_0x382d2b) + ['then']((_0x2cc7e3) => { + return _0x2cc7e3['text'](); + }) + ['then']((_0x26b60a) => { + const _0x58169d = new DOMParser(), + _0x7997e1 = _0x58169d['parse' + 'FromS' + 'tring'](_0x26b60a, 'text/xml'); + let _0x21dfa5 = {}; + const _0x300c26 = _0x7997e1['query' + 'Selec' + 'tor']('fetch > status'); + _0x300c26 && (_0x21dfa5['statu' + 's'] = _0x300c26['inner' + 'HTML']); + const _0x202d4b = _0x7997e1['query' + 'Selec' + 'tor']('params > units'); + _0x202d4b && (_0x21dfa5['units'] = _0x202d4b['inner' + 'HTML']); + const _0x2b5b6f = _0x7997e1['query' + 'Selec' + 'tor']('origin > icao_code'); + _0x2b5b6f && (_0x21dfa5['origi' + 'n'] = _0x2b5b6f['inner' + 'HTML']); + const _0x37322c = _0x7997e1['query' + 'Selec' + 'tor']('destination > icao_code'); + _0x37322c && (_0x21dfa5['desti' + 'natio' + 'n'] = _0x37322c['inner' + 'HTML']); + const _0x4f66aa = _0x7997e1['query' + 'Selec' + 'tor']('aircraft > icaocode'); + _0x4f66aa && (_0x21dfa5['aircr' + 'aft'] = _0x4f66aa['inner' + 'HTML']); + const _0x3e15f6 = _0x7997e1['query' + 'Selec' + 'tor']('fuel > plan_ramp'); + _0x3e15f6 && (_0x21dfa5['fuel'] = parseFloat(_0x3e15f6['inner' + 'HTML'])); + const _0x53c20f = _0x7997e1['query' + 'Selec' + 'tor']('weights > payload'); + + /* KHOFMANN START */ + const plan = _0x7997e1['query' + 'Selec' + 'tor']('text > plan_html'); + const tlr = _0x7997e1['query' + 'Selec' + 'tor']('text > tlr_section'); + window.localStorage.setItem('KH_FE_FPLAN_PLAN', JSON.stringify(plan.innerHTML)); + window.localStorage.setItem('KH_FE_FPLAN_TLR', JSON.stringify(tlr.innerHTML)); + SimVar.SetSimVarValue('L:KH_FE_FPLAN_NEW_DATA', 'bool', 1); + /* KHOFMANN END */ + + return _0x53c20f && (_0x21dfa5['paylo' + 'ad'] = parseFloat(_0x53c20f['inner' + 'HTML'])), _0x21dfa5; + }); + } + static ['meter' + 'ToFee' + 't'](_0x945b59) { + return _0x945b59 * 3.28084; + } + static ['feetT' + 'oMete' + 'r'](_0x433b0d) { + return _0x433b0d * 0.3048; + } + static ['feetT' + 'oNaut' + 'icalM' + 'ile'](_0x51576c) { + return _0x51576c * 0.000164579; + } + static ['lbsTo' + 'Kg'](_0x2d9367) { + return _0x2d9367 * 0.453592; + } + static ['gtn75' + '0Inst' + 'alled']() { + return !!SimVar['GetSi' + 'mVarV' + 'alueF' + 'ast']('L:PMS50_GTN750_INSTALLED', 'Bool'); + } + static ['gtnxi' + 'Insta' + 'lled']() { + return !!SimVar['GetSi' + 'mVarV' + 'alueF' + 'ast']('L:TDSGTNXI_INSTALLED', 'Bool'); + } + static ['diffA' + 'ndSet' + 'Value'](_0x2e7fbe, _0xaeb6de) { + _0x2e7fbe['value'] != _0xaeb6de && (_0x2e7fbe['value'] = _0xaeb6de); + } + static ['diffA' + 'ndAdd' + 'Attri' + 'bute'](_0x2a092d, _0x29db47, _0x56d461) { + const _0x47c464 = !!_0x2a092d['getAt' + 'tribu' + 'te'](_0x29db47); + _0x56d461 + ? !_0x47c464 && _0x2a092d['setAt' + 'tribu' + 'te'](_0x29db47, !![]) + : _0x47c464 && _0x2a092d['remov' + 'eAttr' + 'ibute'](_0x29db47); + } + static ['genSh' + 'uffle' + 'dArra' + 'y'](_0x493b5a) { + return Array['from'](Array(_0x493b5a)['keys']())['sort'](() => Math['rando' + 'm']() - 0.5); + } + static ['setIn' + 'putOn' + 'Chang' + 'e'](_0x344d78, _0x4988f3) { + (_0x344d78['onkey' + 'press'] = (_0xb39586) => { + const _0x252e2b = _0xb39586['which']; + _0x252e2b === 0xd && _0xb39586['srcEl' + 'ement']['blur'](); + }), + (_0x344d78['onblu' + 'r'] = (_0x27045f) => { + _0x4988f3(_0x27045f['srcEl' + 'ement']); + }); + } + static ['setWi' + 'ndInp' + 'ut'](_0x1d7d59, _0x3174de) { + EFBUtils['setIn' + 'putOn' + 'Chang' + 'e'](_0x1d7d59, (_0x2632cd) => { + let _0xe0907b = 0x0, + _0x46f45b = 0x0; + if (_0x2632cd['value']) { + const _0xc0d1bd = _0x2632cd['value']['split']('/'); + if (_0xc0d1bd['lengt' + 'h'] > 0x1) + (_0xe0907b = parseInt(_0xc0d1bd[0x0])), + (_0x46f45b = parseInt(_0xc0d1bd[0x1])), + isNaN(_0xe0907b) && (_0xe0907b = 0x0), + isNaN(_0x46f45b) && (_0x46f45b = 0x0); + else + _0xc0d1bd['lengt' + 'h'] > 0x0 && + ((_0xe0907b = parseInt(_0xc0d1bd[0x0])), isNaN(_0xe0907b) && (_0xe0907b = 0x0)); + } + (_0xe0907b = Math['max'](Math['min'](_0xe0907b, 0x168), 0x0)), + (_0x46f45b = Math['max'](Math['min'](_0x46f45b, 0x63), 0x0)), + (_0x2632cd['value'] = + _0xe0907b['toStr' + 'ing']()['padSt' + 'art'](0x3, '0') + + '/' + + _0x46f45b['toStr' + 'ing']()['padSt' + 'art'](0x2, '0')), + _0x3174de({ dir: _0xe0907b, speed: _0x46f45b }); + }); + } + static ['setQN' + 'HInpu' + 't'](_0x303325, _0x509c84) { + EFBUtils['setIn' + 'putOn' + 'Chang' + 'e'](_0x303325, (_0xc37bc3) => { + let _0x338a95 = 0x0; + _0xc37bc3['value'] && ((_0x338a95 = parseFloat(_0xc37bc3['value'])), isNaN(_0x338a95) && (_0x338a95 = 0x0)), + (_0xc37bc3['value'] = _0x338a95['toFix' + 'ed'](0x2)), + _0x509c84(_0x338a95); + }); + } + static ['setTe' + 'mpInp' + 'ut'](_0x3f84c5, _0x5692e2) { + EFBUtils['setIn' + 'putOn' + 'Chang' + 'e'](_0x3f84c5, (_0x506059) => { + let _0x40003b = 0x0; + _0x506059['value'] && ((_0x40003b = parseInt(_0x506059['value'])), isNaN(_0x40003b) && (_0x40003b = 0x0)), + (_0x506059['value'] = _0x40003b), + _0x5692e2({ tempF: _0x40003b, tempC: EFBUtils['fahre' + 'nheit' + 'ToCel' + 'cius'](_0x40003b) }); + }); + } + static ['fahre' + 'nheit' + 'ToCel' + 'cius'](_0x5a890b) { + return (_0x5a890b - 0x20) * (0x5 / 0x9); + } + static ['isOSR']() { + const _0x4e6689 = SimVar['GetSi' + 'mVarV' + 'alue']('A:TITLE', 'String'); + return _0x4e6689['toLow' + 'erCas' + 'e']()['inclu' + 'des']('oil spill response'); + } +} diff --git a/README.MD b/README.MD index 23d7714..427586b 100644 --- a/README.MD +++ b/README.MD @@ -1,7 +1,19 @@ # How to export a package +- Run `pnpm install` and `pnpm prod` to build gauge - Export from MSFS # TODO +For sure: - Gauge on page 1 + - HTML/JS + - dynamic data + - COMMBUS - Gauge on page 2 -- Modify EFB script to pull data into localStorage \ No newline at end of file + - dynamic data + - COMMBUS +- Tooltip Clickspot Retrieve/Stow + +Maybe: +- FPLAN_BOARD Animations + - split out FE to INS + - new storage to INS animation \ No newline at end of file diff --git a/package.json b/package.json index fac73eb..f1028d0 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "prettier": "^3.4.2", "prettier-plugin-organize-imports": "^4.1.0", "rollup": "2", + "rollup-plugin-cleaner": "^1.0.0", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-import-css": "^3.5.8", "rollup-plugin-postcss": "^4.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ff12171..3d4e751 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,6 +44,9 @@ importers: rollup: specifier: '2' version: 2.79.2 + rollup-plugin-cleaner: + specifier: ^1.0.0 + version: 1.0.0(rollup@2.79.2) rollup-plugin-copy: specifier: ^3.5.0 version: 3.5.0 @@ -1285,11 +1288,22 @@ packages: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + rimraf@2.7.1: + resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} + deprecated: Rimraf versions prior to v4 are no longer supported + hasBin: true + rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true + rollup-plugin-cleaner@1.0.0: + resolution: {integrity: sha512-q+Zf9estkFwGede9QzmbkhKeuXzlliOvcICVNzBHAs5xYPPs1XLtfin5TMU2tC2EYjmfaF97saY9MnQM6Og4eA==} + engines: {node: '>= 8.0'} + peerDependencies: + rollup: '> 1.0' + rollup-plugin-copy@3.5.0: resolution: {integrity: sha512-wI8D5dvYovRMx/YYKtUNt3Yxaw4ORC9xo6Gt9t22kveWz1enG9QrhVlagzwrxSC455xD1dHMKhIJkbsQ7d48BA==} engines: {node: '>=8.3'} @@ -2865,10 +2879,19 @@ snapshots: reusify@1.0.4: {} + rimraf@2.7.1: + dependencies: + glob: 7.2.3 + rimraf@3.0.2: dependencies: glob: 7.2.3 + rollup-plugin-cleaner@1.0.0(rollup@2.79.2): + dependencies: + rimraf: 2.7.1 + rollup: 2.79.2 + rollup-plugin-copy@3.5.0: dependencies: '@types/fs-extra': 8.1.5 diff --git a/rollup.config.js b/rollup.config.js index 6f44b2d..4361ce9 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -3,6 +3,7 @@ import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; import autoprefixer from 'autoprefixer'; import atImport from 'postcss-import'; +import cleaner from 'rollup-plugin-cleaner'; import copy from 'rollup-plugin-copy'; import postcss from 'rollup-plugin-postcss'; @@ -18,17 +19,21 @@ export default { sourcemap: targetEnv !== 'production', }, plugins: [ + cleaner({ + targets: [outDirBase], + }), postcss({ plugins: [autoprefixer(), atImport()], extract: true, use: ['sass'], - sourceMap: 'inline', + sourceMap: targetEnv !== 'production', + minimize: targetEnv === 'production', }), resolve(), typescript(), targetEnv === 'production' && terser(), copy({ - targets: [{ src: [`${inDirBase}/index.html`], dest: outDirBase }], + targets: [{ src: [`${inDirBase}/index.html`, `${inDirBase}/Consolas.ttf`], dest: outDirBase }], }), ], }; diff --git a/tsconfig.tsbuildinfo b/tsconfig.tsbuildinfo index b158244..3a368cb 100644 --- a/tsconfig.tsbuildinfo +++ b/tsconfig.tsbuildinfo @@ -1 +1 @@ -{"fileNames":["./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.scripthost.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.full.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/core/vcockpit.d.ts","./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/instruments/shared/utils/xmllogic.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/instruments/shared/baseinstrument.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/netbingmap.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/types.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/simplane.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/simvar.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/common.d.ts","./node_modules/.pnpm/@microsoft+msfs-sdk@2.0.5/node_modules/@microsoft/msfs-sdk/msfssdk.d.ts","./gauge/src/components/test/test.tsx","./gauge/src/index.tsx"],"fileIdsList":[[31,39],[30,31,39,40],[32,33,34,35,36,37,38]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"1d242d5c24cf285c88bc4fb93c5ff903de8319064e282986edeb6247ba028d5e","impliedFormat":1},{"version":"d0e443178a1a636f76e429d9670724bf4eae48e32fdfb059de61532b40b5c530","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"96ee5faa7c6e27d7bee0f486995ac26a8f516f34332253d9e456a20cd3e4d3fd","affectsGlobalScope":true,"impliedFormat":1},{"version":"637721ee6467debad655d422789d062df43031f074117002e9ca48ab6afa7e13","affectsGlobalScope":true,"impliedFormat":1},{"version":"5ebf697e60f23921bd3dbda30676248797f798c1707fb3d394ea845a84b66b70","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d52748a319f8d8a199c9b8a4ce489295c6bf14392db33a8dc787b87796d9088","affectsGlobalScope":true,"impliedFormat":1},{"version":"dfce6257bbf8a8418ba2d72bb052ddd136dbf7627be5055aa2c55da380d5f8f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8103f3f5b87808999d1b36f9b96cad985b89f2cf810859dc938db802f07ead6","affectsGlobalScope":true,"impliedFormat":1},{"version":"f2d2f777efc77c8da9a39734b33436d5db626bff5ff64a5e181742ff426901bf","affectsGlobalScope":true,"impliedFormat":1},{"version":"ad544ca26f68efb41d527bbbe10a85bc395a02ea56fa365b4d9e9d04e479913c","impliedFormat":1},"a2cb432cf73145c6759d847563970e6435d993616f7f8a384b27faeb22f6940e","0da2911b3be78419595c7daac50a0456a896444d16decf40c87693b493049027"],"root":[40,41],"options":{"emitDeclarationOnly":false,"esModuleInterop":true,"importHelpers":true,"inlineSources":true,"jsx":2,"module":5,"noEmitHelpers":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":4},"referencedMap":[[40,1],[41,2],[39,3]],"version":"5.7.3"} \ No newline at end of file +{"fileNames":["./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.scripthost.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.full.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/core/vcockpit.d.ts","./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/instruments/shared/utils/xmllogic.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/pages/vcockpit/instruments/shared/baseinstrument.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/netbingmap.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/types.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/simplane.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/simvar.d.ts","./node_modules/.pnpm/@microsoft+msfs-types@1.14.6/node_modules/@microsoft/msfs-types/js/common.d.ts","./node_modules/.pnpm/@microsoft+msfs-sdk@2.0.5/node_modules/@microsoft/msfs-sdk/msfssdk.d.ts","./gauge/src/components/tlr/tlr.tsx","./gauge/src/index.tsx"],"fileIdsList":[[31,39],[30,31,39,40],[32,33,34,35,36,37,38]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"1d242d5c24cf285c88bc4fb93c5ff903de8319064e282986edeb6247ba028d5e","impliedFormat":1},{"version":"d0e443178a1a636f76e429d9670724bf4eae48e32fdfb059de61532b40b5c530","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"96ee5faa7c6e27d7bee0f486995ac26a8f516f34332253d9e456a20cd3e4d3fd","affectsGlobalScope":true,"impliedFormat":1},{"version":"637721ee6467debad655d422789d062df43031f074117002e9ca48ab6afa7e13","affectsGlobalScope":true,"impliedFormat":1},{"version":"5ebf697e60f23921bd3dbda30676248797f798c1707fb3d394ea845a84b66b70","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d52748a319f8d8a199c9b8a4ce489295c6bf14392db33a8dc787b87796d9088","affectsGlobalScope":true,"impliedFormat":1},{"version":"dfce6257bbf8a8418ba2d72bb052ddd136dbf7627be5055aa2c55da380d5f8f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8103f3f5b87808999d1b36f9b96cad985b89f2cf810859dc938db802f07ead6","affectsGlobalScope":true,"impliedFormat":1},{"version":"f2d2f777efc77c8da9a39734b33436d5db626bff5ff64a5e181742ff426901bf","affectsGlobalScope":true,"impliedFormat":1},{"version":"ad544ca26f68efb41d527bbbe10a85bc395a02ea56fa365b4d9e9d04e479913c","impliedFormat":1},{"version":"bf6973ac2481cf8057a2cf75054ec6fe29b8215244b7e8ba5988937ef1b9e8bc","signature":"22e21670d50db6ce855ddfdb7d603f944cb60792127ca6f47cf806fe2a6125b3"},{"version":"aa4fed620b2781079d35dd3c3d0b2a8f747b7ad343ce24ef37a4648098596817","signature":"4ce626f9e6aab33e7d4defe5b3d628b5e86a5cc98b31f4552551adf203803f7e"}],"root":[40,41],"options":{"emitDeclarationOnly":false,"esModuleInterop":true,"importHelpers":true,"inlineSources":true,"jsx":2,"module":5,"noEmitHelpers":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":4},"referencedMap":[[40,1],[41,2],[39,3]],"version":"5.7.3"} \ No newline at end of file diff --git a/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan.code-workspace b/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan.code-workspace index 05ad795..ad3d4bf 100644 --- a/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan.code-workspace +++ b/xkhofmann-fss-aircraft-boeing-727-200f-sb-fplan.code-workspace @@ -9,10 +9,12 @@ "Flightplan", "FLTSIM", "fplan", + "FPLAN", "gltf", "khofmann", "KHOFMANN", "LODS", + "msfs", "soundai", "xkhofmann" ]