Annotation Interface RangeNumberList
Renders a user-editable list of ranges with each row being a pair of number inputs
The annotated field must be a flat numeric array such as int[] or float[] or a List
of numbers holding each range's start then end so {0, 10, 20, 30} is the ranges 0-10 and 20-30
The field must hold an even number of values
See RangeSliderList for the slider variant
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionLabel of the button that appends a new rangeClass<? extends ValueFormatter> floatintMaximum number of ranges the user may add and0means unlimitedfloatbooleanAllow the user to drag ranges to reorder themfloatAmount the arrows on each input step by
-
Element Details
-
title
String title -
description
String description- Default:
""
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
subcategory
String subcategory- Default:
"General"
-
min
float min- Default:
0.0f
-
max
float max- Default:
100.0f
-
step
float stepAmount the arrows on each input step by- Default:
1.0f
-
maxEntries
int maxEntriesMaximum number of ranges the user may add and0means unlimited- Default:
0
-
reorderable
boolean reorderableAllow the user to drag ranges to reorder them- Default:
true
-
addText
String addTextLabel of the button that appends a new range- Default:
"Add"
-
formatter
Class<? extends ValueFormatter> formatter- Default:
org.polyfrost.oneconfig.api.config.v1.ValueFormatter.class
-