From 2792276924cf5e292211bc0d43dbc4cf3eb9c181 Mon Sep 17 00:00:00 2001 From: isXander Date: Thu, 25 May 2023 19:36:47 +0100 Subject: removed `.name()` from description, replaced with option name. also javadoc --- test-common/src/main/java/dev/isxander/yacl/test/GuiTest.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'test-common/src') 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()) -- cgit