using System.Diagnostics;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using HarmonyLib;
using Il2CppSLZ.Bonelab;
using MelonLoader;
using UnityEngine;
using yellowyears.AlwaysOnClipboards;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("Always On Clipboards")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany(null)]
[assembly: AssemblyProduct("Always On Clipboards")]
[assembly: AssemblyCopyright("Created by yellowyears")]
[assembly: AssemblyTrademark(null)]
[assembly: ComVisible(false)]
[assembly: AssemblyFileVersion("1.0.0")]
[assembly: NeutralResourcesLanguage("en")]
[assembly: MelonInfo(typeof(Main), "Always On Clipboards", "1.0.0", "yellowyears", "https://thunderstore.io/c/bonelab/p/yellowyears/AlwaysOnClipboards/")]
[assembly: MelonGame(null, null)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace yellowyears.AlwaysOnClipboards;
[HarmonyPatch(typeof(LoreClipboard))]
public static class LoreClipboardPatches
{
[HarmonyPatch("OnEnable")]
[HarmonyPrefix]
public static bool OnClipboardEnabled(LoreClipboard __instance)
{
__instance.ActiveText(true);
return false;
}
[HarmonyPatch("OnDisable")]
[HarmonyPrefix]
public static bool OnClipboardDisabled(LoreClipboard __instance)
{
return false;
}
}
[HarmonyPatch(typeof(LoreClipboardProxy))]
public static class LoreClipboardProxyPatches
{
[HarmonyPatch("OnSpawn")]
[HarmonyPostfix]
public static void OnClipboardSpawn(LoreClipboardProxy __instance, ref GameObject go)
{
if ((Object)(object)go != (Object)null)
{
go.SetActive(false);
go.SetActive(true);
}
}
}
public static class BuildInfo
{
public const string Name = "Always On Clipboards";
public const string Author = "yellowyears";
public const string Company = null;
public const string Version = "1.0.0";
public const string DownloadLink = "https://thunderstore.io/c/bonelab/p/yellowyears/AlwaysOnClipboards/";
}
internal class Main : MelonMod
{
}