diff options
author | isXander <xandersmith2008@gmail.com> | 2023-05-25 19:36:47 +0100 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2023-05-25 19:36:47 +0100 |
commit | 2792276924cf5e292211bc0d43dbc4cf3eb9c181 (patch) | |
tree | d041268817a8c73ffa1f9a2a2a65f968c3be1ab6 /test-common/src | |
parent | aba5085302c6ad8eec1aa9ed25a9a86758d95d34 (diff) | |
download | YetAnotherConfigLib-2792276924cf5e292211bc0d43dbc4cf3eb9c181.tar.gz YetAnotherConfigLib-2792276924cf5e292211bc0d43dbc4cf3eb9c181.tar.bz2 YetAnotherConfigLib-2792276924cf5e292211bc0d43dbc4cf3eb9c181.zip |
removed `.name()` from description, replaced with option name. also javadoc
Diffstat (limited to 'test-common/src')
-rw-r--r-- | test-common/src/main/java/dev/isxander/yacl/test/GuiTest.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/test-common/src/main/java/dev/isxander/yacl/test/GuiTest.java b/test-common/src/main/java/dev/isxander/yacl/test/GuiTest.java index 7175bcc..b0fe846 100644 --- a/test-common/src/main/java/dev/isxander/yacl/test/GuiTest.java +++ b/test-common/src/main/java/dev/isxander/yacl/test/GuiTest.java @@ -58,11 +58,9 @@ public class GuiTest { .tooltip(Component.literal("Example Category Description")) .group(OptionGroup.createBuilder() .name(Component.literal("Boolean Controllers")) - .tooltip(Component.literal("Test!")) .option(Option.createBuilder(boolean.class) .name(Component.literal("Boolean Toggle")) .description(OptionDescription.createBuilder() - .name(Component.literal("Boolean Toggle")) .description(Component.empty() .append(Component.literal("a").withStyle(style -> style.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, Component.literal("a"))))) .append(Component.literal("b").withStyle(style -> style.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, Component.literal("b"))))) @@ -83,7 +81,6 @@ public class GuiTest { .option(Option.createBuilder(boolean.class) .name(Component.literal("Custom Boolean Toggle")) .description(val -> OptionDescription.createBuilder() - .name(Component.literal("Custom Boolean Toggle " + val)) .description(Component.literal("You can customize controllers like so! YACL is truly infinitely customizable! This tooltip is long in order to demonstrate the cool, smooth scrolling of these descriptions. Did you know, they are also super clickable?! I know, cool right, YACL 3.x really is amazing.")) .image(Path.of("D:\\Xander\\Downloads\\_MG_0860-Enhanced-NR.png"), new ResourceLocation("yacl", "f.webp")) .build()) |