diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-26 01:03:41 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-26 01:03:41 +0800 |
commit | b396dea89d04f9307261a3852ea8547681e95f7f (patch) | |
tree | 1b4f332c0f6d32b70c6297898056bb2ff422cf3b /features/globalSettings | |
parent | d36dbde865aec68f7fd564977cdf8e9c5912edbe (diff) | |
download | SoopyV2-b396dea89d04f9307261a3852ea8547681e95f7f.tar.gz SoopyV2-b396dea89d04f9307261a3852ea8547681e95f7f.tar.bz2 SoopyV2-b396dea89d04f9307261a3852ea8547681e95f7f.zip |
Finish museum gui (except search bar)
Diffstat (limited to 'features/globalSettings')
-rw-r--r-- | features/globalSettings/index.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index 88a91ea..2b09c2d 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -33,7 +33,7 @@ class Hud 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.notifyNewVersion = new ToggleSetting("Notify when there is a new update", "Will notify you when there is a new version of soopyv2 avalible for download", false, "notify_update", this) + this.notifyNewVersion = new ToggleSetting("Notify when there is a new update", "Will notify you when there is a new version of soopyv2 avalible for download", true, "notify_update", this) //TODO: Make false by default when uploaded on ct website this.reportErrorsSetting = new ToggleSetting("Send module errors to soopy server", "This will allow me to more effectivly fix them", false, "privacy_send_errors", this) @@ -49,16 +49,17 @@ class Hud extends Feature { this.registerChat("&aYour new API key is &r&b${key}&r", this.newKey) - this.registerEvent("worldLoad", this.worldLoad) - this.ranFirstLoadThing = false - setTimeout(()=>{ - this.worldLoad.call(this) - }, 1000) + if(!this.firstLoadPageData.shown){ + while(!World || this.FeatureManager.finishedLoading){ + Thread.sleep(100) + } + this.showFirstLoadPage.call(this) + } } - worldLoad(){ + showFirstLoadPage(){ if(!this.ranFirstLoadThing && World && !this.firstLoadPageData.shown){ ChatLib.command("soopyv2 first_load_thing", true) this.ranFirstLoadThing = true |