diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-08-11 22:21:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-11 22:21:39 +0800 |
commit | cc714e8ae5397e6b451e9b50e36bfbead3d6ac41 (patch) | |
tree | 797f253083a62e6acedac9d29c15fb04f5cf5fbd | |
parent | fd9a1fe37623833e5c90642503ea96e220a14d7f (diff) | |
download | SoopyV2-cc714e8ae5397e6b451e9b50e36bfbead3d6ac41.tar.gz SoopyV2-cc714e8ae5397e6b451e9b50e36bfbead3d6ac41.tar.bz2 SoopyV2-cc714e8ae5397e6b451e9b50e36bfbead3d6ac41.zip |
changed how inGui thing works
-rw-r--r-- | features/globalSettings/index.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index 61d2173..12d5a26 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -200,6 +200,12 @@ class GlobalSettings extends Feature { } }) let todoText = []; + if (this.guiOpened) { + this.maxAmount = 0 + this.todoPickUpLog = {}; + } else if (!this.warpedAgain) { + this.maxAmount = 12 + } if (pick) { Object.keys(this.todoPickUpLog).forEach((i) => { if (Math.abs(this.todoPickUpLog[i].timeStamp - now) > 5000 || !this.todoPickUpLog[i].Amount || this.todoPickUpLog[i].Amount == 0) { @@ -212,9 +218,6 @@ class GlobalSettings extends Feature { } else { this.todoPickUpLog = {}; } - if (this.guiOpened) { - this.todoPickUpLog = {}; - } // doesn't need to put setText() in if (pick) cuz if (!pick) it clears the todo log list this.sbaItemPickUpLogElement.setText(todoText.join("\n")) }) |