Decompiled source of AssetToolTipPlugin v1.3.0

AssetToolTip.dll

Decompiled a month ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using ModdingTales;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("RForRotatePlugin")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("D20ArmyKnife")]
[assembly: AssemblyProduct("RForRotatePlugin")]
[assembly: AssemblyCopyright("Copyright ©  2020")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("4e4deb5e-97f9-4901-bf67-6748a9c1229a")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace AssetToolTip
{
	[BepInPlugin("org.hollofox.plugins.AssetToolTip", "Asset Tool Tip", "1.3.0.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public sealed class AssetToolTip : BaseUnityPlugin
	{
		private const string Guid = "org.hollofox.plugins.AssetToolTip";

		private const string Version = "1.3.0.0";

		private void Awake()
		{
			//IL_0031: Unknown result type (might be due to invalid IL or missing references)
			((BaseUnityPlugin)this).Logger.LogInfo((object)"In Awake for AssetToolTip");
			Debug.Log((object)"AssetToolTip Plug-in loaded");
			ModdingUtils.Initialize((BaseUnityPlugin)(object)this, ((BaseUnityPlugin)this).Logger, "HolloFoxes'", false);
			new Harmony("org.hollofox.plugins.AssetToolTip").PatchAll();
		}
	}
}
namespace AssetToolTip.Patches
{
	[HarmonyPatch(typeof(UI_AssetBrowserSlotItem), "Setup")]
	internal sealed class UI_AssetBrowserSlotItemConstructorPatch
	{
		private static void Postfix(UI_AssetBrowserSlotItem __instance, ref DataItem dataItem)
		{
			((Component)__instance).gameObject.AddComponent<MouseTextOnHover>().mouseHoverText = dataItem.Name;
		}
	}
}