-
-
- setExteriorVolume(value - 50)}
- onAfterChange={() => exteriorSliderRef.current.blur()}
- />
- setExteriorVolume(Number.parseInt(value) - 50)}
- number
- />
-
-
+ {aircraftContext.settingsPages.audio.masterVolume && (
+
+
+ setExteriorVolume(value - 50)}
+ onAfterChange={() => exteriorSliderRef.current.blur()}
+ />
+ setExteriorVolume(Number.parseInt(value) - 50)}
+ number
+ />
+
+
+ )}
-
-
- setEngineVolume(value - 50)}
- onAfterChange={() => engineSliderRef.current.blur()}
- />
- setEngineVolume(Number.parseInt(value) - 50)}
- number
- />
-
-
+ {aircraftContext.settingsPages.audio.engineVolume && (
+
+
+ setEngineVolume(value - 50)}
+ onAfterChange={() => engineSliderRef.current.blur()}
+ />
+ setEngineVolume(Number.parseInt(value) - 50)}
+ number
+ />
+
+
+ )}
-
-
- setWindVolume(value - 50)}
- onAfterChange={() => windSliderRef.current.blur()}
- />
- setWindVolume(Number.parseInt(value) - 50)}
- number
- />
-
-
+ {aircraftContext.settingsPages.audio.windVolume && (
+
+
+ setWindVolume(value - 50)}
+ onAfterChange={() => windSliderRef.current.blur()}
+ />
+ setWindVolume(Number.parseInt(value) - 50)}
+ number
+ />
+
+
+ )}
-
- setPtuAudible(value ? 1 : 0)} />
-
+ {aircraftContext.settingsPages.audio.ptuCockpit && (
+
+ setPtuAudible(value ? 1 : 0)} />
+
+ )}
-
- setPassengerAmbienceEnabled(value ? 1 : 0)} />
-
+ {aircraftContext.settingsPages.audio.paxAmbience && (
+
+ setPassengerAmbienceEnabled(value ? 1 : 0)} />
+
+ )}
-
- setAnnouncementsEnabled(value ? 1 : 0)} />
-
+ {aircraftContext.settingsPages.audio.announcements && (
+
+ setAnnouncementsEnabled(value ? 1 : 0)} />
+
+ )}
-
- setBoardingMusicEnabled(value ? 1 : 0)} />
-
+ {aircraftContext.settingsPages.audio.boardingMusic && (
+
+ setBoardingMusicEnabled(value ? 1 : 0)} />
+
+ )}
);
};
diff --git a/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/RealismPage.tsx b/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/RealismPage.tsx
index edae051ddab..d8a70004c2a 100644
--- a/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/RealismPage.tsx
+++ b/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/RealismPage.tsx
@@ -1,7 +1,7 @@
// Copyright (c) 2023-2024 FlyByWire Simulations
// SPDX-License-Identifier: GPL-3.0
-import React from 'react';
+import React, { useContext } from 'react';
import {
usePersistentBooleanProperty,
usePersistentNumberProperty,
@@ -15,12 +15,15 @@ import { ButtonType, SettingGroup, SettingItem, SettingsPage } from '../Settings
import { SelectGroup, SelectItem } from '../../UtilComponents/Form/Select';
import { SimpleInput } from '../../UtilComponents/Form/SimpleInput/SimpleInput';
+import { AircraftContext } from '@flybywiresim/flypad';
type SimVarButton = {
simVarValue: number;
};
export const RealismPage = () => {
+ const aircraftContext = useContext(AircraftContext);
+
const [adirsAlignTime, setAdirsAlignTime] = usePersistentProperty('CONFIG_ALIGN_TIME', 'REAL');
const [, setAdirsAlignTimeSimVar] = useSimVar('L:A32NX_CONFIG_ADIRS_IR_ALIGN_TIME', 'Enum', Number.MAX_SAFE_INTEGER);
const [dmcSelfTestTime, setDmcSelfTestTime] = usePersistentProperty('CONFIG_SELF_TEST_TIME', '12');
@@ -111,62 +114,70 @@ export const RealismPage = () => {