added toggle widget for nodes

This commit is contained in:
tamat
2018-10-30 17:42:30 +01:00
parent 09e5fe6a61
commit aa384328a7
4 changed files with 10733 additions and 18390 deletions

View File

@@ -91,6 +91,7 @@ function TestWidgetsNode()
this.number = this.addWidget("number","Number", 0.5, function(v){}, { min: 0, max: 100} );
this.combo = this.addWidget("combo","Combo", "red", function(v){}, { values:["red","green","blue"]} );
this.text = this.addWidget("text","Text", "edit me", function(v){}, {} );
this.toggle = this.addWidget("toggle","Toggle", true, function(v){}, { on: "enabled", off:"disabled"} );
this.button = this.addWidget("button","Button", null, function(v){}, {} );
this.size = this.computeSize();
}