diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-18 12:19:37 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-18 12:19:37 +0800 |
commit | 50c44f40e543ccf82f46bc4e8bb002aa847471e2 (patch) | |
tree | e129efff372bc0a57fc97789640101443a7a75ca /features/changeLogGUI | |
parent | 4f36ccbe179654be353c8837802d94254182ddd5 (diff) | |
download | SoopyV2-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/changeLogGUI')
-rw-r--r-- | features/changeLogGUI/index.js | 12 |
1 files changed, 11 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() }) |