defold / defold

Defold is a completely free to use game engine for development of desktop, mobile and web games.
https://www.defold.com
Other
4.37k stars 307 forks source link

GUI Box node - add property to set rounded corners #5614

Open paweljarosz opened 3 years ago

paweljarosz commented 3 years ago

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

paweljarosz commented 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

britzl commented 3 years ago

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.