From e4a1af5c855c380cd4dd6ee4f84b3580112d91da Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 6 Aug 2022 13:49:01 +0800 Subject: add dark theme toggle to first load page --- features/globalSettings/firstLoadPages.js | 2 +- features/globalSettings/index.js | 2 +- 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") || "{}") || {} -- cgit