mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
23 lines
710 B
C#
23 lines
710 B
C#
using System.Reflection;
|
|
using EFT.UI.Matchmaker;
|
|
using HarmonyLib;
|
|
using SPT.Reflection.Patching;
|
|
|
|
namespace SPT.SinglePlayer.Patches.MainMenu
|
|
{
|
|
public class DisableMatchmakerPlayerPreviewButtonsPatch : ModulePatch
|
|
{
|
|
protected override MethodBase GetTargetMethod()
|
|
{
|
|
return AccessTools.Method(typeof(MatchMakerPlayerPreview), nameof(MatchMakerPlayerPreview.Show));
|
|
}
|
|
|
|
[PatchPrefix]
|
|
public static void PatchPrefix(ref GClass3114 contextInteractions)
|
|
{
|
|
// clear with a null to stop "looking for group/create group" buttons
|
|
// they handle nulls so don't worry
|
|
contextInteractions = null;
|
|
}
|
|
}
|
|
} |