aboutsummaryrefslogtreecommitdiff
path: root/src/testmod/java/dev/isxander
diff options
context:
space:
mode:
authorxander <xander@isxander.dev>2022-09-10 13:45:27 +0100
committerxander <xander@isxander.dev>2022-09-10 19:09:09 +0100
commitaa98d07d08c738e32f7804d2d139eb3cdeb6bddb (patch)
treecfe33752f42a5b857a4e510c1cf270b911c97b93 /src/testmod/java/dev/isxander
parentc72f2d573ba425871642f2c5b98e7630c10c30fd (diff)
downloadYetAnotherConfigLib-aa98d07d08c738e32f7804d2d139eb3cdeb6bddb.tar.gz
YetAnotherConfigLib-aa98d07d08c738e32f7804d2d139eb3cdeb6bddb.tar.bz2
YetAnotherConfigLib-aa98d07d08c738e32f7804d2d139eb3cdeb6bddb.zip
improve expand minimize button in option groups
Diffstat (limited to 'src/testmod/java/dev/isxander')
-rw-r--r--src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java
index 9fd7d46..b105ef4 100644
--- a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java
+++ b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java
@@ -137,7 +137,11 @@ public class ModMenuIntegration implements ModMenuApi {
.build())
.option(Option.createBuilder(Color.class)
.name(Text.of("Color Option"))
- .binding(Binding.immutable(Color.red))
+ .binding(
+ Color.red,
+ () -> TestSettings.colorOption,
+ value -> TestSettings.colorOption = value
+ )
.controller(ColorController::new)
.build())
.build())
@@ -381,6 +385,7 @@ public class ModMenuIntegration implements ModMenuApi {
private static float floatSlider = 0;
private static long longSlider = 0;
private static String textField = "Hello";
+ private static Color colorOption = Color.red;
private static Alphabet enumOption = Alphabet.A;
private static boolean groupTestRoot = false;