diff options
author | isXander <xandersmith2008@gmail.com> | 2024-01-19 17:05:59 +0000 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2024-01-19 17:05:59 +0000 |
commit | 5a147e615c3b66bd21fb2d07db11a83e5b9d64fb (patch) | |
tree | 94002a6b8a30be8dbc3c1368cb38f32401aa4d6f /test-common | |
parent | 5c110c8b525a051fc5bee0397e3c4a945fa0a129 (diff) | |
download | YetAnotherConfigLib-5a147e615c3b66bd21fb2d07db11a83e5b9d64fb.tar.gz YetAnotherConfigLib-5a147e615c3b66bd21fb2d07db11a83e5b9d64fb.tar.bz2 YetAnotherConfigLib-5a147e615c3b66bd21fb2d07db11a83e5b9d64fb.zip |
Finalise the image reloader
Diffstat (limited to 'test-common')
-rw-r--r-- | test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java | 18 | ||||
-rw-r--r-- | test-common/src/main/resources/assets/yacl3/textures/reach-around-placement.webp (renamed from test-common/src/main/resources/assets/yacl3/reach-around-placement.webp) | bin | 14840 -> 14840 bytes | |||
-rw-r--r-- | test-common/src/main/resources/assets/yacl3/textures/sample-1.webp | bin | 0 -> 10474 bytes | |||
-rw-r--r-- | test-common/src/main/resources/assets/yacl3/textures/sample-2.webp | bin | 0 -> 22308 bytes | |||
-rw-r--r-- | test-common/src/main/resources/assets/yacl3/textures/sample-3.webp | bin | 0 -> 17078 bytes | |||
-rw-r--r-- | test-common/src/main/resources/assets/yacl3/textures/sample-4.webp | bin | 0 -> 20772 bytes | |||
-rw-r--r-- | test-common/src/main/resources/assets/yacl3/textures/sample-5.webp | bin | 0 -> 11166 bytes |
7 files changed, 15 insertions, 3 deletions
diff --git a/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java b/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java index 52a51e1..f81db33 100644 --- a/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java +++ b/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java @@ -83,7 +83,7 @@ public class GuiTest { .append(Component.literal("e").withStyle(style -> style.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, Component.literal("e"))))) .withStyle(style -> style.withClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://isxander.dev"))) ) - .webpImage(new ResourceLocation("yacl3", "reach-around-placement.webp")) + .webpImage(new ResourceLocation("yacl3", "textures/reach-around-placement.webp")) .build()) .binding( defaults.booleanToggle, @@ -100,7 +100,7 @@ public class GuiTest { .name(Component.literal("Custom Boolean Toggle")) .description(val -> OptionDescription.createBuilder() .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")) // TODO: Add img file to git? + .webpImage(new ResourceLocation("yacl3", "textures/sample-1.webp")) .build()) .binding( defaults.customBooleanToggle, @@ -114,7 +114,10 @@ public class GuiTest { .build()) .option(Option.<Boolean>createBuilder() .name(Component.literal("Tick Box")) - .description(OptionDescription.of(Component.literal("There are even alternate methods of displaying the same data type!"))) + .description(OptionDescription.createBuilder() + .text(Component.literal("There are even alternate methods of displaying the same data type!")) + .webpImage(new ResourceLocation("yacl3", "textures/sample-2.webp")) + .build()) .binding( defaults.tickbox, () -> config.tickbox, @@ -127,6 +130,9 @@ public class GuiTest { .name(Component.literal("Slider Controllers")) .option(Option.<Integer>createBuilder() .name(Component.literal("Int Slider")) + .description(OptionDescription.createBuilder() + .webpImage(new ResourceLocation("yacl3", "textures/sample-3.webp")) + .build()) .binding( defaults.intSlider, () -> config.intSlider, @@ -136,6 +142,9 @@ public class GuiTest { .build()) .option(Option.<Double>createBuilder() .name(Component.literal("Double Slider")) + .description(OptionDescription.createBuilder() + .webpImage(new ResourceLocation("yacl3", "textures/sample-4.webp")) + .build()) .binding( defaults.doubleSlider, () -> config.doubleSlider, @@ -145,6 +154,9 @@ public class GuiTest { .build()) .option(Option.<Float>createBuilder() .name(Component.literal("Float Slider")) + .description(OptionDescription.createBuilder() + .webpImage(new ResourceLocation("yacl3", "textures/sample-5.webp")) + .build()) .binding( defaults.floatSlider, () -> config.floatSlider, diff --git a/test-common/src/main/resources/assets/yacl3/reach-around-placement.webp b/test-common/src/main/resources/assets/yacl3/textures/reach-around-placement.webp Binary files differindex 1937809..1937809 100644 --- a/test-common/src/main/resources/assets/yacl3/reach-around-placement.webp +++ b/test-common/src/main/resources/assets/yacl3/textures/reach-around-placement.webp diff --git a/test-common/src/main/resources/assets/yacl3/textures/sample-1.webp b/test-common/src/main/resources/assets/yacl3/textures/sample-1.webp Binary files differnew file mode 100644 index 0000000..0da983e --- /dev/null +++ b/test-common/src/main/resources/assets/yacl3/textures/sample-1.webp diff --git a/test-common/src/main/resources/assets/yacl3/textures/sample-2.webp b/test-common/src/main/resources/assets/yacl3/textures/sample-2.webp Binary files differnew file mode 100644 index 0000000..e887f8c --- /dev/null +++ b/test-common/src/main/resources/assets/yacl3/textures/sample-2.webp diff --git a/test-common/src/main/resources/assets/yacl3/textures/sample-3.webp b/test-common/src/main/resources/assets/yacl3/textures/sample-3.webp Binary files differnew file mode 100644 index 0000000..eda78a9 --- /dev/null +++ b/test-common/src/main/resources/assets/yacl3/textures/sample-3.webp diff --git a/test-common/src/main/resources/assets/yacl3/textures/sample-4.webp b/test-common/src/main/resources/assets/yacl3/textures/sample-4.webp Binary files differnew file mode 100644 index 0000000..8bbe329 --- /dev/null +++ b/test-common/src/main/resources/assets/yacl3/textures/sample-4.webp diff --git a/test-common/src/main/resources/assets/yacl3/textures/sample-5.webp b/test-common/src/main/resources/assets/yacl3/textures/sample-5.webp Binary files differnew file mode 100644 index 0000000..ed91379 --- /dev/null +++ b/test-common/src/main/resources/assets/yacl3/textures/sample-5.webp |