diff options
| author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-02 17:06:44 +0200 |
|---|---|---|
| committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-02 17:06:44 +0200 |
| commit | 0ba6b9e25e5d69072b7a2496656818894864edb2 (patch) | |
| tree | 963fadeac722f739413a3bd7ea73eb58ed16b7c4 /src/main/java/io/polyfrost/oneconfig/config/annotations | |
| parent | 63633b2286bd8717f078131014199c6ccaa6a8e3 (diff) | |
| download | OneConfig-0ba6b9e25e5d69072b7a2496656818894864edb2.tar.gz OneConfig-0ba6b9e25e5d69072b7a2496656818894864edb2.tar.bz2 OneConfig-0ba6b9e25e5d69072b7a2496656818894864edb2.zip | |
back and forward buttons and breadcrumbs
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/config/annotations')
| -rw-r--r-- | src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java | 18 |
1 files changed, 11 insertions, 7 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 77831db..9955c17 100644 --- a/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java +++ b/src/main/java/io/polyfrost/oneconfig/config/annotations/Option.java @@ -31,6 +31,10 @@ public @interface Option { */ String subcategory(); + /** + * The width of the option (1 = half width, 2 = full width) + */ + int size() default 1; /** * A String array of all the possible values for the UniSelector, dropdownList, and ComboBox. @@ -40,9 +44,9 @@ public @interface Option { String[] options() default {}; /** - * The width of the option (1 = half width, 2 = full width) + * The places you want dividers to be in a dropdown */ - int size() default 1; + int[] dividers() default {}; /** * The placeholder in the text field @@ -60,11 +64,6 @@ public @interface Option { boolean multiLine() default false; /** - * Steps of slider (0 for no steps) - */ - int step() default 0; - - /** * Minimum value of slider */ float min() default 0; @@ -75,6 +74,11 @@ public @interface Option { float max() default 0; /** + * Steps of slider (0 for no steps) + */ + int step() default 0; + + /** * Option for info option type */ InfoType infoType() default InfoType.INFO; |
