Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: impc on January 22, 2014, 12:48:12 PM

Title: [Feature Request / S] Expose sorting delegates
Post by: impc on January 22, 2014, 12:48:12 PM
Hi,
First, thanks for a great product!
It will be great to have UITable / UIGrid current SortByName exposed and customizable.

In addition, it would be very good if customeditors work also for childclasses by default.

Thanks,
Imre
Title: Re: [Feature Request / S] Expose sorting delegates
Post by: ArenMook on January 23, 2014, 06:50:41 AM
It would be good if custom editors would work for child classes, wouldn't it?

Unfortunately that's something you should tell Unity, as that has nothing to do with NGUI. :)

As for UITable and Grid's sorting function being exposed... to be honest if you want advanced sorting then you should consider just doing your own positioning logic. UIGrid especially is meant for very trivial child arrangements.

It's not a bad thought though, I'll probably add something like that when I'll re-do the grid and table logic in the near future. They're both scheduled to be upgraded to something more robust and flexible.
Title: Re: [Feature Request / S] Expose sorting delegates
Post by: ryan on January 23, 2014, 01:53:19 PM
It would be good if custom editors would work for child classes, wouldn't it?

Unfortunately that's something you should tell Unity, as that has nothing to do with NGUI. :)

Apparently somebody did tell them?  http://docs.unity3d.com/Documentation/ScriptReference/CustomEditor-ctor.html (http://docs.unity3d.com/Documentation/ScriptReference/CustomEditor-ctor.html)  I'm not sure when they added that second parameter, but it looks like it would do the right thing.
Title: Re: [Feature Request / S] Expose sorting delegates
Post by: ArenMook on January 24, 2014, 08:52:22 AM
Oh nice, thanks for pointing that out!