Jump to content

Where are the sorted Parts


Recommended Posts

For Filter Extensions v2.0 I wanted to add the capability to redefine the sorting methods used in the parts list.

I've got as far as calling my own function when the sort buttons are pressed, but I've hit a slight snag. I don't know where the collection of parts to be sorted is kept. It used to be the order in PartLoader.Instance.Parts IIRC, but that isn't being changed by the stock sorting methods. Category/subCategory.available parts is a null List.

Any ideas as to where the sorted parts are being read from?

Edited by Crzyrndm
Link to comment
Share on other sites

I stumbled onto that a few hours back when I found the EditorPartsList.Refresh method was overloaded with an IComparer<AvailablePart> which is, I am assuming for lack of an alternative, how the sorting is being done.

Still haven't got it working but I can't see any other way in

E:

Any ideas why this isn't working (other than that I'm totally barking up the wrong tree). The log entry for the sort call comes through fine, but the refresh either does nothing or silently fails

Edited by Crzyrndm
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...