| ▲ | spiffyk 3 hours ago | |
I actually use a very similar paradigm successfully in a game [1] whose (immediate-mode) UI is fully responsive. I allow more operations than just cutting to do that, but the basic idea seems to be the same. The code may look like a bit of a mess at a first glance [2], but I still find it easier to work with and make it do what I actually want with some very basic vector maths, than with the layout-container rules of most UI frameworks. [1]: https://fruitsandtails.fghj.cz/ [2]: https://codeberg.org/spiffyk/FruitsAndTails/src/branch/main/... | ||