I'm using UITables in a bunch of places to lay out groups of widgets. These might be labels or sprites, and some table cells may themselves contain nested tables or other groups of widgets. I'd like to be able to control the alignment of cells within the table: for example, the first column might be right-aligned, or all rows might have their contents aligned at the bottom. Have I missed an obvious way to do this?
I have a workable solution that I implemented locally by adding a component to my table contents, which I called UITableAlignment, that simply contains a UIWidget.Pivot field. I then altered UITable to check for this component on each child when repositioning them, adjusting the X and Y offsets appropriately. I'm not sure if I've covered all of the edge cases, but so far it has met my needs. I wonder if something like this could be added to NGUI so I don't have to worry about it next time I upgrade? (Michael, I can send you what I have if you're interested, but it's not terribly complicated.)