Decompiled source of NoBaboonButton v1.0.0

NoBaboonButton.dll

Decompiled 10 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("NoBaboonButton")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Delete the baboon/card button in the point scene")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NoBaboonButton")]
[assembly: AssemblyTitle("NoBaboonButton")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace NoBaboonButton;

[BepInPlugin("NoBaboonButton", "NoBaboonButton", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	[HarmonyPatch(typeof(PointSceneController), "Start")]
	public static class PointSceneControllerStartPatches
	{
		public static void Postfix()
		{
			GameObject.Find("Canvas/buttons/BABOON").SetActive(false);
			GameObject.Find("Canvas/buttons/CARDS").SetActive(false);
		}
	}

	[HarmonyPatch(typeof(PointSceneController), "showContinue")]
	public static class PointSceneControllerShowContinuePatches
	{
		public static void Postfix()
		{
			GameObject.Find("Canvas/buttons/BABOON").SetActive(false);
			GameObject.Find("Canvas/buttons/CARDS").SetActive(false);
		}
	}

	private void Awake()
	{
		//IL_0005: Unknown result type (might be due to invalid IL or missing references)
		new Harmony("NoBaboonButton").PatchAll();
	}
}
public static class PluginInfo
{
	public const string PLUGIN_GUID = "NoBaboonButton";

	public const string PLUGIN_NAME = "NoBaboonButton";

	public const string PLUGIN_VERSION = "1.0.0";
}