using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Text; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using TMPro; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyCompany("MapRoutes")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.5.0")] [assembly: AssemblyInformationalVersion("1.0.5")] [assembly: AssemblyProduct("MapRoutes")] [assembly: AssemblyTitle("MapRoutes")] [assembly: AssemblyVersion("1.0.5.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [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 MapRoutes { internal static class ConfirmDialog { [CompilerGenerated] private static class <>O { public static UnityAction <0>__Confirm; public static UnityAction <1>__Hide; } private static RectTransform _root; private static TextMeshProUGUI _messageLabel; private static Action _onConfirm; internal static void Build(Transform parent, TMP_FontAsset font) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_015b: 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_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Unknown result type (might be due to invalid IL or missing references) //IL_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01da: Unknown result type (might be due to invalid IL or missing references) //IL_021c: Unknown result type (might be due to invalid IL or missing references) //IL_0262: Unknown result type (might be due to invalid IL or missing references) //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_0295: Unknown result type (might be due to invalid IL or missing references) //IL_02a4: Unknown result type (might be due to invalid IL or missing references) //IL_02b3: Unknown result type (might be due to invalid IL or missing references) //IL_02c2: Unknown result type (might be due to invalid IL or missing references) //IL_024d: Unknown result type (might be due to invalid IL or missing references) //IL_0252: Unknown result type (might be due to invalid IL or missing references) //IL_0258: Expected O, but got Unknown //IL_0304: Unknown result type (might be due to invalid IL or missing references) //IL_034a: Unknown result type (might be due to invalid IL or missing references) //IL_0335: Unknown result type (might be due to invalid IL or missing references) //IL_033a: Unknown result type (might be due to invalid IL or missing references) //IL_0340: Expected O, but got Unknown if (!((Object)(object)parent.Find("MapRoutesConfirmDialog") != (Object)null)) { _root = CreateRect(parent, "MapRoutesConfirmDialog", new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(0f, 60f), new Vector2(360f, 110f)); Image val = ((Component)_root).gameObject.AddComponent(); Sprite itemBackground = ValheimUiSprites.ItemBackground; if ((Object)(object)itemBackground != (Object)null) { val.sprite = itemBackground; val.type = (Type)1; } ((Graphic)val).color = new Color(0.05f, 0.05f, 0.06f, 0.95f); _messageLabel = ((Component)CreateRect((Transform)(object)_root, "Message", new Vector2(0f, 1f), new Vector2(1f, 1f), new Vector2(0.5f, 1f), new Vector2(0f, -12f), new Vector2(-24f, 52f))).gameObject.AddComponent(); if ((Object)(object)font != (Object)null) { ((TMP_Text)_messageLabel).font = font; } ((TMP_Text)_messageLabel).text = "Точно очистить все линии? Это удалит и то, что нарисовали друзья, у всех."; ((TMP_Text)_messageLabel).fontSize = 13f; ((Graphic)_messageLabel).color = Color.white; ((TMP_Text)_messageLabel).alignment = (TextAlignmentOptions)514; ((TMP_Text)_messageLabel).textWrappingMode = (TextWrappingModes)1; ((Graphic)_messageLabel).raycastTarget = false; RectTransform obj = CreateRect((Transform)(object)_root, "Yes", new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(1f, 0f), new Vector2(-8f, 12f), new Vector2(150f, 32f)); Image val2 = ((Component)obj).gameObject.AddComponent(); if ((Object)(object)itemBackground != (Object)null) { val2.sprite = itemBackground; val2.type = (Type)1; } ((Graphic)val2).color = new Color(0.75f, 0.15f, 0.12f, 1f); Button obj2 = ((Component)obj).gameObject.AddComponent