using System; using System.CodeDom.Compiler; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Globalization; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Reflection; using System.Reflection.Emit; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using System.Xml; using ArabicSupportUnity; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using Discord; using Emgu.CV; using Emgu.CV.CvEnum; using Emgu.Util; using HarmonyLib; using Microsoft.CodeAnalysis; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using Sandbox; using ScriptableObjects; using SettingsMenu.Components; using TMPro; using UltrakULL.Harmony_Patches; using UltrakULL.Harmony_Patches.AudioSwaps; using UltrakULL.Harmony_Patches.Subtitles; using UltrakULL.audio; using UltrakULL.json; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.Events; using UnityEngine.InputSystem; using UnityEngine.Networking; using UnityEngine.SceneManagement; using UnityEngine.TextCore.LowLevel; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("UltrakULL")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("UltrakULL")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("a4a60eef-e5f3-4a77-b125-236fbf44cca4")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.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; } } } [HarmonyPatch(typeof(MenuActSelect), "OnEnable")] public static class ActLockedTitle { [HarmonyPostfix] public static void Postfix(MenuActSelect __instance) { switch (GetPath(((Component)__instance).transform)) { case "Canvas/Chapter Select/Chapters/Act I": __instance.nameWhenDisabled = LanguageManager.CurrentLanguage.frontend.chapter_act1_lock; break; case "Canvas/Chapter Select/Chapters/Act II": __instance.nameWhenDisabled = LanguageManager.CurrentLanguage.frontend.chapter_act2_lock; break; case "Canvas/Chapter Select/Chapters/Act III": __instance.nameWhenDisabled = LanguageManager.CurrentLanguage.frontend.chapter_act3_lock; break; } TMP_Text component = ((Component)((Component)__instance).transform.GetChild(0)).GetComponent(); if (!((Selectable)((Component)__instance).GetComponent