Annotation Interface SliderList
Renders a user-editable list of numbers with each row being a slider with a value field beside it
The annotated field must be a numeric array such as int[] or float[] or
double[] or long[] or a List of numbers
See NumberList for how the element type is decided and for the plain number-input variant
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionLabel of the button that appends a new entrybooleanDeprecated.OneConfig auto-translates addText values that are translation keys so pass the key directlyClass<? extends SliderBounds> booleanDeprecated.OneConfig auto-translates category values that are translation keys so pass the key directlybooleanDeprecated.OneConfig auto-translates description values that are translation keys so pass the key directlyClass<? extends ValueFormatter> booleanfloatintMaximum number of entries the user may add and0means unlimitedfloatbooleanAllow the user to drag entries to reorder themfloatValue the slider snaps to multiples of and0slides continuouslybooleanDeprecated.translation keys will be translated by defaultbooleanDeprecated.OneConfig auto-translates title values that are translation keys so pass the key directly
-
Element Details
-
title
String title -
titleTranslation
Deprecated.OneConfig auto-translates title values that are translation keys so pass the key directly- Default:
false
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.OneConfig auto-translates description values that are translation keys so pass the key directly- Default:
false
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
categoryTranslation
Deprecated.OneConfig auto-translates category values that are translation keys so pass the key directly- Default:
false
-
subcategory
String subcategory- Default:
"General"
-
subcategoryTranslation
Deprecated.translation keys will be translated by default- Default:
false
-
min
float min- Default:
0.0f
-
max
float max- Default:
100.0f
-
step
float stepValue the slider snaps to multiples of and0slides continuously- Default:
1.0f
-
maxEntries
int maxEntriesMaximum number of entries the user may add and0means unlimited- Default:
0
-
reorderable
boolean reorderableAllow the user to drag entries to reorder them- Default:
true
-
addText
String addTextLabel of the button that appends a new entry- Default:
"Add"
-
addTextTranslation
Deprecated.OneConfig auto-translates addText values that are translation keys so pass the key directly- Default:
false
-
formatter
Class<? extends ValueFormatter> formatter- Default:
org.polyfrost.oneconfig.api.config.v1.ValueFormatter.class
-
bounds
Class<? extends SliderBounds> bounds- Default:
org.polyfrost.oneconfig.api.config.v1.SliderBounds.class
-
fullWidth
boolean fullWidth- Default:
false
-