mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:30:46 -05:00
27 lines
771 B
C#
27 lines
771 B
C#
using EFT.UI;
|
|
using SPT.Reflection.Patching;
|
|
using System.Reflection;
|
|
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()
|
|
{
|
|
return typeof(InventoryScreen).GetMethod(nameof(InventoryScreen.Awake));
|
|
}
|
|
|
|
[PatchPostfix]
|
|
public static void Postfix(SimpleStashPanel __instance)
|
|
{
|
|
GameObject externalObtain = __instance.transform.Find("Items Panel/Stash Panel/Simple Panel/Header/ExternalObtain").gameObject;
|
|
if (externalObtain != null)
|
|
{
|
|
Object.Destroy(externalObtain);
|
|
}
|
|
}
|
|
} |