aboutsummaryrefslogtreecommitdiff
path: root/test-common/src/main
diff options
context:
space:
mode:
authorisXander <xandersmith2008@gmail.com>2023-05-22 19:33:00 +0100
committerisXander <xandersmith2008@gmail.com>2023-05-22 19:33:00 +0100
commitead0b794ac57e9ab2558338f7f3da7545d2e12ff (patch)
treed1c92f8d3283a8989923e038a377af4a00c24124 /test-common/src/main
parent590e69f4bf445a39737b0b1552cf116ff780d75e (diff)
downloadYetAnotherConfigLib-ead0b794ac57e9ab2558338f7f3da7545d2e12ff.tar.gz
YetAnotherConfigLib-ead0b794ac57e9ab2558338f7f3da7545d2e12ff.tar.bz2
YetAnotherConfigLib-ead0b794ac57e9ab2558338f7f3da7545d2e12ff.zip
scrollable navbar, group descriptions, auto-scroll descriptions
Diffstat (limited to 'test-common/src/main')
-rw-r--r--test-common/src/main/java/dev/isxander/yacl/test/GuiTest.java38
1 files changed, 33 insertions, 5 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 f274fe2..7c9cf9d 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
@@ -84,7 +84,7 @@ public class GuiTest {
.name(Component.literal("Custom Boolean Toggle"))
.description(OptionDescription.createBuilder()
.name(Component.literal("Custom Boolean Toggle"))
- .description(Component.literal("You can customize controllers like so! YACL is truly infinitely customizable!"))
+ .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())
.tooltip(Component.literal("You can customize these controllers like this!"))
@@ -283,10 +283,6 @@ public class GuiTest {
.initial(Component.literal("Initial label"))
.build())
.build())
- .category(PlaceholderCategory.createBuilder()
- .name(Component.literal("Placeholder Category"))
- .screen((client, yaclScreen) -> new RequireRestartScreen(yaclScreen))
- .build())
.category(ConfigCategory.createBuilder()
.name(Component.literal("Group Test"))
.option(Option.createBuilder(boolean.class)
@@ -332,6 +328,38 @@ public class GuiTest {
.build())
.build())
.build())
+ .category(ConfigCategory.createBuilder()
+ .name(Component.literal("Category Test"))
+ .option(LabelOption.create(Component.literal("This is a test category!")))
+ .build())
+ .category(ConfigCategory.createBuilder()
+ .name(Component.literal("Category Test"))
+ .option(LabelOption.create(Component.literal("This is a test category!")))
+ .build())
+ .category(ConfigCategory.createBuilder()
+ .name(Component.literal("Category Test"))
+ .option(LabelOption.create(Component.literal("This is a test category!")))
+ .build())
+ .category(ConfigCategory.createBuilder()
+ .name(Component.literal("Category Test"))
+ .option(LabelOption.create(Component.literal("This is a test category!")))
+ .build())
+ .category(ConfigCategory.createBuilder()
+ .name(Component.literal("Category Test"))
+ .option(LabelOption.create(Component.literal("This is a test category!")))
+ .build())
+ .category(ConfigCategory.createBuilder()
+ .name(Component.literal("Category Test"))
+ .option(LabelOption.create(Component.literal("This is a test category!")))
+ .build())
+ .category(ConfigCategory.createBuilder()
+ .name(Component.literal("Category Test"))
+ .option(LabelOption.create(Component.literal("This is a test category!")))
+ .build())
+ .category(PlaceholderCategory.createBuilder()
+ .name(Component.literal("Placeholder Category"))
+ .screen((client, yaclScreen) -> new RequireRestartScreen(yaclScreen))
+ .build())
.save(() -> {
Minecraft.getInstance().options.save();
ConfigTest.GSON.save();