mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 09:43:47 +02:00
roll back to full width window and set a min for emitRate so interface doesnt crash
This commit is contained in:
parent
ea20fc9786
commit
d1cbcf5554
2 changed files with 9 additions and 4 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue