Author Topic: [Feature Request / S] Expose sorting delegates  (Read 1951 times)

impc

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
[Feature Request / S] Expose sorting delegates
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [Feature Request / S] Expose sorting delegates
« Reply #1 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.

ryan

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 90
    • View Profile
Re: [Feature Request / S] Expose sorting delegates
« Reply #2 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  I'm not sure when they added that second parameter, but it looks like it would do the right thing.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [Feature Request / S] Expose sorting delegates
« Reply #3 on: January 24, 2014, 08:52:22 AM »
Oh nice, thanks for pointing that out!