diff --git a/.gitattributes b/.gitattributes index e5fda4085c7..285465a4ca3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,9 @@ + * text=auto # Ensure LF for shell files, even on Windows, so that bash inside Docker does not panic *.sh text eol=lf + +# Ensure the language files update during build are not marked as changed due to different +# line endings. +/src/instruments/src/EFB/Localization/*.json text eol=lf diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index a2f16ca81f9..0c3bc5cbd84 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -248,6 +248,7 @@ 1. [MISC] Added custom Autobrake event for SimConnect - @aguther (Andreas Guther) 1. [EWD] Fixed failures not re-triggering when resolved - @tricky_dicky (Richard Pilbery) 1. [SOUND] Prevent autopilot disconnect from sounding on C+D spawn - @tricky_dicky (Richard Pilbery) and @saschl (saschl#9432) +1. [EFB] Presets for Lighting and Aircraft states - @frankkopp (Frank Kopp) ## 0.7.0 diff --git a/.github/workflows/experimental.yml b/.github/workflows/experimental.yml index 7660fc40309..0d1e82af687 100644 --- a/.github/workflows/experimental.yml +++ b/.github/workflows/experimental.yml @@ -26,6 +26,7 @@ jobs: echo CLIENT_SECRET=${{ secrets.NAVIGRAPH_CLIENT_SECRET }} >> .env echo CHARTFOX_SECRET=${{ secrets.CHARTFOX_SECRET }} >> .env echo SENTRY_DSN=${{ secrets.SENTRY_DSN }} >> .env + echo LOCALAZY_READ_KEY=${{ secrets.LOCALAZY_READ_KEY }} >> .env - name: Build A32NX run: | ./scripts/dev-env/run.sh ./scripts/setup.sh diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 8418a376902..9183ec37a2f 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -28,6 +28,7 @@ jobs: echo CLIENT_SECRET=${{ secrets.NAVIGRAPH_CLIENT_SECRET }} >> .env echo CHARTFOX_SECRET=${{ secrets.CHARTFOX_SECRET }} >> .env echo SENTRY_DSN=${{ secrets.SENTRY_DSN }} >> .env + echo LOCALAZY_READ_KEY=${{ secrets.LOCALAZY_READ_KEY }} >> .env - name: Build A32NX run: | ./scripts/dev-env/run.sh ./scripts/setup.sh diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 809dddc00e2..d748ab0492b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -58,6 +58,7 @@ jobs: echo CLIENT_SECRET=${{ secrets.NAVIGRAPH_CLIENT_SECRET }} >> .env echo CHARTFOX_SECRET=${{ secrets.CHARTFOX_SECRET }} >> .env echo SENTRY_DSN=${{ secrets.SENTRY_DSN }} >> .env + echo LOCALAZY_READ_KEY=${{ secrets.LOCALAZY_READ_KEY }} >> .env - name: Build A32NX run: | ./scripts/dev-env/run.sh ./scripts/setup.sh diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index aa8a5fc48a3..3abfef63808 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -22,6 +22,7 @@ jobs: echo CLIENT_SECRET=${{ secrets.NAVIGRAPH_CLIENT_SECRET }} >> .env echo CHARTFOX_SECRET=${{ secrets.CHARTFOX_SECRET }} >> .env echo SENTRY_DSN=${{ secrets.SENTRY_DSN }} >> .env + echo LOCALAZY_READ_KEY=${{ secrets.LOCALAZY_READ_KEY }} >> .env - name: Build A32NX run: | ./scripts/dev-env/run.sh ./scripts/setup.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 322e9e61074..d571a91e33e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ jobs: echo CLIENT_SECRET=${{ secrets.NAVIGRAPH_CLIENT_SECRET }} >> .env echo CHARTFOX_SECRET=${{ secrets.CHARTFOX_SECRET }} >> .env echo SENTRY_DSN=${{ secrets.SENTRY_DSN }} >> .env + echo LOCALAZY_READ_KEY=${{ secrets.LOCALAZY_READ_KEY }} >> .env - name: Build A32NX run: | ./scripts/dev-env/run.sh ./scripts/setup.sh diff --git a/.gitignore b/.gitignore index 6dd06d44eb2..35c1dd0082c 100644 --- a/.gitignore +++ b/.gitignore @@ -62,6 +62,7 @@ node_modules /src/fbw/obj/ /src/fdr2csv/build/ /src/fadec/obj/ +/src/presets/obj/ .env src/instruments/buildSrc/custom/* /flybywire-aircraft-a320-neo/MCDU SERVER/ @@ -70,3 +71,5 @@ src/instruments/buildSrc/custom/* /flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/TEXTURE/A320NEO_COCKPIT_DECALSTEXT_ALBD.TIF.dds msfs-avionics-mirror/src/sdk/build/** *.tgz +/src/instruments/src/EFB/Localization/downloaded/*.json +/.ace/ diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index e1a7b3e5f35..8a8e097cc13 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -31,4 +31,4 @@ } ], "version": 4 -} \ No newline at end of file +} diff --git a/docs/a320-simvars.md b/docs/a320-simvars.md index 5305ac8090b..5db4a518834 100644 --- a/docs/a320-simvars.md +++ b/docs/a320-simvars.md @@ -1157,6 +1157,36 @@ 0 or greater | Seconds elapsed -1 | Empty value +- A32NX_LOAD_LIGHTING_PRESET + - Number + - ID for preset + - When set to >0 the corresponding preset will be loaded if defined + - Will be reset to 0 after loading is done + +- A32NX_SAVE_LIGHTING_PRESET + - Number + - ID for preset + - When set to >0 the corresponding preset will be overwritten and saved to an ini file + - Will be reset to 0 after saving is done + +- A32NX_LOAD_AIRCRAFT_PRESET + - Number + - ID for preset (1..5) + - When set to >0 the corresponding preset will be loaded if defined + - Will be reset to 0 after loading is done + - When set to 0 during loading will stop and cancel the loading process + - Value | Meaning + --- | --- + 1 | Cold & Dark + 2 | Turnaround + 3 | Ready for Pushback + 4 | Ready for Taxi + 5 | Ready for Takeoff + +- A32NX_LOAD_AIRCRAFT_PRESET_PROGRESS + - Number (0.0..1.0) + - While loading a preset this will contain the percentage of the total progress of loading + ## EIS Display System - A32NX_EFIS_{side}_NAVAID_{1|2}_MODE diff --git a/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/panel/panel.cfg b/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/panel/panel.cfg index 2a5f3099543..874005afbcf 100644 --- a/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/panel/panel.cfg +++ b/flybywire-aircraft-a320-neo/SimObjects/AirPlanes/FlyByWire_A320_NEO/panel/panel.cfg @@ -133,6 +133,7 @@ background_color=0,0,0 htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=systems.wasm&wasm_gauge=systems, 0,0,1,1 htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=fbw.wasm&wasm_gauge=fbw, 0,0,1,1 htmlgauge02=WasmInstrument/WasmInstrument.html?wasm_module=fadec.wasm&wasm_gauge=FadecGauge, 0,0,1,1 +htmlgauge03=WasmInstrument/WasmInstrument.html?wasm_module=presets.wasm&wasm_gauge=Presets, 0,0,1,1 [VPainting01] size_mm = 2048,512 diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/Inter-Regular.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/Inter-Regular.ttf new file mode 100644 index 00000000000..96fd6a12d0e Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/Inter-Regular.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/Inter-SemiBold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/Inter-SemiBold.ttf new file mode 100644 index 00000000000..ddb279290ba Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/Inter-SemiBold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/JetBrainsMono-Regular.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/JetBrainsMono-Regular.ttf new file mode 100644 index 00000000000..5f2f00fe8a6 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/JetBrainsMono-Regular.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Bold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Bold.ttf new file mode 100644 index 00000000000..8bbf0bd1fe9 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Bold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Light.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Light.ttf new file mode 100644 index 00000000000..f255257a815 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Light.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Medium.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Medium.ttf new file mode 100644 index 00000000000..c73d7741b1b Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Medium.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Regular.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Regular.ttf new file mode 100644 index 00000000000..c02b01bea3c Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-Regular.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-SemiBold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-SemiBold.ttf new file mode 100644 index 00000000000..30ee031048b Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/Manrope-SemiBold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Bold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Bold.ttf new file mode 100644 index 00000000000..93780ab24e3 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Bold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Light.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Light.ttf new file mode 100644 index 00000000000..7923ddc4ac0 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Light.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Medium.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Medium.ttf new file mode 100644 index 00000000000..332866dac8e Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Medium.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Regular.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Regular.ttf new file mode 100644 index 00000000000..af79e477d6e Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-Regular.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-SemiBold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-SemiBold.ttf new file mode 100644 index 00000000000..759796e8272 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansArabic-SemiBold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Bold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Bold.ttf new file mode 100644 index 00000000000..e20e88a1d18 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Bold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Light.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Light.ttf new file mode 100644 index 00000000000..3be15a7f392 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Light.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Medium.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Medium.ttf new file mode 100644 index 00000000000..80bce15be44 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Medium.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Regular.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Regular.ttf new file mode 100644 index 00000000000..47798bdf31c Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-Regular.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-SemiBold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-SemiBold.ttf new file mode 100644 index 00000000000..a6e6bbedbd3 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansDevanagari-SemiBold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Bold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Bold.ttf new file mode 100644 index 00000000000..3fde550c923 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Bold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Light.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Light.ttf new file mode 100644 index 00000000000..62b40d88224 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Light.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Medium.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Medium.ttf new file mode 100644 index 00000000000..938df31a886 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Medium.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Regular.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Regular.ttf new file mode 100644 index 00000000000..e3845565215 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-Regular.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-SemiBold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-SemiBold.ttf new file mode 100644 index 00000000000..f9779d92975 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansHebrew-SemiBold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Bold.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Bold.otf new file mode 100644 index 00000000000..e5b538d1682 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Bold.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Light.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Light.otf new file mode 100644 index 00000000000..d60e0bc56ab Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Light.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Medium.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Medium.otf new file mode 100644 index 00000000000..ee727321030 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Medium.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Regular.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Regular.otf new file mode 100644 index 00000000000..776427dcb93 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansJP-Regular.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Bold.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Bold.otf new file mode 100644 index 00000000000..be388bf5f96 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Bold.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Light.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Light.otf new file mode 100644 index 00000000000..548e667e9b8 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Light.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Medium.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Medium.otf new file mode 100644 index 00000000000..5ddbbc03803 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Medium.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Regular.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Regular.otf new file mode 100644 index 00000000000..7c5c2fae3f7 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansKR-Regular.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Bold.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Bold.otf new file mode 100644 index 00000000000..172eb674127 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Bold.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Light.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Light.otf new file mode 100644 index 00000000000..85ccdf44a4c Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Light.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Medium.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Medium.otf new file mode 100644 index 00000000000..0a5bd9e5fe6 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Medium.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Regular.otf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Regular.otf new file mode 100644 index 00000000000..d350ffa79e3 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansSC-Regular.otf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Bold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Bold.ttf new file mode 100644 index 00000000000..ae0881254ef Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Bold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Light.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Light.ttf new file mode 100644 index 00000000000..500ef4b00d0 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Light.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Medium.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Medium.ttf new file mode 100644 index 00000000000..024dcda4357 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Medium.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Regular.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Regular.ttf new file mode 100644 index 00000000000..d7351f8e332 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-Regular.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-SemiBold.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-SemiBold.ttf new file mode 100644 index 00000000000..36d65378a77 Binary files /dev/null and b/flybywire-aircraft-a320-neo/html_ui/Fonts/NotoSansThai-SemiBold.ttf differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/ibm-plex-mono-v6-latin-300.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/ibm-plex-mono-v6-latin-300.ttf deleted file mode 100644 index 4baf9a8573f..00000000000 Binary files a/flybywire-aircraft-a320-neo/html_ui/Fonts/ibm-plex-mono-v6-latin-300.ttf and /dev/null differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/nunito-sans-v6-latin-200.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/nunito-sans-v6-latin-200.ttf deleted file mode 100644 index 76ebfadb2a8..00000000000 Binary files a/flybywire-aircraft-a320-neo/html_ui/Fonts/nunito-sans-v6-latin-200.ttf and /dev/null differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/nunito-sans-v6-latin-700.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/nunito-sans-v6-latin-700.ttf deleted file mode 100644 index 2736009070c..00000000000 Binary files a/flybywire-aircraft-a320-neo/html_ui/Fonts/nunito-sans-v6-latin-700.ttf and /dev/null differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Fonts/nunito-sans-v6-latin-regular.ttf b/flybywire-aircraft-a320-neo/html_ui/Fonts/nunito-sans-v6-latin-regular.ttf deleted file mode 100644 index 242ae43c9a4..00000000000 Binary files a/flybywire-aircraft-a320-neo/html_ui/Fonts/nunito-sans-v6-latin-regular.ttf and /dev/null differ diff --git a/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Core.js b/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Core.js index 5e7a32365d8..40be636ea8d 100644 --- a/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Core.js +++ b/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Core.js @@ -62,7 +62,7 @@ class A32NX_Core { name: 'Speeds', module: new A32NX_Speeds(), updateInterval: 500, - }, + } ]; this.moduleThrottlers = {}; for (const moduleDefinition of this.modules) { diff --git a/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Pushback.js b/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Pushback.js new file mode 100644 index 00000000000..c6064978e98 --- /dev/null +++ b/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Pushback.js @@ -0,0 +1,30 @@ +class A32NX_Pushback { + constructor() {} + + init() { + SimVar.SetSimVarValue('L:A32NX_PUSHBACK_TUG_DIRECTION_FACTOR', 'number', -1); + console.log("A32NX Pushback Initialized."); + } + + update(_deltaTime) { + const simOnGround = SimVar.GetSimVarValue('SIM ON GROUND', 'number'); + const pushBackAttached = SimVar.GetSimVarValue('Pushback Attached', 'bool'); + + if (!(pushBackAttached && simOnGround)) { + return; + } + console.log(SimVar.GetSimVarValue('A:RUDDER POSITION', 'number')); + const tugSpeed = SimVar.GetSimVarValue('L:A32NX_TUG_SPEED', 'number'); + const parkingBrakeEngaged = SimVar.GetSimVarValue('L:A32NX_PARK_BRAKE_LEVER_POS', 'Bool'); + const commandedTugDirectionFactor = SimVar.GetSimVarValue('L:A32NX_PUSHBACK_TUG_DIRECTION_FACTOR', 'number'); + const commandedTugHeadingFactor = SimVar.GetSimVarValue('L:A32NX_PUSHBACK_TUG_HEADING_FACTOR', 'number'); + + SimVar.SetSimVarValue('VELOCITY BODY X', 'Number', 0); + SimVar.SetSimVarValue('VELOCITY BODY Y', 'Number', 0); + SimVar.SetSimVarValue('VELOCITY BODY Z', 'Number', tugSpeed * (parkingBrakeEngaged ? 0.75 : 8) * commandedTugDirectionFactor); + + SimVar.SetSimVarValue('ROTATION VELOCITY BODY X', 'Number', 0); + SimVar.SetSimVarValue('ROTATION VELOCITY BODY Y', 'Number', tugSpeed * (parkingBrakeEngaged ? 0.015 : 0.16) * commandedTugHeadingFactor * commandedTugDirectionFactor); + SimVar.SetSimVarValue('ROTATION VELOCITY BODY Z', 'Number', 0); + } +} diff --git a/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/CDU/A320_Neo_CDU.html b/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/CDU/A320_Neo_CDU.html index d427f03ad11..7934b3ecebc 100644 --- a/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/CDU/A320_Neo_CDU.html +++ b/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/CDU/A320_Neo_CDU.html @@ -1,4 +1,4 @@ - +
-