Sort Container UI

If you liked this item, please rate it up on Steam Workshop page.

Authors: CICADA, Daria Wu

Last revision: 22 Dec, 2022 at 11:45 UTC

File size: 18.43 KB

On Steam Workshop

Description:

Client-side Lua Script to add an UI to containers which has sort functionality.

There are 5 buttons in total:

  1. Sort by Alphabet, sort every item in the container by alphabetical order
  2. Sort by Category
  3. Merge Stacks, if possible, merge identical items together.
  4. Toggle Recursive Sort: If an item inside this container is a container itself, and this option is on, then the inside of that item and containers deeper inside will all be sorted.
  5. Toggle TreatContainersAsTheirFirstItem: If this option is on, all items in this container that are containers themselves will be viewed by the sorting algorithm as its first item. i.e. A Storage Container filled with Iron will be sorted as if it’s an "Iron" item instead of "Storage Container", and a "Stun Baton" filled with a "Battery Cell" will be sorted as if it’s a Battery Cell.

There is also a search bar to search for items.

Installation Notes:

  1. Install the client Lua For Barotrauma
  2. Subscribe to this mod
  3. If the in-game console does not automatically output running information, enter cl_reloadlua on the console
  4. (You don’t need to enable this content package; once you complete the steps above, the script will run automatically)

Disable instructions:

  1. Unsubscribe or delete this folder: %LocalAppData%Daedalic Entertainment GmbHBarotraumaWorkshopModsInstalled2891181800

credits:
Idea originally proposed by Cicada
Many code snippets taken from Better Fabricator UI by whosyourdaddy

Download
Required items:

Click the title to search on this site.


Lua For BarotraumaSteam Workshop