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 VerboseCompany v1.0.0
VerboseCompany.dll
Decompiled 2 years agousing System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using TMPro; using UnityEngine; using UnityEngine.UI; using VerboseCompany.Properties; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = "")] [assembly: AssemblyCompany("VerboseCompany")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("VerboseCompany")] [assembly: AssemblyTitle("VerboseCompany")] [assembly: AssemblyVersion("1.0.0.0")] namespace VerboseCompany { [BepInPlugin("dev.parax.lethalcompany.verbosecompany", "Verbose Company", "1.0.0")] public class Main : BaseUnityPlugin { private const string ModId = "dev.parax.lethalcompany.verbosecompany"; private const string ModName = "Verbose Company"; private const string Version = "1.0.0"; public static AssetBundle verboseCompanyAssets; public static Texture2D titleFontAsset; private void Awake() { //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Expected O, but got Unknown verboseCompanyAssets = AssetBundle.LoadFromMemory(Resources.verbosecompanyassets); verboseCompanyAssets.LoadAllAssets(); titleFontAsset = verboseCompanyAssets.LoadAsset<Texture2D>("filsonfontasset"); Harmony val = new Harmony("dev.parax.lethalcompany.verbosecompany"); val.PatchAll(); } } [HarmonyPatch(typeof(MenuManager))] public class TitleText_MenuManagerPatch { public static string[] LethalSyn = new string[15] { "Lethal", "Deadly", "Dangerous", "Unsafe", "Terminal", "Calamitous", "Ruinous", "Harmful", "Baneful", "Hazardous", "Treacherous", "Perilous", "Fatal", "Adverse", "Dicey" }; public static string[] CompanySyn = new string[14] { "Company", "Corporation", "Business", "Organization", "Establishment", "Firm", "Operation", "Collective", "Agency", "Conglomerate", "Enterprise", "Association", "Institution", "Squad" }; public static GameObject TitleObj; public static TextMeshProUGUI TitleObjText; [HarmonyPatch("Start")] [HarmonyPrefix] private static void Start() { //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Unknown result type (might be due to invalid IL or missing references) //IL_01e3: Unknown result type (might be due to invalid IL or missing references) int num = Random.Range(0, LethalSyn.Length); int num2 = Random.Range(0, CompanySyn.Length); TitleObj = Object.Instantiate<GameObject>(GameObject.Find("Canvas/MenuContainer/MainButtons/HostButton")); ((Object)TitleObj.transform).name = "TitleObj"; TitleObj.transform.SetParent(GameObject.Find("Canvas/MenuContainer").transform); TitleObj.transform.rotation = new Quaternion(0f, 0f, 0f, 0f); TitleObj.transform.localScale = new Vector3(1f, 1f, 1f); TitleObj.transform.localPosition = new Vector3(0f, 140f, 0f); Object.Destroy((Object)(object)TitleObj.GetComponent(typeof(Image))); Object.Destroy((Object)(object)TitleObj.GetComponent(typeof(Button))); Object.Destroy((Object)(object)TitleObj.GetComponent(typeof(Animator))); Object.Destroy((Object)(object)TitleObj.transform.GetChild(0)); Component component = GameObject.Find("Canvas/MenuContainer/TitleObj/Text (TMP)").GetComponent(typeof(TextMeshProUGUI)); TitleObjText = (TextMeshProUGUI)(object)((component is TextMeshProUGUI) ? component : null); ((TMP_Text)TitleObjText).text = LethalSyn[num].ToUpper() + "\n" + CompanySyn[num2].ToUpper(); ((TMP_Text)TitleObjText).faceColor = Color32.op_Implicit(new Color(1f, 0f, 0f)); ((TMP_Text)TitleObjText).fontSize = 110f; Component component2 = ((Component)TitleObjText).GetComponent(typeof(RectTransform)); RectTransform val = (RectTransform)(object)((component2 is RectTransform) ? component2 : null); val.sizeDelta = new Vector2(1000f, 100f); ((TMP_Text)TitleObjText).alignment = (TextAlignmentOptions)4098; ((TMP_Text)TitleObjText).verticalAlignment = (VerticalAlignmentOptions)256; ((TMP_Text)TitleObjText).lineSpacing = -52f; ((TMP_Text)TitleObjText).characterSpacing = -12f; GameObject.Find("Canvas/MenuContainer/MainButtons/HeaderImage").SetActive(false); } [HarmonyPatch("Update")] [HarmonyPrefix] private static void Update() { TitleObj.SetActive(GameObject.Find("Canvas/MenuContainer/MainButtons").activeSelf); } } } namespace VerboseCompany.Properties { [GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] [DebuggerNonUserCode] [CompilerGenerated] internal class Resources { private static ResourceManager resourceMan; private static CultureInfo resourceCulture; [EditorBrowsable(EditorBrowsableState.Advanced)] internal static ResourceManager ResourceManager { get { if (resourceMan == null) { ResourceManager resourceManager = new ResourceManager("VerboseCompany.Properties.Resources", typeof(Resources).Assembly); resourceMan = resourceManager; } return resourceMan; } } [EditorBrowsable(EditorBrowsableState.Advanced)] internal static CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } internal static byte[] verbosecompanyassets { get { object @object = ResourceManager.GetObject("verbosecompanyassets", resourceCulture); return (byte[])@object; } } internal Resources() { } } }