aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-05-01 12:36:32 +0100
committernextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-05-01 12:36:32 +0100
commit60f1c29872465a25be4f2c4ca8c5eb1abf69f988 (patch)
tree6ae8f5a36d80106852478f670df9b45ae137dd20 /src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java
parent5514e4b97ab2a7a37bf25cf4a4a57baf8f94e052 (diff)
downloadOneConfig-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.java18
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