From b45c9417a422827b351c8a797fd158f885b3ce05 Mon Sep 17 00:00:00 2001 From: isXander Date: Sat, 12 Aug 2023 14:37:23 +0100 Subject: Allow unavailable options to be focused but not interacted with. Improves UX on arrow key navigation so you can read the description even if you can't change it. --- test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'test-common/src/main/java/dev') diff --git a/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java b/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java index fbe24de..634c2ce 100644 --- a/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java +++ b/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java @@ -94,6 +94,7 @@ public class GuiTest { .controller(opt -> BooleanControllerBuilder.create(opt) .valueFormatter(state -> state ? Component.literal("Amazing") : Component.literal("Not Amazing")) .coloured(true)) + .available(false) .build()) .option(Option.createBuilder(boolean.class) .name(Component.literal("Tick Box")) -- cgit