blob: 06627254b267d7282544f666b5225ef798e9ef7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
import React from 'react'
import {
Checkbox,
} from 'app/common'
import AudioSelect from 'app/views/audio/components/audio.select'
export default function TileSoundForm({ tile, parent }) {
return (
<div>
<Checkbox
label="Sound effects"
name="has_audio"
className='short'
checked={tile.settings.has_audio}
onChange={parent.handleSettingsSelect}
/>
{tile.settings.has_audio && (
<div>
<div className='row single'>
<AudioSelect
title="On click"
name="audio_on_click_id"
selected={tile.settings.audio_on_click_id}
onChange={parent.handleSettingsSelect}
/>
</div>
{!!tile.settings.audio_on_click_id && (
<Checkbox
label="Navigate when audio finishes"
name="navigate_when_audio_finishes"
className='short'
checked={tile.settings.navigate_when_audio_finishes}
onChange={parent.handleSettingsSelect}
autoComplete="off"
/>
)}
<div className='row single'>
<AudioSelect
title="On hover"
name="audio_on_hover_id"
selected={tile.settings.audio_on_hover_id}
onChange={parent.handleSettingsSelect}
/>
</div>
</div>
)}
</div>
)
}
|