サウンド設定など
This commit is contained in:
parent
f456feb3ff
commit
e7205d9cc2
18 changed files with 125 additions and 17 deletions
|
@ -21,6 +21,11 @@ export default Vue.extend({
|
|||
},
|
||||
antenna: {
|
||||
required: false
|
||||
},
|
||||
sound: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -46,6 +51,12 @@ export default Vue.extend({
|
|||
|
||||
const prepend = note => {
|
||||
(this.$refs.tl as any).prepend(note);
|
||||
|
||||
if (this.sound) {
|
||||
const audio = new Audio(`/assets/sounds/${this.$store.state.device.sfxNote}.mp3`);
|
||||
audio.volume = this.$store.state.device.sfxVolume;
|
||||
audio.play();
|
||||
}
|
||||
};
|
||||
|
||||
const onUserAdded = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue