diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-16 07:38:17 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-16 07:38:17 +0800 |
commit | d354c4f271110f78a8d5f01a542afd44d54bdf58 (patch) | |
tree | c8a8e878320fe57fcc2c2c12f0d5d5fd836c49ab | |
parent | 9c74f9fffe9d238b6a9f9f21367b7f2c08321309 (diff) | |
download | SoopyV2-d354c4f271110f78a8d5f01a542afd44d54bdf58.tar.gz SoopyV2-d354c4f271110f78a8d5f01a542afd44d54bdf58.tar.bz2 SoopyV2-d354c4f271110f78a8d5f01a542afd44d54bdf58.zip |
+ Dark theme setting
-rw-r--r-- | features/globalSettings/index.js | 3 | ||||
-rw-r--r-- | metadata.json | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index 89adc5c..4b6d679 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -40,6 +40,7 @@ class GlobalSettings extends Feature { this.findApiKey = new ButtonSetting("Attempt to load api key from other mods", "This will scan other mods configs to attempt to find your key", "find_key", this, "Click!", () => { this.findKey() }, undefined) this.fixNeuNetworth = new ToggleSetting("Change networth in NEU pv to soopynw", "This should make it a lot more accurate", true, "neu_nw_override", this) + this.darkTheme = new ToggleSetting("Dark theme", "This might be scuffed because guis are still made in light theme", false, "dark_theme", this) this.reportErrorsSetting = new ToggleSetting("Send module errors to soopy server", "This will allow me to more effectivly fix them", false, "privacy_send_errors", this) @@ -86,6 +87,8 @@ class GlobalSettings extends Feature { }) this.registerStep(false, 1, () => { if (Player.getContainer() && Player.getContainer().getName() === "Cookie Clicker v0.01" && Player.getContainer().getStackInSlot(13)) this.tickCookie() + + global.guiManagerSoopyGuisSetDarkThemeEnabled(this.darkTheme.getValue()) }) this.registerEvent("guiMouseClick", this.guiClicked) diff --git a/metadata.json b/metadata.json index 9418b04..2679463 100644 --- a/metadata.json +++ b/metadata.json @@ -5,8 +5,8 @@ "entry": "index.js", "description": "SoopyV2", "name": "SoopyV2", - "version": "2.1.78", - "versionId": 205, + "version": "2.1.79", + "versionId": 206, "requires": [ "soopyApis", "soopyAddonsData", |