diff --git a/src/instruments/src/EFB/Localization/en.json b/src/instruments/src/EFB/Localization/en.json index 7acfdb6fdb45..c31d65fad880 100644 --- a/src/instruments/src/EFB/Localization/en.json +++ b/src/instruments/src/EFB/Localization/en.json @@ -450,6 +450,8 @@ "HomeCockpitMode": "Home Cockpit Mode", "McduFocusTimeout": "MCDU Focus Timeout (seconds)", "McduKeyboardInput": "MCDU Keyboard Input", + "PauseAtTod": "T/D Pause", + "PauseAtTodDistance": "T/D Pause Distance (nm)", "SeparateTillerFromRudderInputs": "Separate Tiller from Rudder Inputs", "Title": "Realism" }, @@ -545,4 +547,4 @@ "Tue": "Tue", "Wed": "Wed" } -} \ No newline at end of file +} diff --git a/src/instruments/src/EFB/Settings/Pages/RealismPage.tsx b/src/instruments/src/EFB/Settings/Pages/RealismPage.tsx index 2d2493e4771d..e03c8ef2de3f 100644 --- a/src/instruments/src/EFB/Settings/Pages/RealismPage.tsx +++ b/src/instruments/src/EFB/Settings/Pages/RealismPage.tsx @@ -19,6 +19,8 @@ export const RealismPage = () => { const [dmcSelfTestTime, setDmcSelfTestTime] = usePersistentProperty('CONFIG_SELF_TEST_TIME', '12'); const [mcduInput, setMcduInput] = usePersistentProperty('MCDU_KB_INPUT', 'DISABLED'); const [mcduTimeout, setMcduTimeout] = usePersistentProperty('CONFIG_MCDU_KB_TIMEOUT', '60'); + const [pauseAtTod, setPauseAtTod] = usePersistentProperty('PAUSE_AT_TOD', 'DISABLED'); + const [todOffset, setTodOffset] = usePersistentNumberProperty('PAUSE_AT_TOD_DISTANCE', 10); const [boardingRate, setBoardingRate] = usePersistentProperty('CONFIG_BOARDING_RATE', 'REAL'); const [realisticTiller, setRealisticTiller] = usePersistentNumberProperty('REALISTIC_TILLER_ENABLED', 0); const [homeCockpit, setHomeCockpit] = usePersistentProperty('HOME_COCKPIT_ENABLED', '0'); @@ -121,6 +123,28 @@ export const RealismPage = () => { )} + + + setPauseAtTod(value ? 'ENABLED' : 'DISABLED')} /> + + {pauseAtTod === 'ENABLED' && ( + + { + if (!Number.isNaN(event) && parseInt(event) >= 0 && parseInt(event) <= 50.0) { + setTodOffset(parseFloat(event.trim())); + } + }} + /> + + )} + + ); };