From 19231489adc73aa7aa41c89ff90eaff6d9dd7bd4 Mon Sep 17 00:00:00 2001 From: nea Date: Mon, 4 Sep 2023 16:28:00 +0200 Subject: Add chat peeking keybinding --- src/main/kotlin/moe/nea/firmament/features/fixes/Fixes.kt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/kotlin/moe/nea/firmament/features/fixes') diff --git a/src/main/kotlin/moe/nea/firmament/features/fixes/Fixes.kt b/src/main/kotlin/moe/nea/firmament/features/fixes/Fixes.kt index 1077f31..acf23ba 100644 --- a/src/main/kotlin/moe/nea/firmament/features/fixes/Fixes.kt +++ b/src/main/kotlin/moe/nea/firmament/features/fixes/Fixes.kt @@ -20,6 +20,7 @@ object Fixes : FirmamentFeature { object TConfig : ManagedConfig(identifier) { val fixUnsignedPlayerSkins by toggle("player-skins") { true } val autoSprint by toggle("auto-sprint") { false } + val peekChat by keyBindingWithDefaultUnbound("peek-chat") } override val config: ManagedConfig @@ -35,4 +36,8 @@ object Fixes : FirmamentFeature { override fun onLoad() { } + + fun shouldPeekChat(): Boolean { + return TConfig.peekChat.isPressed(atLeast = true) + } } -- cgit