Hook up handoverQuestItemsWindow's scroll view
This commit is contained in:
@@ -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<ScrollRectNoDrag>();
|
||||
scroller.content = scrollArea.Find("GridView")?.RectTransform();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user