Description
Spec
Add a new mini editor dialog for defining a method, similar to the current one for defining variables. The dialog should let the user set:
- A method name
- An arbitrary list of method arguments, each with a name and a type (String, Number, Vector2, etc)
When defined, the method definition is stored in the Block Coding resource, like current variables definitions.
After defined, the Block Picker should be refreshed and present the defined methods as blocks under category "Communication | Methods". One "Define FOO" block and one "Call FOO" block (where "FOO" is the method name).
- "Define FOO" should have arguments that can be dragged to the snapped blocks below. See block "when this node collides with (something)" for reference.
- "Call FOO" should have input slots for each argument. And each input slot should only accept the corresponding type.
Note that this is for defining/calling methods in the same Block Coding node. Not for passing arguments to methods defined in other Block Coding nodes.
Original report below:
What Happened
im trying to call a method with arguments but there are no inputs to put the argument values..
after some digging on the code i wanted to add it myself, but i got stuck cuz idk what to put as the type on the block format, it could be just VARIANT or something but idk for sure