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 | |
| parent | 9e0b9393f696d2643a1353209bbc2923d11b5c6f (diff) | |
| download | Firmament-15aedb39ea7f732c2ae24c11fc3d528965aeaac0.tar.gz Firmament-15aedb39ea7f732c2ae24c11fc3d528965aeaac0.tar.bz2 Firmament-15aedb39ea7f732c2ae24c11fc3d528965aeaac0.zip | |
feat: add a toggle for sprint state hud
| -rw-r--r-- | src/main/kotlin/features/fixes/Fixes.kt | 3 | ||||
| -rw-r--r-- | translations/en_us.json | 2 |
2 files changed, 4 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( diff --git a/translations/en_us.json b/translations/en_us.json index 0700339..a11d4d6 100644 --- a/translations/en_us.json +++ b/translations/en_us.json @@ -163,6 +163,8 @@ "firmament.config.fixes": "Fixes", "firmament.config.fixes.auto-sprint": "Auto Sprint", "firmament.config.fixes.auto-sprint-hud": "Sprint State Hud", + "firmament.config.fixes.auto-sprint-hud-toggle": "Show Sprint State Hud", + "firmament.config.fixes.auto-sprint-hud-toggle.description": "Whether or not to show the sprint state hud", "firmament.config.fixes.auto-sprint-hud.description": "Show your current sprint state on your screen. Only visible if no auto sprint keybind is set.", "firmament.config.fixes.auto-sprint-keybinding": "Auto Sprint KeyBinding", "firmament.config.fixes.auto-sprint-keybinding.description": "Toggle auto sprint via this keybinding.", |
