Hi everyone :)
I would like to append arguments to the front of the default array passed to the callback :
var aParamPath = "anchorleft"
var aSpinBox = SpinBox.new()
aSpinBox.connect("valuechanged", self, "set", [aParamPath, value])
Of course this code doesn't compile because the compiler doesn't know what value is.
I want it to be the arg of value_changed(float value)
signal
Is this possible ? How ?
For now i solved it this way but i think we can find better :
paramcontrol.connect("valuechanged", self, "setswap", [paramnode, param.param_id])
func setswap(value, paramnode, parampath):
paramnode.set(param_path, value)
Thank you very much