From 5e0574b1cb6ef22bf70ce52a0c0e187450189c6c Mon Sep 17 00:00:00 2001 From: xander Date: Sun, 11 Sep 2022 21:52:12 +0100 Subject: 1.1.0 better search - now searches every category rather than the current one option flags - flags are pieces of code ran when certain options' changes are applied (makes required restart redundant) fix scaling problems - make GUI a lot better at scaling bump gradle wrapper --- src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/testmod/java/dev/isxander/yacl') diff --git a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java index b105ef4..d1ef4d0 100644 --- a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java +++ b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java @@ -50,7 +50,7 @@ public class ModMenuIntegration implements ModMenuApi { .name(Text.of("Control Examples")) .tooltip(Text.of("Example Category Description")) .group(OptionGroup.createBuilder() - .name(Text.of("Boolean Controllers but it has a super long name that needs to wrap")) + .name(Text.of("Boolean Controllers")) .tooltip(Text.of("Test!")) .collapsed(true) .option(Option.createBuilder(boolean.class) @@ -62,7 +62,7 @@ public class ModMenuIntegration implements ModMenuApi { (value) -> TestSettings.booleanToggle = value ) .controller(BooleanController::new) - .requiresRestart(true) + .flag(OptionFlag.GAME_RESTART) .build()) .option(Option.createBuilder(boolean.class) .name(Text.of("Custom Boolean Toggle")) -- cgit