1
0
forked from Clones/Controlify

reduce bow sensitivity option

This commit is contained in:
isXander
2023-03-26 22:32:53 +01:00
parent 09a2262faf
commit b426312a8e
5 changed files with 33 additions and 1 deletions

View File

@ -153,6 +153,12 @@ public class YACLHelper {
.tooltip(Component.translatable("controlify.gui.chat_screen_offset.tooltip"))
.binding(def.chatKeyboardHeight, () -> config.chatKeyboardHeight, v -> config.chatKeyboardHeight = v)
.controller(opt -> new FloatSliderController(opt, 0f, 0.8f, 0.1f, percentFormatter))
.build())
.option(Option.createBuilder(boolean.class)
.name(Component.translatable("controlify.gui.reduce_bow_sensitivity"))
.tooltip(Component.translatable("controlify.gui.reduce_bow_sensitivity.tooltip"))
.binding(def.reduceBowSensitivity, () -> config.reduceBowSensitivity, v -> config.reduceBowSensitivity = v)
.controller(TickBoxController::new)
.build());
if (controller instanceof GamepadController gamepad) {