|
|
|
@ -81,6 +81,9 @@ export function addValueControlWidgets(node, targetWidget, defaultValue = "rando
|
|
|
|
|
|
|
|
|
|
const isCombo = targetWidget.type === "combo";
|
|
|
|
|
let comboFilter;
|
|
|
|
|
if (isCombo) {
|
|
|
|
|
valueControl.options.values.push("increment-wrap");
|
|
|
|
|
}
|
|
|
|
|
if (isCombo && options.addFilterList !== false) {
|
|
|
|
|
comboFilter = node.addWidget(
|
|
|
|
|
"string",
|
|
|
|
@ -128,6 +131,12 @@ export function addValueControlWidgets(node, targetWidget, defaultValue = "rando
|
|
|
|
|
case "increment":
|
|
|
|
|
current_index += 1;
|
|
|
|
|
break;
|
|
|
|
|
case "increment-wrap":
|
|
|
|
|
current_index += 1;
|
|
|
|
|
if ( current_index >= current_length ) {
|
|
|
|
|
current_index = 0;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "decrement":
|
|
|
|
|
current_index -= 1;
|
|
|
|
|
break;
|
|
|
|
|