diff --git a/Docs/docs/simulations-tab.md b/Docs/docs/simulations-tab.md index 18b7dc546..faf7f662b 100644 --- a/Docs/docs/simulations-tab.md +++ b/Docs/docs/simulations-tab.md @@ -19,11 +19,11 @@ A `Simulation` can be in the following states. [![](images/web-simulation-general.png)](images/full_size_images/web-simulation-general.png) 2. `Map & Vehicles` + - `Interactive Mode`: Check this to enable Simulation controls - `Select Map`: From the dropdown, choose the map that will be used - `Select Vehicle`: From the dropdown, choose the vehicle that will be spawned - `Bridge Connection String`: If the chosen vehicle has a Bridge Type, an IP:port must be provided to the bridge host - `+`: Adds an additional vehicle. Vehicles will spawn in `Spawn Info` positions of the map in order - - `Interactive Mode`: Check this to enable Simulation controls [![](images/web-simulation-mapVehicle.png)](images/full_size_images/web-simulation-mapVehicle.png) diff --git a/WebUI/src/components/SimulationManager/FormGeneral.js b/WebUI/src/components/SimulationManager/FormGeneral.js index 5b4634e33..088eca149 100644 --- a/WebUI/src/components/SimulationManager/FormGeneral.js +++ b/WebUI/src/components/SimulationManager/FormGeneral.js @@ -102,7 +102,7 @@ function FormGeneral() {


@@ -114,11 +114,12 @@ function FormGeneral() {

- ) + + ) } export default FormGeneral; \ No newline at end of file diff --git a/WebUI/src/components/SimulationManager/FormMapVehicles.js b/WebUI/src/components/SimulationManager/FormMapVehicles.js index 14756f388..2c2063253 100644 --- a/WebUI/src/components/SimulationManager/FormMapVehicles.js +++ b/WebUI/src/components/SimulationManager/FormMapVehicles.js @@ -149,6 +149,19 @@ function FormMapVehicles() { }
+

+ Interactive Mode +

+

+ Running simulation in interactive mode allows to control time flow, create snapshots interact with environment and control vehicles manually. +

+ +

Select Map

@@ -166,7 +179,6 @@ function FormMapVehicles() { disabled={apiOnly} />
-

Select Vehicles

@@ -223,19 +235,6 @@ function FormMapVehicles() {
}
-
-

- Interactive Mode -

-

- Running simulation in interactive mode allows to control time flow, create snapshots interact with environment and control vehicles manually. -

- {formWarning} ) diff --git a/WebUI/src/components/SimulationManager/FormTraffic.js b/WebUI/src/components/SimulationManager/FormTraffic.js index 283fbce2c..0d04390f9 100644 --- a/WebUI/src/components/SimulationManager/FormTraffic.js +++ b/WebUI/src/components/SimulationManager/FormTraffic.js @@ -40,19 +40,25 @@ function FormTraffic() { name={'hasSeed'} checked={hasSeed} onChange={changeHasSeed} - label={hasSeed ? "Use predefiend seed" : "Use different random seed everytime"} /> + label="Use predefiend random seed" + disabled={apiOnly} /> {hasSeed && } + onChange={changeSeed} + disabled={apiOnly} />} +

- Enable NPC + Random Traffic

+

+ When enabled other vehicles start to roam around randomly across the map during the simulation. +


@@ -65,7 +71,7 @@ function FormTraffic() { ) diff --git a/WebUI/src/components/SimulationManager/FormWeather.js b/WebUI/src/components/SimulationManager/FormWeather.js index 55b7fe723..e59fd2aee 100644 --- a/WebUI/src/components/SimulationManager/FormWeather.js +++ b/WebUI/src/components/SimulationManager/FormWeather.js @@ -14,7 +14,7 @@ import "react-datepicker/dist/react-datepicker.css"; function FormWeather() { const [simulation, setSimulation] = useContext(SimulationContext); - const {weather} = simulation; + const {weather, apiOnly} = simulation; let {rain, wetness, fog, cloudiness} = weather || {}; const [formWarning, setFormWarning] = useState(''); function validNumberInput(val, min, max, ) { @@ -84,6 +84,7 @@ function FormWeather() { timeIntervals={30} dateFormat="HH:mm" timeCaption="Time" + disabled={apiOnly} />
@@ -101,7 +102,9 @@ function FormWeather() { min="0" max="1" step="0.01" - placeholder="rain"/> + placeholder="rain" + disabled={apiOnly} + />

@@ -118,7 +121,9 @@ function FormWeather() { min="0" max="1" step="0.01" - placeholder="wetness"/> + placeholder="wetness" + disabled={apiOnly} + />

@@ -135,7 +140,9 @@ function FormWeather() { min="0" max="1" step="0.01" - placeholder="fog"/> + placeholder="fog" + disabled={apiOnly} + />

@@ -152,7 +159,9 @@ function FormWeather() { min="0" max="1" step="0.01" - placeholder="cloudiness"/> + placeholder="cloudiness" + disabled={apiOnly} + />

{formWarning} )