update min / max

beta.r3js.org
-=yb4f310 2017-11-10 19:04:26 +01:00
parent 932741b74d
commit 69ba8b16fd
2 changed files with 5 additions and 3 deletions

View File

@ -74,6 +74,8 @@ GameLib.D3.Texture = function(
this.graphics,
image
);
} else {
return image;
}
}.bind(this)
);

View File

@ -216,11 +216,11 @@ GameLib.System.GUI.prototype.onChange = function(property, subProperty, affected
GameLib.System.GUI.prototype.controller = function(folder, object, property, subProperty, step, listen, affected, min, max) {
if (GameLib.Utils.UndefinedOrNull(min)) {
min = -100;
min = -1000;
}
if (GameLib.Utils.UndefinedOrNull(max)) {
max = 100;
max = 1000;
}
if (
@ -1114,7 +1114,7 @@ GameLib.System.GUI.prototype.buildControl = function(folder, componentTemplate,
property === 'maxZ' ||
property === 'offsetX'
) {
controllers.push(folder.add(object, property, -100, 100, 0.01));
controllers.push(folder.add(object, property, -1000, 1000, 0.01));
} else if (
property === 'widthSegments' ||
property === 'radiusSegments' ||