Custom menus

Ok so it seems you did a bit more than what I did because you utilized the UI script. Your Stack idea was a pretty smart work around. So I finally figured it out. There seems to be a bug with the switches and variables created via macro elements. I used your stack preset and created an integer variable in the macro GUI tab and changed your switches and stack to this variable. The menu would no longer close. I have no idea why this is but this is the exact problem I was having. For whatever reason the switch is no longer selectable because it is at the bottom of the group. If you bring it to the top of the group then the switch will work but you can no longer select anything in the menu.