added tooltips

This commit is contained in:
tamat
2019-07-12 18:22:56 +02:00
parent ac14de7e59
commit 35bb70b163
8 changed files with 611 additions and 243 deletions

View File

@@ -30,9 +30,8 @@
Selector.prototype.onExecute = function() {
var sel = this.getInputData(0);
if (sel == null) {
if (sel == null || sel.constructor !== Number)
sel = 0;
}
this.selected = sel = Math.round(sel) % (this.inputs.length - 1);
var v = this.getInputData(sel + 1);
if (v !== undefined) {