aboutsummaryrefslogtreecommitdiff
path: root/src/testmod/java/dev/isxander
diff options
context:
space:
mode:
authorisXander <isxander@users.noreply.github.com>2022-09-18 22:25:56 +0100
committerisXander <isxander@users.noreply.github.com>2022-09-18 22:25:56 +0100
commit4936ff3f170a4dba808e41169bf13cfa046f0769 (patch)
tree6e790de73fee90fc7d85d2354a90133593b54442 /src/testmod/java/dev/isxander
parent405576acaa6e4a9887040a296f8988422351ea3e (diff)
downloadYetAnotherConfigLib-4936ff3f170a4dba808e41169bf13cfa046f0769.tar.gz
YetAnotherConfigLib-4936ff3f170a4dba808e41169bf13cfa046f0769.tar.bz2
YetAnotherConfigLib-4936ff3f170a4dba808e41169bf13cfa046f0769.zip
instant application property
Diffstat (limited to 'src/testmod/java/dev/isxander')
-rw-r--r--src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java6
1 files changed, 5 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 944246d..aca966b 100644
--- a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java
+++ b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java
@@ -96,10 +96,14 @@ public class ModMenuIntegration implements ModMenuApi {
.name(Text.of("Slider Controllers"))
.option(Option.createBuilder(int.class)
.name(Text.of("Int Slider that is cut off because the slider"))
+ .instant(true)
.binding(
0,
() -> TestSettings.intSlider,
- (value) -> TestSettings.intSlider = value
+ (value) -> {
+ TestSettings.intSlider = value;
+ System.out.println("Set int value!");
+ }
)
.controller(opt -> new IntegerSliderController(opt, 0, 3, 1))
.build())