So I'm using a bunch of different menus in the game I'm making (for touch screen). And the way I do them is by having a background and items on top that are pinned to the background, and a vertical drag and drop behavior on the background. It works well, but the amount of events I have to have for every menu is going to be crazy!
I'm wondering if there is a way to make it more efficient maybe.
Right now I'm creating the background object, creating all of the menu items (it's going to be a whole lot of them later) one by one with the different Y-positions. Then I have to pin each one to the background. I've put the menu items in a family and tried to pin the family to the background but it refused to work so I'm doing it one by one..
And then of course the events for each menu item that tells them what to do when I press them.
I don't know if there is any other way to do it, but I thought I should ask at least!
Maybe some smart way to create them and position them below each other without having to do it one by one or something?