aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/kotlin/features/fixes/Fixes.kt3
-rw-r--r--translations/en_us.json2
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.",