From d26888c47985ee99a63a957b10572b724f0349b0 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Mon, 25 Apr 2022 22:39:34 +0800 Subject: + option to disable scanning pets menu for pet (causing lag for some people) + beginning of draw line to next block in dojo (unfinished) + Ability to move dulkir slayer progress indicator alert thing --- features/hud/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'features/hud') diff --git a/features/hud/index.js b/features/hud/index.js index a4b8eb2..8c03e1e 100644 --- a/features/hud/index.js +++ b/features/hud/index.js @@ -95,6 +95,7 @@ class Hud extends Feature { .requires(this.petEnabledSetting) .editTempText("&6Pet&7> &7[Lvl 100] &aEnderman")) this.hudElements.push(this.petElement) + this.scanGuiForPet = new ToggleSetting("Scan pets menu gui for selected pet", "Only disable if you get a lot of lag in the pets menu", true, "scan_pets_menu", true).requires(this.petEnabledSetting) this.soulflowEnabledSetting = new ToggleSetting("Show Soulflow", "Whether the soulflow count is rendered onto the screen", true, "soulflow_enabled", this) this.soulflowShowWarningSetting = new ToggleSetting("Show no Talisman Warning", "Shows a warning if you dont have a soulflow talis in ur inv", true, "soulflow_notalis_warning", this).requires(this.soulflowEnabledSetting) @@ -441,7 +442,7 @@ class Hud extends Feature { this.cpsElement.setText("&6Cps&7> &f" + cpsText) //Scan opened inventory for all pet levels - if (Player && Player.getContainer() && Player.getContainer().getName().includes(") Pets")) { + if (this.scanGuiForPet.getValue() && Player && Player.getContainer() && Player.getContainer().getName().includes(") Pets")) { let inv = Player.getContainer().getItems() for (let i = 0; i < inv.length; i++) { if (inv[i] != null && inv[i].getName().includes("[Lvl ")) { -- cgit