diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-01 13:40:59 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-01 13:40:59 +0200 |
commit | 2f80fd07d3d6863c26bca21b46bd71cb467a2b1a (patch) | |
tree | 207d01f1305b8f8d0fcd5f65d89e8c7ee783ad6f /src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java | |
parent | eea8a7b60344637df1318b04e11ccf1cdc7c4c12 (diff) | |
parent | 9694fd2bf0aa538652b9c65472c5f2017efce195 (diff) | |
download | OneConfig-2f80fd07d3d6863c26bca21b46bd71cb467a2b1a.tar.gz OneConfig-2f80fd07d3d6863c26bca21b46bd71cb467a2b1a.tar.bz2 OneConfig-2f80fd07d3d6863c26bca21b46bd71cb467a2b1a.zip |
merge
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 7a0b6c1..a4f4a67 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 |