bitcraftlab / p5.gui

p5.gui magically generates a graphical user interface for your p5.js sketches
https://bitcraftlab.github.io/p5.gui
MIT License
354 stars 91 forks source link

Update p5.gui.js to allow specifying whether the gui can be draggable or not. #26

Open Catz1301 opened 3 years ago

Catz1301 commented 3 years ago

In the quicksettings.js file, there is a function called setDraggable: function(draggable) {...}, so I added a functoin named setDraggable(draggable) to p5.gui.js inside the QSGui() function. Under the pass through functions, I called qs.setDraggable(draggable), which successfully sets the gui's ability to be dragged.

The same was done when implementing setCollapsible().