From dc8b14ee18c1d8737a836ac3c6c510e8f46f46eb Mon Sep 17 00:00:00 2001 From: isXander Date: Mon, 29 May 2023 07:11:21 +0100 Subject: Rename `OptionDescription#description` to `text` as well as relevant builder methods --- test-common/src/main/java/dev/isxander/yacl/test/GuiTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 b0136ae..6937df2 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 @@ -61,7 +61,7 @@ public class GuiTest { .option(Option.createBuilder() .name(Component.literal("Boolean Toggle")) .description(OptionDescription.createBuilder() - .description(Component.empty() + .text(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"))))) .append(Component.literal("c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c").withStyle(style -> style.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, Component.literal("c"))))) @@ -81,7 +81,7 @@ public class GuiTest { .option(Option.createBuilder() .name(Component.literal("Custom Boolean Toggle")) .description(val -> OptionDescription.createBuilder() - .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.")) + .text(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()) .binding( -- cgit