Hello there,
Sorry for the vague title, I’ll try to describe what’s going on here.
We’re adding new components to Elementa, and one of those is Subdividable
. It allows a widget to be made of several “sub-rectangles” that you can interact with (think of the “up” and “down” buttons on an IntegerUpDown).
For that, we’re providing a Subdividable
process node whose Invoke pin is exposed, resulting in a new Subdividable
region available in the node browser. The widget designer can then patch the logic to calculate the sub-rectangles, which are then accessible for the logic and the drawer of the widgets (since they’re part of the components).
So ideally, a patch would look like this :
You patch how you describe the rectangles composing your widgets (here we’re looking at a Vector2D), and you connect the State Output of the region to the Add node, adding this component to all the others.
Unfortunately, when doing so, the component does not show up in the spread of components. Here, we’re looking at the GetComponents node of the Vector2D Drawer :
There are two things that allow us to add it to the spread : either adding a pad after the Subdividable region :
Or using the node version of the process node :
Only when doing one of those two things, the instance of Subdividable is added to the spread.
What could be wrong here ?
Hope that was not too long :)
Cheerz !
seb