branchrust_reboot/main/hackweek_boxsortingcancel
15 Commits over 0 Days - ∞cph!
Fixed some more custom mode edge cases
Fixed condition sorting not producing deterministic results when comparing items that don't have condition
WIP demo: https://files.facepunch.com/jarryd/1b0711b1/Unity_OwO8TrZeZp.mp4
Added an option to set the sorting language of a box to the current client language in the sorting settings, allows accurate alphabetic sorting for non-english languages
For when you need to sort your Pierres from your Bois
Load all translations on the server so we can do language specific alphabetic sorting server side (hardcoded to english for now)
Added a way to opt out of automatic sorting, enables a button on the container to sort instead
Fixed sorting settings not getting immediately applied on the client side when changed
Items not present in the custom snapshot are now last
Better handling of blueprints in custom sorting mode
Fixed snapshot not working reliably
Better grid layout for custom mode
Alphabetic sorting now works with blueprints (sorts based on name of the blueprint target)
Added custom sorting mode - uses a snapshot of the current state of the container and will try and recreate that
Still WIP, has some issues
Profiling
UI updates
Added a stack option, will consolidate any possible item stacks prior to sorting
Added a category option, mirrors order of F1 menu
Added a new JarrydTestMap option
Added flex versions of all of the standard rust labels
Added option to sort by count and condition
Added option to reverse whatever sort is selected
Refactor sorting settings data storage, authoring UI now supports Apply/Cancel
Don't show sorting config button if box doesn't have a storage adaptor
Baseline for a box sorting system
Currently only works on large wooden box, can be configured from the loot panel
Currently hardcoded to sort alphabetically by item shortname (more modes in future)
Controlled by an attached storage adaptor (no adaptor = no sorting)
Sorting removes empty slots between items
Sort is applied any time the item list is modified, so while sorting is active items cannot be dragged around inside a container by a player