From 16c597230d883d7b01b1e86326e3687d95fdb4ee Mon Sep 17 00:00:00 2001 From: Tyfon <29051038+tyfon7@users.noreply.github.com> Date: Tue, 25 Jun 2024 00:36:44 -0700 Subject: [PATCH] Hook up handoverQuestItemsWindow's scroll view --- Patches/AutofillQuestItemsPatch.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Patches/AutofillQuestItemsPatch.cs b/Patches/AutofillQuestItemsPatch.cs index 2f36a28..3f9db85 100644 --- a/Patches/AutofillQuestItemsPatch.cs +++ b/Patches/AutofillQuestItemsPatch.cs @@ -2,6 +2,7 @@ using EFT.UI; using HarmonyLib; using System.Reflection; +using UnityEngine; namespace UIFixes { @@ -19,6 +20,14 @@ namespace UIFixes { __instance.AutoSelectButtonPressedHandler(); } + + // Apparently they never set up the scroll correctly? + Transform scrollArea = __instance.transform.Find("Window/Content/Possessions Grid/Scroll Area"); + if (scrollArea != null) + { + ScrollRectNoDrag scroller = scrollArea.GetComponent(); + scroller.content = scrollArea.Find("GridView")?.RectTransform(); + } } } }