old sorting table button; fix auto-sorting table open on scav screen

This commit is contained in:
Tyfon
2024-07-12 16:06:24 -07:00
parent e9fc7f6bf2
commit 29b6094b20
7 changed files with 176 additions and 4 deletions

View File

@@ -35,7 +35,16 @@ namespace UIFixes
SortingTableClass sortingTable = __instance.R().InventoryController.Inventory.SortingTable;
if (sortingTable != null && !sortingTable.IsVisible)
{
Singleton<CommonUI>.Instance.InventoryScreen.method_6();
if (__instance.ContextType == EItemUiContextType.InventoryScreen)
{
Singleton<CommonUI>.Instance.InventoryScreen.method_6();
Singleton<CommonUI>.Instance.InventoryScreen.R().SimpleStashPanel.ChangeSortingTableTabState(true);
}
else if (__instance.ContextType == EItemUiContextType.ScavengerInventoryScreen)
{
Singleton<CommonUI>.Instance.ScavengerInventoryScreen.method_7();
Singleton<CommonUI>.Instance.ScavengerInventoryScreen.R().SimpleStashPanel.ChangeSortingTableTabState(true);
}
}
}
}