Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started 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!
-
I would go for a grid in a grid instead since you want things spread out evenly both vertically and horizontally.
-
I have created a prefab for one row of labels
-
Yeah, create a prefab out of a single row, then instantiate this prefab over and over, modifying its data as needed.
-
Plz tell me that how to sort the table items as different size wise not in alphabetically order
thank you
-
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.