From 60f1c29872465a25be4f2c4ca8c5eb1abf69f988 Mon Sep 17 00:00:00 2001 From: nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> Date: Sun, 1 May 2022 12:36:32 +0100 Subject: config elements --- .../polyfrost/oneconfig/config/annotations/Option.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java') diff --git a/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java b/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java index fe61a02..05505a9 100644 --- a/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java +++ b/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java @@ -31,13 +31,11 @@ public @interface Option { */ String subcategory(); - /** The name shown on the Left option of a DualOption slider. */ - String optionLeft() default "Option 1"; - /** The name shown on the Right option of a DualOption slider. */ - String optionRight() default "Option 2"; - - /** A String array of all the possible values for the UniSelector, dropdownList, and ComboBox */ + /** A String array of all the possible values for the UniSelector, dropdownList, and ComboBox. + * Also used in the DualOption slider, index 0 is the left, index 1 is the right; for example: + * {"Option 1", "Option 2"} + * */ String[] options() default {}; /** @@ -64,6 +62,14 @@ public @interface Option { * Steps of slider (0 for no steps) */ int step() default 0; + /** + * Minimum value of slider + */ + float min() default 0; + /** + * The maximum value of the slider + */ + float max() default 0; /** * Option for info option type -- cgit