diff options
author | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-05-01 12:36:32 +0100 |
---|---|---|
committer | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-05-01 12:36:32 +0100 |
commit | 60f1c29872465a25be4f2c4ca8c5eb1abf69f988 (patch) | |
tree | 6ae8f5a36d80106852478f670df9b45ae137dd20 /src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java | |
parent | 5514e4b97ab2a7a37bf25cf4a4a57baf8f94e052 (diff) | |
download | OneConfig-60f1c29872465a25be4f2c4ca8c5eb1abf69f988.tar.gz OneConfig-60f1c29872465a25be4f2c4ca8c5eb1abf69f988.tar.bz2 OneConfig-60f1c29872465a25be4f2c4ca8c5eb1abf69f988.zip |
config elements
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java | 18 |
1 files changed, 12 insertions, 6 deletions
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 |