1// SPDX-License-Identifier: GPL-2.0-only
2// Copyright (c) 2025-present FERS Contributors (see AUTHORS.md).
12} from '@mui/material';
13import { useScenarioStore } from '@/stores/scenarioStore';
14import { NumberField } from './inspectors/InspectorControls';
16interface SettingsDialogProps {
21export default function SettingsDialog({ open, onClose }: SettingsDialogProps) {
22 const { targetPlaybackDuration, setTargetPlaybackDuration } =
25 <Dialog open={open} onClose={onClose} maxWidth="xs" fullWidth>
26 <DialogTitle>Application Settings</DialogTitle>
31 flexDirection: 'column',
37 Global application settings. Scenario parameters are
38 edited in the Property Inspector.
41 label="Target Preview Playback Duration (s)"
42 value={targetPlaybackDuration}
43 onChange={(val) => setTargetPlaybackDuration(val)}
45 <Typography variant="caption">
46 Set a fixed real-world duration for the simulation
47 preview. Leave blank for default behavior (real-time
48 playback, with a minimum of 5 seconds for short
54 <Button onClick={onClose}>Close</Button>