Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: agentsmith666 on May 24, 2013, 12:25:44 AM

Title: UITables inside UIGrid
Post by: agentsmith666 on May 24, 2013, 12:25:44 AM
I'm trying to create a gui for my leaderboard:

(http://i.imgur.com/ljEjIcL.jpg)

I'd like each entry have a UITable (or if better a UIGrid) that contains various information (player name, number of deaths, score, etc) and stick that into a fixed grid (UIGrid) that can be scrolled vertically.  Is this an optimal approach or should I use something else? 

Thanks!
Title: Re: UITables inside UIGrid
Post by: dlewis on May 24, 2013, 12:56:07 AM
I would go for a grid in a grid instead since you want things spread out evenly both vertically and horizontally.
Title: Re: UITables inside UIGrid
Post by: Nseries on May 24, 2013, 10:03:54 AM
I have created a prefab for one row of labels
Title: Re: UITables inside UIGrid
Post by: ArenMook on May 24, 2013, 05:41:47 PM
Yeah, create a prefab out of a single row, then instantiate this prefab over and over, modifying its data as needed.
Title: Uitables
Post by: Anshu on February 28, 2014, 04:45:31 AM
Plz tell me that how to sort the table items as different size wise not in alphabetically order


thank you
Title: Re: UITables inside UIGrid
Post by: ArenMook on February 28, 2014, 07:12:47 PM
Everything is sorted alphabetically. If you want to re-use grid or table's sorting functionality, go through the children and name them something like "001", "002", "003", etc based on whatever logic you need.