using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using System.Text.RegularExpressions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using OverworkedUI.Core; using OverworkedUI.Core.Modules.Data; using OverworkedUI.Core.Modules.Host; using OverworkedUI.Core.Patches; using OverworkedUi; using Steamworks; using TMPro; using Unity.Netcode; 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: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("OverworkedUI")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("OverworkedUI")] [assembly: AssemblyTitle("OverworkedUI")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [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.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] [Microsoft.CodeAnalysis.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] [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; } } } public class OwButton : Selectable, IPointerClickHandler, IEventSystemHandler { public UnityEvent onClick = new UnityEvent(); public void OnPointerClick(PointerEventData eventData) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Invalid comparison between Unknown and I4 bool flag = (int)eventData.button == 0; if ((int)eventData.button == 0 || (int)eventData.button == 1) { onClick.Invoke(flag); } } } public class OwHostHandler : MonoBehaviour { public GameObject Title; public GameObject LobbyName; public GameObject Confirm; public GameObject Back; public GameObject Saves; public GameObject Config; public GameObject SavesHolder; public GameObject ConfigHolder; public GameObject Public; public GameObject Private; public GameObject OwUi; public GameObject SelectSaveButtonPrefab; public GameObject ConfigHolderPrefab; public GameObject ConfigTextPrefab; public GameObject ConfigButtonPrefab; public int creditsAmount = 60; private int _saveCount = 0; private Dictionary TerminalConfig = new Dictionary(); public int SelectedSaveFileIndex { get; private set; } = -1; public bool IsNewSave { get; private set; } = false; public bool IsModded { get; private set; } = true; public bool IsPublic { get; private set; } = true; public void SetOwUiRoast(string roast) { ((TMP_Text)OwUi.GetComponent()).text = roast; } public void UpdateVisibility(bool isLobbyPublic) { //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_008f: 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_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) Image component = Public.GetComponent(); Image component2 = Private.GetComponent(); if (isLobbyPublic) { ((Graphic)component).color = Color32.op_Implicit(new Color32((byte)253, (byte)148, (byte)69, byte.MaxValue)); ((Graphic)component2).color = Color32.op_Implicit(new Color32((byte)118, (byte)47, (byte)47, byte.MaxValue)); } else { ((Graphic)component2).color = Color32.op_Implicit(new Color32((byte)253, (byte)148, (byte)69, byte.MaxValue)); ((Graphic)component).color = Color32.op_Implicit(new Color32((byte)118, (byte)47, (byte)47, byte.MaxValue)); } IsPublic = isLobbyPublic; } public void InitializeVisibility(Action callback) { //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Expected O, but got Unknown ((UnityEvent)Public.GetComponent