Got a question once again and this time it has to do with rounded corners of gui box nodes. I’ve seen that this is possible to do by utilizing textures but is there any way to make a box node that only has a color to have rounded corners? Are you supposed to utilize the Splice9 values in some way I can’t make sense of?
Looking forward to any answer you can come up with!
I know it can be done with a texture and Slice-9, but is it actually possible to request such feature? - to have rounded corners property for built-in GUI box nodes? This could be a very useful features for quick, minimalist GUI. What is a stopper here? I think detecting input over node could be still like for a rectangle box if this is a problem.
Vector shapes would be something awesome!
I just thought that adding round corners could be a nice, simple task, it could be really limited, like I proposed in the solution, but having such makes Defold GUI way more attractive
So I came here to open this back up. I’ve done it using shapes but one of the problems with using shapes is it’s hard to make it work perfectly with outlines. As a plain single color shape it works well, but once you are doing borders it can get difficult to accomplish because the inset corner needs to be slightly different depending on scale of the overall final node. So anything that could be done to improve the ability to do rounded corners ideally to facilitate outlines on said shapes would be great. Until then back using textures and slice9, etc.
“Instead of implementing this very specific request we’d like to add a shape node instead. The shape node should have some predefined shapes but also ability to add a custom shape from file.”
So it looks like it will allow much more and open new roads - follow the ticket to be notified when it will be implemented
When is that coming? Interestingly for my work I’ve found some nice use of the Pie_Node and defining 5,6,8 vertices to create pentagon, hexagon, and octagon shapes so in some ways it already has this but a more advanced shape node sounds super useful. One thing to consider if speech bubbles would be cool. Having been working on them though there are many different types and variants of speech bubbles so it’s maybe not the best idea unless we could use SVG or otherwise to define different shapes using a shape file format.