I need an UI element that lists selectable items, a.k.a. the basic videogame menu.
PopupMenu lets you select an item with a single click, and as you hover its items get highlighted -- this is exactly what I need.
The problem is that popups can't be really nested and doing so breaks the layout.
ItemList plays nicely with the layout, but by default it seems to work more like a filesystem folder, with doubleclick to confirm, mouse hover revealing tooltips but not hightlighting... etc.
I haven't found another built-in node that does what I want. So:
- Is there a way to make a PopupMenu fit inside a layout?
- If that's not possible (or a bad idea), how can I modify ItemList to work as I want? (highlight items on hover, single-click to confirm)
I should note that I need it to work with both keyboard and mouse. PopupMenu does this by default, but I had trouble changing the input of ItemList in a consistent way.
Thanks!