Hi there!
We are developing a 2D sidescrolling adventure, and we are currently dealing with an inventory system. For gameplay purposes, we have a "quick" inventory that shows up on certain spots where the player can use one of his items. That quick inventory is a small panel at the bottom of the screen that contains a buttons Grid, and when the player presses left & right the icons scroll to center the one that's selected. Well, here comes the trouble.
If the item list is static (all the buttons are within the Hierarchy before hitting Play), everything works fine. However, if we read the Inventory list from script and create the quick inventory panel dynamically with all the item icons updated at runtime (we use NGUITools.AddChild), the controls don't work at all. Is that a problem with the Draggable Panel, or with the button grid? Must we do things differently?
Thanks!