diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-18 17:20:10 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-18 17:20:10 +0800 |
commit | 5812a095c231d271c4fdbb739d7693a6c1ebe40d (patch) | |
tree | 0797fb66c5302c95a524410abdba9805ddde62e9 /features | |
parent | 27bb9c9aa49368d0dad1d0813fe0067957a621eb (diff) | |
download | SoopyV2-5812a095c231d271c4fdbb739d7693a6c1ebe40d.tar.gz SoopyV2-5812a095c231d271c4fdbb739d7693a6c1ebe40d.tar.bz2 SoopyV2-5812a095c231d271c4fdbb739d7693a6c1ebe40d.zip |
+ option to set the default for the keybind
Diffstat (limited to 'features')
-rw-r--r-- | features/events/index.js | 5 |
1 files changed, 3 insertions, 2 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 = [] |