aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-06 13:49:01 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-06 13:49:01 +0800
commite4a1af5c855c380cd4dd6ee4f84b3580112d91da (patch)
treef11d2a1b0ca551b65a62b95aebd7a991ab74be18
parenta5dbdbac4598852fce436a20155616634fc4718f (diff)
downloadSoopyV2-e4a1af5c855c380cd4dd6ee4f84b3580112d91da.tar.gz
SoopyV2-e4a1af5c855c380cd4dd6ee4f84b3580112d91da.tar.bz2
SoopyV2-e4a1af5c855c380cd4dd6ee4f84b3580112d91da.zip
add dark theme toggle to first load page
-rw-r--r--features/globalSettings/firstLoadPages.js2
-rw-r--r--features/globalSettings/index.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/features/globalSettings/firstLoadPages.js b/features/globalSettings/firstLoadPages.js
index 21d84a8..2975a69 100644
--- a/features/globalSettings/firstLoadPages.js
+++ b/features/globalSettings/firstLoadPages.js
@@ -24,7 +24,7 @@ class WelcomePage extends FirstLoadPage {
load() {
let y = 0
- this.guiPage.mainThing.privacySettings.forEach(setting => {
+ this.guiPage.mainThing.firstPageSettings.forEach(setting => {
setting = setting.getGuiObject()
setting.location.location.y.set(y, 0)
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index e53c3f9..12ff4c3 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -50,7 +50,7 @@ class GlobalSettings extends Feature {
this.twitchCommands = new ToggleSetting("Ingame twitch bot commands", "Allows u to use twitch bot commands ingame (eg -sa)", true, "twitch_commands_ingame", this)
this.itemWorth = new ToggleSetting("(Approximate) Item worth in lore", "Accounts for stuff like enchants/recombs ect", false, "item_worth", this)
- this.privacySettings = []
+ this.firstPageSettings = [this.darkTheme]
this.firstLoadPageData = JSON.parse(FileLib.read("soopyAddonsData", "soopyv2firstloaddata.json") || "{}") || {}