Author Topic: [Component Request] A "Proper" List Control  (Read 2291 times)

amraffay

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 37
    • View Profile
[Component Request] A "Proper" List Control
« on: July 16, 2016, 05:40:12 AM »
Hi there,

Can you please do a great favour to people like me who have invested serious money in this plugin in hoping of getting a proper List Control with following features
- Take DataSource (List<Item>) to and draw items
- Variable Item Height
- Remote Images

Something like this
http://www.mobilemarketer.com/cms/lib/19173.jpg

Please Please Please
I have seen other new customers complaining same thing, and asking same questions, and some get stuck and lose hope with UIWrapContent and some may be able to get it running.

If you can just provide a control and working example, that'd be really really big favour for us.

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [Component Request] A "Proper" List Control
« Reply #1 on: July 20, 2016, 02:58:37 AM »
Everything in that pic you linked can be done with existing components. Create a prefab out of an "entry" item, consisting of an image on the left and a label with resizable freely height on the right. Add a game object with a UITable script. In a custom script populate the table by instantiating your items and setting their icon and label's text accordingly.

That's it.

amraffay

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 37
    • View Profile
Re: [Component Request] A "Proper" List Control
« Reply #2 on: July 20, 2016, 02:34:21 PM »
Thats the issue
UiTAble doesnt work as UIWrapContent for showing 100s of items
And there is no working example where UIWrapContent support variable item size, handling remote images (loading/unloading textures to not crash the app) and so on.
If you can take some time out and create a working example with these features for your "next" update that'd be a huge favour for us.

amraffay

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 37
    • View Profile
Re: [Component Request] A "Proper" List Control
« Reply #3 on: July 27, 2016, 08:00:34 AM »
If you are not interested in providing such control, then can you ATLEAST commit to help me in making such control that let a new user quickly create a UIWrap based list view with dynamic data and other features?
Like looking at my unity project if things dont work as expected, ill then upload it to github once its finally ready.
What do you think?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [Component Request] A "Proper" List Control
« Reply #4 on: July 29, 2016, 11:26:46 AM »
UIWrapContent was written with a fixed cell height in mind, while UITable's size is flexible. It's not possible to have wrapped (read: re-positioned) content without actually knowing the size of your content beforehand, otherwise how can you scroll down to the position of the 50th item without first knowing the size of all the 49 items prior to it?

UITable manually calculates the dimensions of all widgets, which is slow. Now, you could write a custom version of UIWrapContent that used some other efficient logic in order to determine the sizes of the content if you wanted to -- however this is a highly custom task, and is something for you to undertake on, should you choose to do so.

In short, either stick to fixed size items, or you will need to code your own custom UIWrapContent component.

Now, as to your posts... you come off as someone who is demanding me to do your work for you, which is not what this forum is for. Here I do support for NGUI -- answer questions, point people in the right direction, investigate and resolve bugs. That's support. What you're asking for instead is for me to create a custom component for you, doing your work for you, which is contract work -- in other words way beyond the scope of support.

Keep trying it yourself and posting questions, and I will answer / help as I can. I can't do the whole thing for you, however.
« Last Edit: July 29, 2016, 11:32:42 AM by ArenMook »