diff options
author | nea <nea@nea.moe> | 2023-09-04 16:28:00 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-09-04 16:53:06 +0200 |
commit | 19231489adc73aa7aa41c89ff90eaff6d9dd7bd4 (patch) | |
tree | 2e6271775891e83dd33b244065c8771a2344191b /src/main/kotlin/moe/nea/firmament/features/fixes/Fixes.kt | |
parent | c912ee90d391c3a7c7f3535e7f3fd4a57caa2075 (diff) | |
download | firmament-19231489adc73aa7aa41c89ff90eaff6d9dd7bd4.tar.gz firmament-19231489adc73aa7aa41c89ff90eaff6d9dd7bd4.tar.bz2 firmament-19231489adc73aa7aa41c89ff90eaff6d9dd7bd4.zip |
Add chat peeking keybinding
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features/fixes/Fixes.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/features/fixes/Fixes.kt | 5 |
1 files changed, 5 insertions, 0 deletions
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) + } } |