Reference Image:
In Dark and Darker each character class has a set amount of unique Perks and Skills that the players can swap in and out for different play styles. I’m trying to learn how to replicate the UI Widget that houses these perks and skills. I can set up abilities and drag and drop widget icons, what I’m stuck on is the layout or container that houses the perks and skills. In the game they appear to be buttons within a grid array, they are set within the array to appear to display in alphabetical order. Once the player drags and drops a perk or skill from the arrays the grid containing them updates. The slot that contained the item looks to be removed, thus lowering the count of the array. Basically updating the number of slots remaining and still remaining in alphabetical order.
Is this achieved with a Grid Panel, a Uniform Grid Panel, or something else? What about if the player drags and drops the perk or skill back into their specific containers, how does one make sure it goes back into its correct location (alphabetically)? If anyone has any insight or knows of any tutorials covering this topic I would be grateful for the assistance. Thanks for taking the time to read my question.