From 4f36ccbe179654be353c8837802d94254182ddd5 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 18 Jun 2022 12:10:46 +0800 Subject: +profile selection to networth and statgraphs pages --- features/events/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'features/events') diff --git a/features/events/index.js b/features/events/index.js index c98eb32..632be08 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -8,6 +8,7 @@ import { calculateDistanceQuick } from "../../utils/utils"; import SettingBase from "../settings/settingThings/settingBase"; import ToggleSetting from "../settings/settingThings/toggle"; import { fetch } from "../../utils/networkUtils" +import ButtonSetting from "../settings/settingThings/button"; class Events extends Feature { constructor() { @@ -33,7 +34,9 @@ class Events extends Feature { this.loadFromParticles = new ToggleSetting("Load burrials from particles", "Will load particles from burrows in the world", true, "burrial_from_partles", this) this.showBurrialGuess = new ToggleSetting("Estimate burrial location from ability", "Will show a line + box where it thinks the burrial is", true, "burrial_guess", this) - new SettingBase("NOTE: You must have music disabled for burrial guessess to work", "/togglemusic", false, "burrial_guess_into", this).requires(this.showBurrialGuess) + new ButtonSetting("NOTE: You must have music disabled", "for burrial guessess to work (/togglemusic)", "togglemusis_button", this, "click", () => { + ChatLib.command("togglemusic") + }, false).requires(this.showBurrialGuess) this.otherInquisWaypoints = new ToggleSetting("Show other users inquis locations", "May be usefull for loot share", true, "inquis_location_other", this) this.otherInquisPing = new ToggleSetting("Show cool title when someone's inquis spawned", "May be usefull for loot share", true, "inquis_ping_other", this) -- cgit