-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
I was wondering if it would be possible to allow this approach:
gui.add( new ControllerVector2D( vector ) );
Maybe with a patch like this?
this.add = function() {
var object = arguments[ 0 ];
if ( object instanceof Controller ) {
controllers.add( object );
return;
}
// rest of the code that figures if object is a number, string, etc
}
This would allow people to create their own custom controllers without having to mess up with the GUI internal code.
glumb, donmccurdy, auxiliary, erenard, tcyrus and 2 more