Update GameActivityToggle.plugin.js
This commit is contained in:
parent
a672ada0c5
commit
2707e10b83
|
@ -2,7 +2,7 @@
|
|||
* @name GameActivityToggle
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.1.8
|
||||
* @version 1.1.9
|
||||
* @description Adds a Quick-Toggle Game Activity Button
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -174,7 +174,7 @@ module.exports = (_ => {
|
|||
basis: "50%",
|
||||
options: sounds.map(o => ({value: o, label: o.split(/[-_]/g).map(BDFDB.StringUtils.upperCaseFirstChar).join(" ")})),
|
||||
value: this.settings.selections[key],
|
||||
onChange: value => BDFDB.LibraryModules.SoundUtils.playSound(value, 0.4)
|
||||
onChange: value => BDFDB.DiscordUtils.playSound(value, .4)
|
||||
}));
|
||||
|
||||
settingsItems.push(BDFDB.ReactUtils.createElement("div", {
|
||||
|
@ -244,7 +244,7 @@ module.exports = (_ => {
|
|||
|
||||
toggle () {
|
||||
const shouldEnable = !BDFDB.DiscordUtils.getSetting("status", "showCurrentGame");
|
||||
this.settings.general[shouldEnable ? "playEnable" : "playDisable"] && BDFDB.LibraryModules.SoundUtils.playSound(this.settings.selections[shouldEnable ? "enableSound" : "disableSound"], .4);
|
||||
this.settings.general[shouldEnable ? "playEnable" : "playDisable"] && BDFDB.DiscordUtils.playSound(this.settings.selections[shouldEnable ? "enableSound" : "disableSound"], .4);
|
||||
BDFDB.DiscordUtils.setSetting("status", "showCurrentGame", shouldEnable);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue