|
20 | 20 | * For more information, see the LICENSE file. |
21 | 21 | */ |
22 | 22 |
|
23 | | -package io.github.axolotlclient.modules.hud.gui.hud; |
| 23 | +package io.github.axolotlclient.modules.hud.gui.hud.simple; |
24 | 24 |
|
25 | 25 | import io.github.axolotlclient.AxolotlclientConfig.options.BooleanOption; |
26 | 26 | import io.github.axolotlclient.AxolotlclientConfig.options.Option; |
@@ -56,10 +56,8 @@ public class ToggleSprintHud extends SimpleTextHudEntry { |
56 | 56 | private final BooleanOption randomPlaceholder = new BooleanOption("randomPlaceholder", ID.getPath(), false); |
57 | 57 | private final StringOption placeholder = new StringOption("placeholder", ID.getPath(), "No keys pressed"); |
58 | 58 |
|
59 | | - private final KeyBind sprintToggle = new KeyBind("keys.kronhud.toggleSprint", GLFW.GLFW_KEY_K, |
60 | | - "keys.category.kronhud.keys"); |
61 | | - private final KeyBind sneakToggle = new KeyBind("keys.kronhud.toggleSneak", GLFW.GLFW_KEY_I, |
62 | | - "keys.category.kronhud.keys"); |
| 59 | + private final KeyBind sprintToggle = new KeyBind("key.toggleSprint", GLFW.GLFW_KEY_K, "category.axolotlclient"); |
| 60 | + private final KeyBind sneakToggle = new KeyBind("key.toggleSneak", GLFW.GLFW_KEY_I, "category.axolotlclient"); |
63 | 61 |
|
64 | 62 | @Getter |
65 | 63 | private final BooleanOption sprintToggled = new BooleanOption("sprintToggled", ID.getPath(), false); |
@@ -127,17 +125,17 @@ public boolean movable() { |
127 | 125 | @Override |
128 | 126 | public String getValue() { |
129 | 127 | if (client.options.sneakKey.isPressed()) { |
130 | | - return I18n.translate("texts.kronhud.togglesprint.sneaking_pressed"); |
| 128 | + return I18n.translate("axolotlclient.sneaking_pressed"); |
131 | 129 | } |
132 | 130 | if (client.options.sprintKey.isPressed()) { |
133 | | - return I18n.translate("texts.kronhud.togglesprint.sprinting_pressed"); |
| 131 | + return I18n.translate("axolotlclient.sprinting_pressed"); |
134 | 132 | } |
135 | 133 |
|
136 | 134 | if (toggleSneak.get() && sneakToggled.get()) { |
137 | | - return I18n.translate("texts.kronhud.togglesprint.sneaking_toggled"); |
| 135 | + return I18n.translate("axolotlclient.sneaking_toggled"); |
138 | 136 | } |
139 | 137 | if (toggleSprint.get() && sprintToggled.get()) { |
140 | | - return I18n.translate("texts.kronhud.togglesprint.sprinting_toggled"); |
| 138 | + return I18n.translate("axolotlclient.sprinting_toggled"); |
141 | 139 | } |
142 | 140 | return getPlaceholder(); |
143 | 141 | } |
|
0 commit comments