Annotation Interface SliderList
Renders a user-editable list of numbers, each row being a slider with a value field beside it.
The annotated field must be a numeric array (int[], float[], double[],
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 entry.booleanDeprecated.No longer needed.booleanDeprecated.No longer needed.booleanDeprecated.No longer needed.floatintMaximum number of entries the user may add.floatbooleanAllow the user to drag entries to reorder them.floatValue the slider snaps to multiples of.booleanDeprecated.translation keys will be translated by default.booleanDeprecated.No longer needed.
-
Element Details
-
title
String title -
titleTranslation
Deprecated.No longer needed. OneConfig now checks whether the given title is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the title and remove this flag.- Default:
false
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.No longer needed. OneConfig now checks whether the given description is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the description and remove this flag.- Default:
false
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
categoryTranslation
Deprecated.No longer needed. OneConfig now checks whether the given category is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the category and remove this flag.- 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.0slides continuously.- Default:
1.0f
-
maxEntries
int maxEntriesMaximum number of entries the user may add.0means 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.No longer needed. OneConfig now checks whether the given addText is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the addText and remove this flag.- Default:
false
-