This repository has been archived by the owner on Oct 28, 2019. It is now read-only.
ADD: Workshop collection management screen override #1377
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Original
The original collection editor can be quite clunky to use at times.
Every time you try adding an item to the collection, it will reload the entire page making creating a large collection very tedious.
Additionally there is no search/filter feature so sorting through a large number of items is awkward.
New
The override I've created uses AJAX to allow you to add items without needing to reload the page, and also supports multiple-selection with ctrl or shift modifier keys to add a load of items in bulk.
I've also added a quick filter field that will filter out the items based on the item name or author.
Usage
To use the new management screen choose the "Edit collection" button on one of your own workshop collections.
Items in the left hand list are items not in the collection and can be added by either double clicking the item or by selecting it and clicking the ">" button in between the two lists. This list is always sorted alphabetically by item name.
Items in the right hand list are items that are in the collection and can be reordered by clicking and dragging the icon on the left hand side of the item.
You can also select multiple items by: clicking one item, holding
shift
and then clicking another to select all items between those two; or clicking an item when holdingctrl
to either add or remove it from the selection. Once you have selected multiple items you can add them to or remove them from the collection by clicking on the button in the middle of the two lists (will either be ">" or "<" depending on which list you have selected items in)Although this overhaul is enabled by default, it can be turned off in the RES settings on the "Community" tab.
Linked collections are currently not supported but I intend to add them in the future.