From dcbfb0d90da5f7e55f0e18de577e2589e7601db6 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:32:43 -0400 Subject: [PATCH 1/2] Fix Settings --- src/equicordplugins/soundBoardLogger/settings.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/equicordplugins/soundBoardLogger/settings.tsx b/src/equicordplugins/soundBoardLogger/settings.tsx index b53bf7fa..59d7c991 100644 --- a/src/equicordplugins/soundBoardLogger/settings.tsx +++ b/src/equicordplugins/soundBoardLogger/settings.tsx @@ -85,11 +85,14 @@ const settings = definePluginSettings({ default: 0.5, markers: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1] }, - showLogsButton: { - default: true, - type: OptionType.BOOLEAN, - description: "Toggle to whenever show the toolbox or not", - restartNeeded: true, + IconLocation: { + description: "choose where to show the SoundBoard Log icon (requires restart)", + type: OptionType.SELECT, + options: [ + { label: "Toolbar", value: "toolbar", default: true }, + { label: "Chat input", value: "chat" } + ], + restartNeeded: true }, }); From a620750f8f61e3c32f1161f570fd92c6ae28b4b4 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:33:25 -0400 Subject: [PATCH 2/2] I can dream --- src/equicordplugins/soundBoardLogger/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/equicordplugins/soundBoardLogger/index.tsx b/src/equicordplugins/soundBoardLogger/index.tsx index 06d9370c..18756c6f 100644 --- a/src/equicordplugins/soundBoardLogger/index.tsx +++ b/src/equicordplugins/soundBoardLogger/index.tsx @@ -28,7 +28,7 @@ export default definePlugin({ predicate: () => settings.store.IconLocation === "toolbar", find: "toolbar:function", replacement: { - match: /(function \i\(\i\){)(.{1,200}toolbar.{1,100}mobileToolbar)/, + match: /(function \i\(\i\){)(.{1,200}toolbar.{1,200}mobileToolbar)/, replace: "$1$self.addSBIconToToolBar(arguments[0]);$2" } }