aboutsummaryrefslogtreecommitdiff
path: root/test-common/src/main/java/dev
diff options
context:
space:
mode:
authorisXander <xandersmith2008@gmail.com>2023-08-12 14:37:23 +0100
committerisXander <xandersmith2008@gmail.com>2023-08-12 14:39:00 +0100
commitb45c9417a422827b351c8a797fd158f885b3ce05 (patch)
tree5b4bc5e18b399f19a964a00c5b84f39f74779fd7 /test-common/src/main/java/dev
parentff6b36987d1c149a9f1b7e1b23748cb581b8fa6f (diff)
downloadYetAnotherConfigLib-b45c9417a422827b351c8a797fd158f885b3ce05.tar.gz
YetAnotherConfigLib-b45c9417a422827b351c8a797fd158f885b3ce05.tar.bz2
YetAnotherConfigLib-b45c9417a422827b351c8a797fd158f885b3ce05.zip
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.
Diffstat (limited to 'test-common/src/main/java/dev')
-rw-r--r--test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java1
1 files changed, 1 insertions, 0 deletions
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"))