aboutsummaryrefslogtreecommitdiff
path: root/src/features/specialMining/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-10-04 21:23:48 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-10-04 21:23:48 +0800
commit2d463dc118b0d73605906ae0c2e4419bf39e8571 (patch)
treeda97464dadad112db7975c35fa931b4bd5ee9be6 /src/features/specialMining/index.js
parent3a8cc7cc26ac3b48734b167d7ea2a6fef66cd513 (diff)
downloadSoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.tar.gz
SoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.tar.bz2
SoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.zip
+ fix game freeze on first dungeon of the day
+ (potential) fix memory leak when doing lots of /ct reload + add seperate setting for powder info on hud to rest of powder features
Diffstat (limited to 'src/features/specialMining/index.js')
-rw-r--r--src/features/specialMining/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/features/specialMining/index.js b/src/features/specialMining/index.js
index 8b13ac3..4c29acc 100644
--- a/src/features/specialMining/index.js
+++ b/src/features/specialMining/index.js
@@ -21,10 +21,11 @@ class PowderAndScatha extends Feature {
this.compactedChat = new ToggleSetting("Compact Powder Messages", "same as the one in skytils but support following setting", false, "compact_powder_chat", this)
this.fixChatForDoublePowder = new ToggleSetting("Fix Chat Messages During Double Powder", "so it's the correct amount of powder you received during the event", false, "fix_chat_dpowder", this)
this.fixChatForDoublePowderSuffix = new TextSetting("Suffix of previous message", "(so you can tell whether it's 2x powder) change it yourself!", "&a(&b2X Powder&a)", "chat_dpowder_suffix", this, "(none)", false).requires(this.fixChatForDoublePowder);
- this.PowderElement = new ToggleSetting("Powder Mining Info Hud (MAIN TOGGLE)", "This will show your current powder mining section (only in CH)", true, "powder_mining_hud", this).contributor("EmeraldMerchant");
+ this.PowderElement = new ToggleSetting("Powder Mining Features (MAIN TOGGLE)", "", true, "powder_mining_hud", this).contributor("EmeraldMerchant");
+ this.PowderHudElement = new ToggleSetting("Powder info on hud", "This will show your current powder mining section (only in CH)", true, "powder_gui_element", this).requires(this.PowderElement)
this.PowderOverlayElement = new HudTextElement()
.setText("")
- .setToggleSetting(this.PowderElement)
+ .setToggleSetting(this.PowderHudElement)
.setLocationSetting(new LocationSetting("Powder Mining Info Hud Location", "Allows you to edit the location of Powder Mining Info Hud", "powder_mining_hud_location", this, [10, 50, 1, 1]).requires(this.PowderElement).editTempText(`&b2x Powder: &cINACTIVE\n&aChests: &b32\n&bMithril: &d12,768\n&bGems: &d21,325`).contributor("EmeraldMerchant"));
this.hudElements.push(this.PowderOverlayElement);
this.PowderOverlayElement.disableRendering()