aboutsummaryrefslogtreecommitdiff
path: root/test-common/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'test-common/src/main')
-rw-r--r--test-common/src/main/java/dev/isxander/yacl/test/GuiTest.java4
1 files changed, 2 insertions, 2 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 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.<Boolean>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.<Boolean>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(