update min / max
parent
932741b74d
commit
69ba8b16fd
|
@ -74,6 +74,8 @@ GameLib.D3.Texture = function(
|
||||||
this.graphics,
|
this.graphics,
|
||||||
image
|
image
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
return image;
|
||||||
}
|
}
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
|
|
|
@ -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) {
|
GameLib.System.GUI.prototype.controller = function(folder, object, property, subProperty, step, listen, affected, min, max) {
|
||||||
|
|
||||||
if (GameLib.Utils.UndefinedOrNull(min)) {
|
if (GameLib.Utils.UndefinedOrNull(min)) {
|
||||||
min = -100;
|
min = -1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GameLib.Utils.UndefinedOrNull(max)) {
|
if (GameLib.Utils.UndefinedOrNull(max)) {
|
||||||
max = 100;
|
max = 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
@ -1114,7 +1114,7 @@ GameLib.System.GUI.prototype.buildControl = function(folder, componentTemplate,
|
||||||
property === 'maxZ' ||
|
property === 'maxZ' ||
|
||||||
property === 'offsetX'
|
property === 'offsetX'
|
||||||
) {
|
) {
|
||||||
controllers.push(folder.add(object, property, -100, 100, 0.01));
|
controllers.push(folder.add(object, property, -1000, 1000, 0.01));
|
||||||
} else if (
|
} else if (
|
||||||
property === 'widthSegments' ||
|
property === 'widthSegments' ||
|
||||||
property === 'radiusSegments' ||
|
property === 'radiusSegments' ||
|
||||||
|
|
Loading…
Reference in New Issue