gridview containers can accept

This commit is contained in:
Tyfon
2024-06-15 13:14:22 -07:00
parent 0bf508df1f
commit 3c76f3c588
7 changed files with 269 additions and 79 deletions

View File

@@ -1,10 +1,6 @@
using EFT.InventoryLogic;
using EFT.UI.DragAndDrop;
using System;
using EFT.UI.DragAndDrop;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TMPro;
using UnityEngine;
@@ -22,8 +18,13 @@ namespace UIFixes
{
// Grab the selection objects from ragfair as templates
RagfairNewOfferItemView ragfairNewOfferItemView = ItemViewFactory.CreateFromPool<RagfairNewOfferItemView>("ragfair_layout");
SelectedMarkTemplate = UnityEngine.Object.Instantiate(ragfairNewOfferItemView.R().SelectedMark, null, false);
UnityEngine.Object.DontDestroyOnLoad(SelectedMarkTemplate);
SelectedBackgroundTemplate = UnityEngine.Object.Instantiate(ragfairNewOfferItemView.R().SelectedBackground, null, false);
UnityEngine.Object.DontDestroyOnLoad(SelectedBackgroundTemplate);
ragfairNewOfferItemView.ReturnToPool();
}
@@ -91,7 +92,7 @@ namespace UIFixes
public static bool Active
{
get { return SelectedItemViews.Any(); }
get { return SelectedItemViews.Count > 1; }
}
public static bool IsSelected(GridItemView itemView)