For the first one: What your trying to do is called radio buttons, where only one button can be checked at a time. Now, if only one button can be checked at a time, it’s no different than an enumeration. So either use an enumeration, or more simply, use a number that refers to which button is checked (i.e. 2 would be button 2, 5 would be button 5, 0 would be no buttons).
You probably don’t even need that boolean but you may find another use for it!
edit: Another benefit of wrapping User Widgets is that you can now easily stylise those checkboxes so they stay uniform throughout the menus. Makes maintenance / adjustments a breeze.
Hello! I’m a bit late, but I ran into this issue just recently, and I have a different vision.
What I want is for up to a certain number of slots to be selected. the number of slots to be selected can be increased over time, and upon reaching that slot number limit, I had two options for UI functions:
The first slot you selected will toggle off and be replaced by the most recent slot you toggled on to keep the number of slots filled.
OR:
You cannot select anymore slots, until you reverse the toggle on any other slots you’ve previously toggled.
I’m guessing number 2. is more easier and doable, what do you think? what to do to get these results/ functionality?