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 +++-- metadata.json | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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 = [] diff --git a/metadata.json b/metadata.json index f37cab2..7438034 100644 --- a/metadata.json +++ b/metadata.json @@ -5,8 +5,8 @@ "entry": "index.js", "description": "SoopyV2", "name": "SoopyV2", - "version": "2.1.102", - "versionId": 229, + "version": "2.1.103", + "versionId": 230, "requires": [ "soopyApis", "soopyAddonsData", -- cgit