0 votes

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("value
changed", 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):
param
node.set(param_path, value)

Thank you very much

in Engine by (24 points)
edited by

send a feature request to godot github.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.