using System; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using Photon.Pun; using Photon.Realtime; using TMPro; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.Events; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("YonDev.CopyCat")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("0.1.0.0")] [assembly: AssemblyInformationalVersion("0.1.0+3e69e3909a771a54e80e4d6650ac044209ca6bf4")] [assembly: AssemblyProduct("YonDev.CopyCat")] [assembly: AssemblyTitle("CopyCat")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.1.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } [CompilerGenerated] [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 BepInEx { [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] [Conditional("CodeGeneration")] [Embedded] internal sealed class BepInAutoPluginAttribute : Attribute { public BepInAutoPluginAttribute(string? id = null, string? name = null, string? version = null) { } } } namespace BepInEx.Preloader.Core.Patching { [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] [Conditional("CodeGeneration")] [Embedded] internal sealed class PatcherAutoPluginAttribute : Attribute { public PatcherAutoPluginAttribute(string? id = null, string? name = null, string? version = null) { } } } namespace Microsoft.CodeAnalysis { [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace CopyCat { [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("YonDev.CopyCat", "CopyCat", "0.1.0")] internal class Plugin : BaseUnityPlugin { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static UnityAction <>9__15_0; public static UnityAction <>9__17_0; internal void b__15_0() { PlayersMenu.SetActive(false); } internal void b__17_0() { Log.LogInfo((object)"Right-clicked loadout"); if ((Object)(object)PlayersMenu != (Object)null) { PopulatePlayerList(); PlayersMenu.SetActive(true); PlayersMenu.transform.SetAsLastSibling(); } } } private Harmony harmony = null; public const string Id = "YonDev.CopyCat"; internal static ManualLogSource Log { get; private set; } internal static Plugin Instance { get; private set; } public static GameObject? PlayersMenu { get; private set; } public static string Name => "CopyCat"; public static string Version => "0.1.0"; private void Awake() { //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Expected O, but got Unknown Log = ((BaseUnityPlugin)this).Logger; Instance = this; Log.LogInfo((object)("Plugin " + Name + " is loaded!")); harmony = new Harmony(Name); harmony.PatchAll(); } public static void SetupCustomUI(GameObject wardrobeObj) { if (!((Object)(object)wardrobeObj == (Object)null)) { if ((Object)(object)PlayersMenu == (Object)null) { CreatePlayerSelectionMenu(wardrobeObj.transform); } AddRightClicks(wardrobeObj); AddDeleteButtons(wardrobeObj); } } private static void CreatePlayerSelectionMenu(Transform parent) { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Expected O, but got Unknown //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_00df: Expected O, but got Unknown //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_015e: Unknown result type (might be due to invalid IL or missing references) //IL_01a8: Unknown result type (might be due to invalid IL or missing references) //IL_01af: Expected O, but got Unknown //IL_01d7: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_0234: Unknown result type (might be due to invalid IL or missing references) //IL_023b: Expected O, but got Unknown //IL_0260: Unknown result type (might be due to invalid IL or missing references) //IL_0277: Unknown result type (might be due to invalid IL or missing references) //IL_028e: Unknown result type (might be due to invalid IL or missing references) //IL_02a5: Unknown result type (might be due to invalid IL or missing references) //IL_034e: Unknown result type (might be due to invalid IL or missing references) //IL_0355: Expected O, but got Unknown //IL_0386: Unknown result type (might be due to invalid IL or missing references) //IL_039d: Unknown result type (might be due to invalid IL or missing references) //IL_03c2: Unknown result type (might be due to invalid IL or missing references) //IL_043d: Unknown result type (might be due to invalid IL or missing references) //IL_0444: Expected O, but got Unknown //IL_048f: Unknown result type (might be due to invalid IL or missing references) //IL_03fa: Unknown result type (might be due to invalid IL or missing references) //IL_03ff: Unknown result type (might be due to invalid IL or missing references) //IL_0405: Expected O, but got Unknown PlayersMenu = new GameObject("PlayerSelectionPanel", new Type[3] { typeof(RectTransform), typeof(CanvasRenderer), typeof(Image) }); RectTransform component = PlayersMenu.GetComponent(); ((Transform)component).SetParent(parent, false); component.sizeDelta = new Vector2(350f, 500f); component.anchoredPosition = Vector2.zero; Image component2 = PlayersMenu.GetComponent(); ((Graphic)component2).color = new Color(0.12f, 0.12f, 0.12f, 0.98f); ((Graphic)component2).raycastTarget = true; GameObject val = new GameObject("Header", new Type[3] { typeof(RectTransform), typeof(CanvasRenderer), typeof(TextMeshProUGUI) }); RectTransform component3 = val.GetComponent(); ((Transform)component3).SetParent(PlayersMenu.transform, false); component3.anchoredPosition = new Vector2(0f, 220f); component3.sizeDelta = new Vector2(330f, 40f); TextMeshProUGUI component4 = val.GetComponent(); ((TMP_Text)component4).text = "SELECT PLAYER TO STEAL FROM"; ((TMP_Text)component4).fontSize = 16f; ((TMP_Text)component4).fontStyle = (FontStyles)1; ((TMP_Text)component4).alignment = (TextAlignmentOptions)514; ((Graphic)component4).color = Color.yellow; GameObject val2 = new GameObject("ScrollView", new Type[4] { typeof(RectTransform), typeof(CanvasRenderer), typeof(ScrollRect), typeof(RectMask2D) }); RectTransform component5 = val2.GetComponent(); ((Transform)component5).SetParent(PlayersMenu.transform, false); component5.anchoredPosition = new Vector2(0f, -20f); component5.sizeDelta = new Vector2(320f, 400f); ScrollRect component6 = val2.GetComponent(); GameObject val3 = new GameObject("Content", new Type[3] { typeof(RectTransform), typeof(VerticalLayoutGroup), typeof(ContentSizeFitter) }); RectTransform component7 = val3.GetComponent(); ((Transform)component7).SetParent(val2.transform, false); component7.anchorMin = new Vector2(0.5f, 1f); component7.anchorMax = new Vector2(0.5f, 1f); component7.pivot = new Vector2(0.5f, 1f); component7.sizeDelta = new Vector2(300f, 0f); VerticalLayoutGroup component8 = val3.GetComponent(); ((HorizontalOrVerticalLayoutGroup)component8).spacing = 8f; ((LayoutGroup)component8).childAlignment = (TextAnchor)1; ((HorizontalOrVerticalLayoutGroup)component8).childControlHeight = false; ((HorizontalOrVerticalLayoutGroup)component8).childControlWidth = false; ContentSizeFitter component9 = val3.GetComponent(); component9.verticalFit = (FitMode)2; component6.content = component7; component6.horizontal = false; component6.vertical = true; GameObject val4 = new GameObject("CloseButton", new Type[4] { typeof(RectTransform), typeof(CanvasRenderer), typeof(Image), typeof(Button) }); val4.layer = 5; RectTransform component10 = val4.GetComponent(); ((Transform)component10).SetParent(PlayersMenu.transform, false); component10.anchoredPosition = new Vector2(145f, 225f); component10.sizeDelta = new Vector2(30f, 30f); Image component11 = val4.GetComponent(); ((Graphic)component11).color = new Color(0.8f, 0.3f, 0.3f); ((Graphic)component11).raycastTarget = true; Button component12 = val4.GetComponent