2024-09-03 12:36:49 +01:00
|
|
|
|
using EFT.UI;
|
2024-08-24 00:42:01 +01:00
|
|
|
|
using SPT.Reflection.Patching;
|
2024-09-03 12:36:49 +01:00
|
|
|
|
using System.Reflection;
|
2024-08-24 00:42:01 +01:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace SPT.SinglePlayer.Patches.MainMenu;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Remove Tooltip and image from stash screen explaining to visit external site for more stash - EFT thing
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class RemoveStashUpgradeLabelPatch : ModulePatch
|
|
|
|
|
{
|
|
|
|
|
protected override MethodBase GetTargetMethod()
|
|
|
|
|
{
|
2024-08-24 09:12:03 +00:00
|
|
|
|
return typeof(InventoryScreen).GetMethod(nameof(InventoryScreen.Awake));
|
2024-08-24 00:42:01 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[PatchPostfix]
|
|
|
|
|
public static void Postfix(SimpleStashPanel __instance)
|
|
|
|
|
{
|
2024-08-24 09:12:03 +00:00
|
|
|
|
GameObject externalObtain = __instance.transform.Find("Items Panel/Stash Panel/Simple Panel/Header/ExternalObtain").gameObject;
|
|
|
|
|
if (externalObtain != null)
|
|
|
|
|
{
|
|
|
|
|
Object.Destroy(externalObtain);
|
|
|
|
|
}
|
2024-08-24 00:42:01 +01:00
|
|
|
|
}
|
|
|
|
|
}
|