mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
Add patch to disable StashExpansion label and tooltip
This commit is contained in:
parent
112e378878
commit
fc6124dfc8
@ -0,0 +1,25 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using EFT.UI;
|
||||||
|
using HarmonyLib;
|
||||||
|
using SPT.Reflection.Patching;
|
||||||
|
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()
|
||||||
|
{
|
||||||
|
// InventoryScreen has 2 Show methods
|
||||||
|
return AccessTools.FirstMethod(typeof(InventoryScreen), info => info.Name == "Show");
|
||||||
|
}
|
||||||
|
|
||||||
|
[PatchPostfix]
|
||||||
|
public static void Postfix(SimpleStashPanel __instance)
|
||||||
|
{
|
||||||
|
Object.Destroy(__instance.transform.Find("Items Panel/Stash Panel/Simple Panel/Header/ExternalObtain").gameObject);
|
||||||
|
}
|
||||||
|
}
|
@ -61,6 +61,7 @@ namespace SPT.SinglePlayer
|
|||||||
new FixSavageInventoryScreenPatch().Enable();
|
new FixSavageInventoryScreenPatch().Enable();
|
||||||
new InsuranceScreenPatch().Enable();
|
new InsuranceScreenPatch().Enable();
|
||||||
new FixQuestAchieveControllersPatch().Enable();
|
new FixQuestAchieveControllersPatch().Enable();
|
||||||
|
new RemoveStashUpgradeLabelPatch().Enable();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user