I am looking to make a weapon wheel in the style of Rockstar Game's weapon wheels where they have categories. I want to have multiple items in each category like pistols at 12 o'clock, rifles at 3 o'clock equipment like explosives at 6 o’clock and a flashlight at 1:30 and so on.
I found the Radial Menu addon and used that as a starting point but I’m not sure if I can make the button’s scrollable. What I mean by this is having it so the button can be scrolled through when hovered over.
I have a rudimentary system for an inventory but if anyone could also leave suggestions on how to make it so the buttons are only scrollable when more than one item is available for that weapon section that would be much appreciated as well.
My inventory system also relies on items category in an “enum” Example:
You can keep your enum-based inventory and group items by category. Use mouse wheel input to cycle through items in the hovered section, and only enable scrolling when that category contains more than one item. This should keep the weapon wheel simple and easy to manage.
Ok. I cannot check the source code but it states it uses shader code, for performance. I am not familiar with shader code so I cannot help there.
If you decide to go with Control nodes, I guess it would boil down to locking the mouse and still listen for the input delta and select the node based on what direction it goes. When you’ve got your “selected” node, make it so the wheel scroll changes between control nodes (if there are multiple). It is implied that each weapon would add a control node to the wheel.