IMPORTANT
Status: Supported
Minimum version: 1.4
Inventory sort tabs
Overview
The tab system sorts items in the inventory, trade, and corpse windows by preset or custom categories. It also supports hotkeys kQ/kE.
How it works
- Categories are defined in
CInventorySorter. - Basic categories:
all,weapons,ammo,armor,devices,consumables,artefacts,attachments. - Custom categories are read from
inventory_sort_custom. - Category labels and icons are read from
inventory_sort_categories.
XML and config
- Add
inventory_sort_tabstoconfigs/ui/actor_menu.xml. - For different modes, you can add:
inventory_sort_tabs_container_upgradeinventory_sort_tabs_container_trade_actor_baginventory_sort_tabs_container_trade_partner_baginventory_sort_tabs_container_deadbody_bag
- In LTX, describe the
inventory_sort_categoriesandinventory_sort_customsections.
Related material: inventory slots, UI overview.