Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: N3uRo on April 28, 2013, 01:27:42 PM

Title: Dynamic suggestion list best practices?
Post by: N3uRo on April 28, 2013, 01:27:42 PM
Scenario (although I think it's clear enough). Google example:

(http://i.imgur.com/pEBRSX1.png)

I have an UInput that when the texts changes it has to render a list that suggests terms.

What is the best practice? I mean the part when you have to change the elements of that list.

Instantiate & Destroy when the text changes isn't a good approach I think.

Thanks!
Title: Re: Dynamic suggestion list best practices?
Post by: ArenMook on April 28, 2013, 03:36:06 PM
For something like that you're going to have to write a custom script, not rely on a popup list at all.
Title: Re: Dynamic suggestion list best practices?
Post by: N3uRo on April 28, 2013, 03:48:40 PM
For something like that you're going to have to write a custom script, not rely on a popup list at all.

I know that and I didn't mention popup list... I only want advice on how to do that in the most efficient way
Title: Re: Dynamic suggestion list best practices?
Post by: ArenMook on April 28, 2013, 04:19:45 PM
Similar to how a popup list works -- create a set of labels above or below the input field, but instead of opening it on click, do it by tying into the input validation. You will be getting notifications of every single character press, allowing you to update your popup.