aboutsummaryrefslogtreecommitdiff
path: root/src/testmod/java/dev/isxander
diff options
context:
space:
mode:
authorxander <xander@isxander.dev>2022-09-03 17:23:55 +0100
committerxander <xander@isxander.dev>2022-09-03 17:24:03 +0100
commitb629229b96cb17b130f406893a219a7cd8c0e10f (patch)
tree9f56f3fae39e0a3dde220c8cea68aa0519bd0adc /src/testmod/java/dev/isxander
parent1d3c4c7b7426682e49562fc6d573a72b5889ad58 (diff)
downloadYetAnotherConfigLib-b629229b96cb17b130f406893a219a7cd8c0e10f.tar.gz
YetAnotherConfigLib-b629229b96cb17b130f406893a219a7cd8c0e10f.tar.bz2
YetAnotherConfigLib-b629229b96cb17b130f406893a219a7cd8c0e10f.zip
render current category as hovered not disabled
Diffstat (limited to 'src/testmod/java/dev/isxander')
-rw-r--r--src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java
index 3ba2a73..69d09b9 100644
--- a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java
+++ b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java
@@ -61,12 +61,6 @@ public class ModMenuIntegration implements ModMenuApi {
)
.controller(TickBoxController::new)
.build())
- .option(Option.createBuilder(boolean.class)
- .name(Text.of("Minecraft AutoJump"))
- .tooltip(Text.of("You can even bind minecraft options!"))
- .binding(Binding.minecraft(MinecraftClient.getInstance().options.getAutoJump()))
- .controller(TickBoxController::new)
- .build())
.build())
.group(OptionGroup.createBuilder()
.name(Text.of("Slider Controllers"))
@@ -118,11 +112,6 @@ public class ModMenuIntegration implements ModMenuApi {
)
.controller(EnumController::new)
.build())
- .option(Option.createBuilder(GraphicsMode.class)
- .name(Text.of("Minecraft Graphics Mode"))
- .binding(Binding.minecraft(MinecraftClient.getInstance().options.getGraphicsMode()))
- .controller(EnumController::new)
- .build())
.build())
.group(OptionGroup.createBuilder()
.name(Text.of("Buttons!"))
@@ -132,6 +121,21 @@ public class ModMenuIntegration implements ModMenuApi {
.controller(ActionController::new)
.build())
.build())
+ .group(OptionGroup.createBuilder()
+ .name(Text.of("Minecraft Bindings"))
+ .tooltip(Text.of("YACL can also bind Minecraft options!"))
+ .option(Option.createBuilder(boolean.class)
+ .name(Text.of("Minecraft AutoJump"))
+ .tooltip(Text.of("You can even bind minecraft options!"))
+ .binding(Binding.minecraft(MinecraftClient.getInstance().options.getAutoJump()))
+ .controller(TickBoxController::new)
+ .build())
+ .option(Option.createBuilder(GraphicsMode.class)
+ .name(Text.of("Minecraft Graphics Mode"))
+ .binding(Binding.minecraft(MinecraftClient.getInstance().options.getGraphicsMode()))
+ .controller(EnumController::new)
+ .build())
+ .build())
.build())
.category(ConfigCategory.createBuilder()
.name(Text.of("Group Test"))