Open paweljarosz opened 3 years ago
The property should be also normalized (like Alpha property with a slider ;) ), where 0 means no corners and 1 is half of the min(width,height) of the box node
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.
Is your feature request related to a problem? Please describe (REQUIRED): Not a problem, but a frustration, that simple, minimalist GUI that could be done easily in Defold demands now to have a custom texture with visually rounded corners.
Describe the solution you'd like (REQUIRED): Current built-in rectangular box nodes could have a property to set visual roundness of corners (even for all corners). The input detection logic could treat them like rectangular shapes if this would be a problem.
Describe alternatives you've considered (REQUIRED): Input detection could take into account round corners. Property could be a vector4 - with different radius for each corner.
Additional context (OPTIONAL): https://forum.defold.com/t/gui-box-node-with-rounded-corners/6157/5