From cb70209f9d3dd26d282a4c21005eb59f2650edc9 Mon Sep 17 00:00:00 2001
From: smartfrigde <37928912+smartfrigde@users.noreply.github.com>
Date: Sun, 14 Jul 2024 11:50:02 +0200
Subject: [PATCH] functional settings
---
plugins/armcordSettings/index.js | 1 +
.../armcordSettings/pages/SettingsPage.jsx | 24 +++++++++++++++----
plugins/armcordSettings/settings.js | 3 ++-
3 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/plugins/armcordSettings/index.js b/plugins/armcordSettings/index.js
index baa0932..ce3bfd6 100644
--- a/plugins/armcordSettings/index.js
+++ b/plugins/armcordSettings/index.js
@@ -20,6 +20,7 @@ let settingsPages = [
export function onLoad() {
refreshSettings()
+ store.i18n = window.armcord.translations
log("ArmCord Settings")
settingsPages
}
diff --git a/plugins/armcordSettings/pages/SettingsPage.jsx b/plugins/armcordSettings/pages/SettingsPage.jsx
index e31ad83..9ff2715 100644
--- a/plugins/armcordSettings/pages/SettingsPage.jsx
+++ b/plugins/armcordSettings/pages/SettingsPage.jsx
@@ -10,10 +10,24 @@ export function SettingsPage() {
return(
<>
-
+
- set("armcordCSP", e)}>ArmCord CSP
- Vencord
+ set("armcordCSP", e)}>ArmCord CSP
+ Vencord
+ set("inviteWebsocket", e)}>Rich Presence
+
+ set("skipSplash", e)}>Skip splash screen
+ set("dynamicIcon", e)}>Dynamic icon
+ set("mobileMode", e)}>Mobile Mode
+
+ set("multiInstance", e)}>Multi Instance
+ set("minimizeToTray", e)}>Work in background
+ set("tray", e)}>Tray
+ set("startMinimized", e)}>Start minimized
+ set("smoothScroll", e)}>Smooth scrolling
+ set("autoScroll", e)}>Allow auto-scroll
+ set("spellcheck", e)}>Spellcheck
+
+ set("useLegacyCapturer", e)}>Use legacy capturer
>
- )
-}
+ )}
diff --git a/plugins/armcordSettings/settings.js b/plugins/armcordSettings/settings.js
index 5ba3251..b8c181e 100644
--- a/plugins/armcordSettings/settings.js
+++ b/plugins/armcordSettings/settings.js
@@ -4,6 +4,7 @@ export function refreshSettings() {
console.log(store.settings)
}
export function set(key, value) {
+ store.settings[key] = value;
+ console.log(store.settings[key])
armcord.settings.setConfig(key, value)
- refreshSettings()
}
\ No newline at end of file