how to add float setting on module
-
how to add float setting on module script api liquid bounce b76
-
I recommend you write this way, it's very concise
var setting = {
float: function (name, def, min, max) {
return value.createFloat(name, def, min, max);
},
integer: function (name, def, min, max) {
return value.createInteger(name, def, min, max);
},
boolean: function (name, def) {
return value.createBoolean(name, def);
},
list: function (name, values, def) {
return value.createList(name, values, def);
}
};
var settings = {
zitterSpeed: setting.float("ZitterSpeed", 0.13, 0.1, 0.3),
};this.addValues = function (values) { for (var i in settings) { values.add(settings[i]); } }
-
@Никитыч-Китыч хуй пизда хуй пизда хуй пизда хуй пизда
-
@ybyyby_-awa Why do you create an object, that calls legacy api v1 value object that translates it to api v2 values, that gets evaluated into LB values.
Not to mention that it isn't any more concise since it has the same parameter types.
-
@CzechHek said in how to add float setting on module:
Why do you create an object, that calls legacy api v1 value object that translates it to api v2 values,