Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: marf on May 29, 2012, 09:54:47 AM
-
Hi, I'm making an online fps and I'm trying to make a server list with NGUI, in particular i need a list populated with a for each in witch there will be two columns: a label with the name of the match and a button called "Connect" that if is pressed I will connect to that game.
How I can do this?
Can I generate dynamically UIButtons?
Regards,
Marco
-
Create a prefab for what a single row would look like (you can keep it simple and just have 2 labels).
You then simply instantiate the prefab a few times, filling a UITable or UIGrid set to 1 column, and modifying each instance's data (labels?) as you see fit.