From 50c44f40e543ccf82f46bc4e8bb002aa847471e2 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 18 Jun 2022 12:19:37 +0800 Subject: + 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) --- features/changeLogGUI/index.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'features/changeLogGUI') 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() }) -- cgit