Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of NoLimitChatbox v1.0.1
NoLimitChatbox.dll
Decompiled a year agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using Mono.Cecil.Cil; using MonoMod.Cil; using MonoMod.RuntimeDetour; using TMPro; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("NoLimitChatbox")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("NoLimitChatbox")] [assembly: AssemblyTitle("NoLimitChatbox")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace NoLimitChatbox { [BepInPlugin("nickklmao.nolimitchatbox", "No Limit Chatbox", "1.0.1")] internal sealed class Entry : BaseUnityPlugin { [CompilerGenerated] private static class <>O { public static Action<Action<ChatManager>, ChatManager> <0>__ChatManager_AwakeHook; public static Manipulator <1>__ChatManager_StateActiveILHook; } private const string MOD_NAME = "No Limit Chatbox"; internal static readonly ManualLogSource logger = Logger.CreateLogSource("No Limit Chatbox"); private static void ChatManager_StateActiveILHook(ILContext il) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown ILCursor val = new ILCursor(il); val.GotoNext(new Func<Instruction, bool>[1] { (Instruction instruction) => ILPatternMatchingExt.MatchLdcI4(instruction, 50) }); val.Index -= 3; val.RemoveRange(29); } private static void ChatManager_AwakeHook(Action<ChatManager> orig, ChatManager self) { //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) orig(self); ((TMP_Text)self.chatText).enableWordWrapping = true; Vector2 sizeDelta = ((TMP_Text)self.chatText).rectTransform.sizeDelta; sizeDelta.x = 534f; ((TMP_Text)self.chatText).rectTransform.sizeDelta = sizeDelta; } private void Awake() { //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Expected O, but got Unknown logger.LogDebug((object)"Hooking `ChatManager.StateActive`"); new Hook((MethodBase)AccessTools.Method(typeof(ChatManager), "Awake", (Type[])null, (Type[])null), (Delegate)new Action<Action<ChatManager>, ChatManager>(ChatManager_AwakeHook)); logger.LogDebug((object)"Hooking `ChatManager.StateActive`"); MethodInfo methodInfo = AccessTools.Method(typeof(ChatManager), "StateActive", (Type[])null, (Type[])null); object obj = <>O.<1>__ChatManager_StateActiveILHook; if (obj == null) { Manipulator val = ChatManager_StateActiveILHook; <>O.<1>__ChatManager_StateActiveILHook = val; obj = (object)val; } new ILHook((MethodBase)methodInfo, (Manipulator)obj); } } }