From 0ba6b9e25e5d69072b7a2496656818894864edb2 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Mon, 2 May 2022 17:06:44 +0200 Subject: back and forward buttons and breadcrumbs --- .../polyfrost/oneconfig/config/annotations/Option.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/main/java/io/polyfrost/oneconfig/config/annotations') 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 @@ -59,11 +63,6 @@ public @interface Option { */ boolean multiLine() default false; - /** - * Steps of slider (0 for no steps) - */ - int step() default 0; - /** * Minimum value of slider */ @@ -74,6 +73,11 @@ public @interface Option { */ float max() default 0; + /** + * Steps of slider (0 for no steps) + */ + int step() default 0; + /** * Option for info option type */ -- cgit