diff options
author | isXander <xandersmith2008@gmail.com> | 2023-04-21 22:59:08 +0100 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2023-04-21 22:59:08 +0100 |
commit | 25f8d0bacf274870c512cb6b867a55af57714fb5 (patch) | |
tree | b772d3ca4103eef7544c44b7248088b3a10e18ff /src/testmod | |
parent | 74bcc11c74f864eda2f5e48a3c038846c20065ba (diff) | |
download | YetAnotherConfigLib-25f8d0bacf274870c512cb6b867a55af57714fb5.tar.gz YetAnotherConfigLib-25f8d0bacf274870c512cb6b867a55af57714fb5.tar.bz2 YetAnotherConfigLib-25f8d0bacf274870c512cb6b867a55af57714fb5.zip |
prioritise tooltip rendering above & filter empty tooltips
Diffstat (limited to 'src/testmod')
-rw-r--r-- | src/testmod/java/dev/isxander/yacl/test/config/GuiTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testmod/java/dev/isxander/yacl/test/config/GuiTest.java b/src/testmod/java/dev/isxander/yacl/test/config/GuiTest.java index 1ab4f1d..18d2a3c 100644 --- a/src/testmod/java/dev/isxander/yacl/test/config/GuiTest.java +++ b/src/testmod/java/dev/isxander/yacl/test/config/GuiTest.java @@ -57,7 +57,6 @@ public class GuiTest { .group(OptionGroup.createBuilder() .name(Component.literal("Boolean Controllers")) .tooltip(Component.literal("Test!")) - .collapsed(true) .option(Option.createBuilder(boolean.class) .name(Component.literal("Boolean Toggle")) .tooltip(value -> Component.literal("A simple toggle button that contains the value '" + value + "'")) @@ -72,6 +71,8 @@ public class GuiTest { .option(Option.createBuilder(boolean.class) .name(Component.literal("Custom Boolean Toggle")) .tooltip(Component.literal("You can customize these controllers like this!")) + .tooltip(Component.empty()) + .tooltip(opt -> Component.empty()) .binding( defaults.customBooleanToggle, () -> config.customBooleanToggle, |