Fix tooltip object leak; lootvalue sorting table workaround; 1.6.7

This commit is contained in:
Tyfon
2024-06-11 16:25:10 -07:00
parent 7ba0a67929
commit 1163d08c30
8 changed files with 54 additions and 22 deletions

View File

@@ -4,6 +4,7 @@ using EFT.UI;
using HarmonyLib;
using System.Linq;
using System.Reflection;
using UnityEngine;
namespace UIFixes
{
@@ -20,7 +21,13 @@ namespace UIFixes
[PatchPrefix]
public static void Prefix(ItemUiContext __instance)
{
if (!AllowedScreens.Contains(__instance.ContextType) || Plugin.InRaid())
if (!Settings.AutoOpenSortingTable.Value || !AllowedScreens.Contains(__instance.ContextType) || Plugin.InRaid())
{
return;
}
// Temporary work-around for LootValue bug - bail out if the ALT key is down
if (Input.GetKey(KeyCode.LeftAlt))
{
return;
}