mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-15 02:10:55 +00:00
Add audio
This commit is contained in:
parent
077207ca27
commit
7a4792e4e8
7 changed files with 243 additions and 4 deletions
|
|
@ -27,6 +27,8 @@ export function InspectorControls({
|
|||
setSpeedMultiplier,
|
||||
fov,
|
||||
setFov,
|
||||
audioEnabled,
|
||||
setAudioEnabled,
|
||||
} = useSettings();
|
||||
|
||||
return (
|
||||
|
|
@ -56,6 +58,17 @@ export function InspectorControls({
|
|||
/>
|
||||
<label htmlFor="fogInput">Fog?</label>
|
||||
</div>
|
||||
<div className="CheckboxField">
|
||||
<input
|
||||
id="audioInput"
|
||||
type="checkbox"
|
||||
checked={audioEnabled}
|
||||
onChange={(event) => {
|
||||
setAudioEnabled(event.target.checked);
|
||||
}}
|
||||
/>
|
||||
<label htmlFor="audioInput">Audio?</label>
|
||||
</div>
|
||||
<div className="Field">
|
||||
<label htmlFor="fovInput">FOV</label>
|
||||
<input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue