branchrust_reboot/main/hackweek_boxsortingcancel
44 Commits over 457 Days - 0.00cph!
Enabled sorting on all DLC storage items (including all barrels)
Merge from box_sorting_ui
Fixed sorting settings missing some localization
Exposed allowSorting toggle on StorageContainer so we can manually opt in containers, off by default
Enabled on Large and small wooden boxes, coffin
Update sort button to restore previous padding settings
Align the sort settings to the top of the loot panel for large containers, the bottom for small
Merge from box_sorting_ui
More sorting fixes
Apply a 1s delay to all sorting after a container is marked dirty, if a container is marked dirty again in that window restart the timer. This prevents sorting running every time an item is moved if a player is hover looting a container
Sorting should preserve positions of objects that are considered equal by the selected sorting mode (eg. sort by count, can now swap around all the 1x stacks while keeping the >x1 stacks in order)
Added a passthrough to the storage adaptor
Storage adaptor now requires 1 power (won't require power to use industrial transfers, only for sorting)
Adjusted the recttransform so the sort settings prefab can be edited in place
Properly fixed pooling on sorting settings
Run sorting in a budgeted queue
Remove manual button, all sorting is now automatic while powered and enabled
Removed associated UI and RPC
Fix pooling issue on sort config panel
Added server.allowSorting convar as a safeguard (defaults to true)
Fixed storage adaptor input slot not showing handles
Only allow sorting while powered
Remove automatic mode
Apply translations
▉█▍▇▅ ▊▄▋▅ ▉█▇▄ (██▍▇█▋▍ █▌▇▍ ▇▊ ▉▌█▌▊, ▍▍█▍▆▌ ▉▄▉ ▍▇▉▅ ▊ ▋▇▊█ █▅▊)
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