roll back to full width window and set a min for emitRate so interface doesnt crash

This commit is contained in:
James Pollack 2015-10-02 10:32:08 -07:00
parent ea20fc9786
commit d1cbcf5554
2 changed files with 9 additions and 4 deletions

View file

@ -177,7 +177,14 @@ function loadGUI() {
function addIndividualKeys() {
_.each(individualKeys, function(key) {
var controller = gui.add(settings, key);
//temporary patch for not crashing when this goes below 0
if(key.indexOf('emitRate')>-1){
var controller = gui.add(settings, key).min(0);
}
else{
var controller = gui.add(settings, key);
}
//need to fix not being able to input values if constantly listening
//.listen();

View file

@ -152,10 +152,8 @@ SettingsWindow = function() {
this.init = function() {
Script.update.connect(waitForObjectAuthorization);
_this.webWindow = new WebWindow('Particle Explorer', Script.resolvePath('index.html'), 400, 600, true);
_this.webWindow = new WebWindow('Particle Explorer', Script.resolvePath('index.html'), 400, 600, false);
_this.webWindow.eventBridge.webEventReceived.connect(_this.onWebEventReceived);
_this.webWindow.setVisible(false);
_this.webWindow.setVisible(true);
};
this.sendData = function(data) {