diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-10 01:03:41 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-10 01:03:41 +0100 |
commit | 6489b04f1e9fa0861985bf8b320bb4660115c2a8 (patch) | |
tree | 122109786bbfaee61fb5b37cfdd3bb96fd40f29d /src/main/java/at/hannibal2 | |
parent | 1459109eb0aea3906652a1c9af25e36e675a5860 (diff) | |
download | skyhanni-6489b04f1e9fa0861985bf8b320bb4660115c2a8.tar.gz skyhanni-6489b04f1e9fa0861985bf8b320bb4660115c2a8.tar.bz2 skyhanni-6489b04f1e9fa0861985bf8b320bb4660115c2a8.zip |
Added separate debug hotkey for Bypass Advanced Tab List.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java | 5 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java index bdce11628..7aba8033b 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java @@ -91,4 +91,9 @@ public class DebugConfig { "show the total amount in console output.") @ConfigEditorBoolean public boolean eventCounter = false; + + @Expose + @ConfigOption(name = "Bypass Advanced Tab List", desc = "The Advaced Player Tab list is disabled whie pressing this hotkey.") + @ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE) + public int bypassAdvancedPlayerTabList = Keyboard.KEY_NONE; } diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt index dcecba5ff..ab2b31777 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt @@ -10,7 +10,7 @@ import at.hannibal2.skyhanni.events.RepositoryReloadEvent import at.hannibal2.skyhanni.features.bingo.BingoAPI import at.hannibal2.skyhanni.features.misc.MarkedPlayerManager import at.hannibal2.skyhanni.test.SkyHanniDebugsAndTests -import at.hannibal2.skyhanni.utils.KeyboardManager +import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyHeld import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher @@ -140,7 +140,7 @@ object AdvancedPlayerList { } fun ignoreCustomTabList(): Boolean { - val denyKeyPressed = SkyHanniMod.feature.dev.debug.enabled && KeyboardManager.isModifierKeyDown() + val denyKeyPressed = SkyHanniMod.feature.dev.debug.bypassAdvancedPlayerTabList.isKeyHeld() return denyKeyPressed || !SkyHanniDebugsAndTests.globalRender } |