aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-18 12:19:37 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-18 12:19:37 +0800
commit50c44f40e543ccf82f46bc4e8bb002aa847471e2 (patch)
treee129efff372bc0a57fc97789640101443a7a75ca /features
parent4f36ccbe179654be353c8837802d94254182ddd5 (diff)
downloadSoopyV2-50c44f40e543ccf82f46bc4e8bb002aa847471e2.tar.gz
SoopyV2-50c44f40e543ccf82f46bc4e8bb002aa847471e2.tar.bz2
SoopyV2-50c44f40e543ccf82f46bc4e8bb002aa847471e2.zip
+ option to send update avalible alerts on all updates (else it will send alerts less frequently)
! sending alerts less frequently will be the default from now on (idea behind this is u wont be alerted for every small feature i add, but u can still update to them if u want)
Diffstat (limited to 'features')
-rw-r--r--features/changeLogGUI/index.js12
-rw-r--r--features/globalSettings/index.js2
2 files changed, 13 insertions, 1 deletions
diff --git a/features/changeLogGUI/index.js b/features/changeLogGUI/index.js
index 44fc3bf..ffd826b 100644
--- a/features/changeLogGUI/index.js
+++ b/features/changeLogGUI/index.js
@@ -38,7 +38,14 @@ class ChangeLogGui extends Feature {
worldLoad() {
if (this.ChangelogPage.downloadableVersion === -1) return
- if (this.latestAnnouncedVersion < this.ChangelogPage.downloadableVersion) {
+
+
+ if (this.FeatureManager.features["globalSettings"] === undefined || this.FeatureManager.features["globalSettings"].class.alertAllUpdates === undefined) {
+ return
+ }
+ let alertBeta = this.FeatureManager.features["globalSettings"].class.alertAllUpdates.getValue()
+
+ if (this.latestAnnouncedVersion < alertBeta ? this.ChangelogPage.downloadableVersion : this.ChangelogPage.importantVersion) {
let version = ""
this.ChangelogPage.changelogData.forEach(data => {
@@ -81,6 +88,8 @@ class ChangelogPage extends GuiPage {
this.changelogData = []
this.downloadableVersion = -1
+ this.importantVersion = -1
+
let changelogTitle = new SoopyTextElement().setText("ยง0Changelog").setMaxTextScale(3).setLocation(0.1, 0.05, 0.8, 0.1)
this.pages[0].addChild(changelogTitle)
@@ -133,6 +142,7 @@ class ChangelogPage extends GuiPage {
this.changelogData = data.changelog.reverse()
this.downloadableVersion = data.downloadableVersion
+ this.importantVersion = data.importantVersion
this.updateText()
})
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index 00ec0ca..e92e513 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -38,6 +38,8 @@ class GlobalSettings extends Feature {
this.newApiKey = new ButtonSetting("Run /api new", "This is here so u dont need to exit and re-enter", "api_new_command", this, "Click!", this.apiNewCommand, undefined)
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.alertAllUpdates = new ToggleSetting("Send chat update avalible for all updates", "if off itll notify less", false, "alert_all_updates", this)
+
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.linkPreview = new ToggleSetting("Link preview", "Shows a preview of where a link will take you", true, "link_preview", this)