This commit is contained in:
Mirco Wittrien 2020-10-15 12:54:49 +02:00
parent 7c07519e9b
commit 115c65ca17
2 changed files with 48 additions and 45 deletions

View File

@ -5749,6 +5749,7 @@ module.exports = (_ => {
className: BDFDB.DOMUtils.formatClassName(this.props.className, BDFDB.disCN.modalfooter), className: BDFDB.DOMUtils.formatClassName(this.props.className, BDFDB.disCN.modalfooter),
direction: this.props.direction || InternalComponents.LibraryComponents.Flex.Direction.HORIZONTAL_REVERSE, direction: this.props.direction || InternalComponents.LibraryComponents.Flex.Direction.HORIZONTAL_REVERSE,
align: InternalComponents.LibraryComponents.Flex.Align.STRETCH, align: InternalComponents.LibraryComponents.Flex.Align.STRETCH,
grow: 0,
children: this.props.children children: this.props.children
}); });
} }

View File

@ -5,13 +5,12 @@ module.exports = (_ => {
"info": { "info": {
"name": "NotificationSounds", "name": "NotificationSounds",
"author": "DevilBro", "author": "DevilBro",
"version": "3.5.0", "version": "3.5.1",
"description": "Allows you to replace the native sounds of Discord with your own." "description": "Allows you to replace the native sounds of Discord with your own."
}, },
"changeLog": { "changeLog": {
"fixed": { "added": {
"Streamer Mode": "No longer plays sound while in streamer mode", "Halloween": "Added discord's halloween call sound to the choices"
"Output Device": "Now uses your choosen output device same as native discord"
} }
} }
}; };
@ -72,6 +71,7 @@ module.exports = (_ => {
"call_calling": {implemented:true, name:"Outgoing Call", src:"/assets/c6e92752668dde4eee5923d70441579f.mp3", mute:false, focus:null, include:true}, "call_calling": {implemented:true, name:"Outgoing Call", src:"/assets/c6e92752668dde4eee5923d70441579f.mp3", mute:false, focus:null, include:true},
"call_ringing": {implemented:true, name:"Incoming Call", src:"/assets/84a1b4e11d634dbfa1e5dd97a96de3ad.mp3", mute:true, focus:null, include:true}, "call_ringing": {implemented:true, name:"Incoming Call", src:"/assets/84a1b4e11d634dbfa1e5dd97a96de3ad.mp3", mute:true, focus:null, include:true},
"call_ringing_beat": {implemented:false, name:"Incoming Call Beat", src:"/assets/b9411af07f154a6fef543e7e442e4da9.mp3", mute:true, focus:null, include:true}, "call_ringing_beat": {implemented:false, name:"Incoming Call Beat", src:"/assets/b9411af07f154a6fef543e7e442e4da9.mp3", mute:true, focus:null, include:true},
"call_ringing_halloween": {implemented:false, name:"Incoming Call Halloween", src:"/assets/bceeb2ba92c01584dcaafc957f769bae.mp3", mute:true, focus:null, include:true},
"stream_started": {implemented:true, name:"Stream Started", src:"/assets/9ca817f41727edc1b2f1bc4f1911107c.mp3", mute:false, focus:null, include:true}, "stream_started": {implemented:true, name:"Stream Started", src:"/assets/9ca817f41727edc1b2f1bc4f1911107c.mp3", mute:false, focus:null, include:true},
"stream_ended": {implemented:true, name:"Stream Ended", src:"/assets/4e30f98aa537854f79f49a76af822bbc.mp3", mute:false, focus:null, include:true}, "stream_ended": {implemented:true, name:"Stream Ended", src:"/assets/4e30f98aa537854f79f49a76af822bbc.mp3", mute:false, focus:null, include:true},
"stream_user_joined": {implemented:true, name:"Stream User Joined", src:"/assets/5827bbf9a67c61cbb0e02ffbf434b654.mp3", mute:false, focus:null, include:true}, "stream_user_joined": {implemented:true, name:"Stream User Joined", src:"/assets/5827bbf9a67c61cbb0e02ffbf434b654.mp3", mute:false, focus:null, include:true},
@ -267,10 +267,12 @@ module.exports = (_ => {
else e.callOriginalMethod(); else e.callOriginalMethod();
}}); }});
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.SoundUtils, "createSound", {after: e => { BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.SoundUtils, "createSound", {after: e => {
let type = e.methodArguments[0]; if (choices[e.methodArguments[0]]) {
let audio = new WebAudioSound(type); let audio = new WebAudioSound(e.methodArguments[0]);
createdAudios[type] = audio; createdAudios[e.methodArguments[0]] = audio;
return audio; return audio;
}
else BDFDB.LogUtils.warn(`Could not create sound for "${e.methodArguments[0]}".`, this.name);
}}); }});