Adds a new node: Random Unmuter and addresses #31. Also adds ability to hook into prompting from rgthree global.

This commit is contained in:
rgthree
2023-10-01 16:52:50 -04:00
parent 0034199e76
commit 882f407446
10 changed files with 289 additions and 0 deletions
+10
View File
@@ -22,6 +22,16 @@ export class BaseAnyInputConnectedNode extends RgthreeBaseNode {
}
return this.schedulePromise;
}
clone() {
const cloned = super.clone();
while (cloned.inputs.length > 1) {
cloned.removeInput(cloned.inputs.length - 1);
}
if (cloned.inputs[0]) {
cloned.inputs[0].label = '';
}
return cloned;
}
stabilizeInputsOutputs() {
var _a;
const hasEmptyInput = !((_a = this.inputs[this.inputs.length - 1]) === null || _a === void 0 ? void 0 : _a.link);