From 5812a095c231d271c4fdbb739d7693a6c1ebe40d Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 18 Jun 2022 17:20:10 +0800 Subject: + option to set the default for the keybind --- features/events/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'features/events') diff --git a/features/events/index.js b/features/events/index.js index 8d4ac4d..cba5528 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -10,6 +10,7 @@ import ToggleSetting from "../settings/settingThings/toggle"; import { fetch } from "../../utils/networkUtils" import ButtonSetting from "../settings/settingThings/button"; import { delay } from "../../utils/delayUtils"; +import TextSetting from "../settings/settingThings/textSetting"; let warpData = { "castle": [-250, 130, 45], @@ -74,9 +75,9 @@ class Events extends Feature { this.dingIndex = 0 this.dingSlope = [] - this.warpBindDefault = new ToggleSetting("Show cool title when someone's inquis spawned", "May be usefull for loot share", true, "inquis_ping_other", this) + this.warpBindDefault = new TextSetting("Default keybind", "Eg KEY_F", "KEY_F", "inquis_keybind_default", this, "", false) - this.warpBind = getKeyBindFromKey(Keyboard.KEY_F, "Warp to nearest location to burrial guess"); + this.warpBind = getKeyBindFromKey(Keyboard[warpBindDefault.getValue()], "Warp to nearest location to burrial guess"); this.slayerLocationDataH = {} this.todoE = [] -- cgit