diff options
author | isXander <xander@isxander.dev> | 2023-05-29 07:11:21 +0100 |
---|---|---|
committer | isXander <xander@isxander.dev> | 2023-05-29 07:11:21 +0100 |
commit | dc8b14ee18c1d8737a836ac3c6c510e8f46f46eb (patch) | |
tree | 7f2a722fecdf2346eba60eeb770c856c737b3ced /test-common/src/main/java/dev/isxander/yacl | |
parent | 0774170cda931fcee000d1ceeb633c28b73b43bd (diff) | |
download | YetAnotherConfigLib-dc8b14ee18c1d8737a836ac3c6c510e8f46f46eb.tar.gz YetAnotherConfigLib-dc8b14ee18c1d8737a836ac3c6c510e8f46f46eb.tar.bz2 YetAnotherConfigLib-dc8b14ee18c1d8737a836ac3c6c510e8f46f46eb.zip |
Rename `OptionDescription#description` to `text` as well as relevant builder methods
Diffstat (limited to 'test-common/src/main/java/dev/isxander/yacl')
-rw-r--r-- | test-common/src/main/java/dev/isxander/yacl/test/GuiTest.java | 4 |
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( |