diff options
| author | Natalia Spence <52349324+Septikai@users.noreply.github.com> | 2025-11-24 12:55:49 +0000 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-11-30 11:48:49 +0100 |
| commit | 15aedb39ea7f732c2ae24c11fc3d528965aeaac0 (patch) | |
| tree | 3f5b029939f81f0cc8cad814350eb25a29cb78eb /src/main/kotlin/features | |
| parent | 9e0b9393f696d2643a1353209bbc2923d11b5c6f (diff) | |
| download | Firmament-15aedb39ea7f732c2ae24c11fc3d528965aeaac0.tar.gz Firmament-15aedb39ea7f732c2ae24c11fc3d528965aeaac0.tar.bz2 Firmament-15aedb39ea7f732c2ae24c11fc3d528965aeaac0.zip | |
feat: add a toggle for sprint state hud
Diffstat (limited to 'src/main/kotlin/features')
| -rw-r--r-- | src/main/kotlin/features/fixes/Fixes.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/features/fixes/Fixes.kt b/src/main/kotlin/features/fixes/Fixes.kt index bb17536..ae4abd7 100644 --- a/src/main/kotlin/features/fixes/Fixes.kt +++ b/src/main/kotlin/features/fixes/Fixes.kt @@ -23,6 +23,7 @@ object Fixes { var autoSprint by toggle("auto-sprint") { false } val autoSprintKeyBinding by keyBindingWithDefaultUnbound("auto-sprint-keybinding") val autoSprintUnderWater by toggle("auto-sprint-underwater") { true } + var autoSprintHudToggle by toggle("auto-sprint-hud-toggle") { true } val autoSprintHud by position("auto-sprint-hud", 80, 10) { Vector2i() } val peekChat by keyBindingWithDefaultUnbound("peek-chat") val peekChatScroll by toggle("peek-chat-scroll") { false } @@ -48,7 +49,7 @@ object Fixes { @Subscribe fun onRenderHud(it: HudRenderEvent) { - if (!TConfig.autoSprintKeyBinding.isBound) return + if (!TConfig.autoSprintKeyBinding.isBound || !TConfig.autoSprintHudToggle) return it.context.pose().pushMatrix() TConfig.autoSprintHud.applyTransformations(it.context.pose()) it.context.drawString( |
