void SortContainer()
        {
            Inventory inventory = InventoryGui.instance.m_container.GetComponentInChildren <InventoryGrid>().GetInventory();

            InventoryUtils.Sort(inventory);
            Logger.LogDebug($"Sorted container inventory");
        }
Exemple #2
0
 public static void Sort(Container container, int offset = 0)
 {
     InventoryUtils.Sort(container.GetInventory(), offset);
 }
 void SortPlayerInventory()
 {
     InventoryUtils.Sort(Player.m_localPlayer.GetInventory(), 8);
     Logger.LogDebug("Sorted player inventory");
 }