Decompiled source of MycoModConfig v0.1.1

BepInEx/plugins/dev.funlennysub.MycoModConfig.dll

Decompiled 2 days ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using System.Text.RegularExpressions;
using BepInEx;
using BepInEx.Bootstrap;
using BepInEx.Configuration;
using BepInEx.Logging;
using Md.Menu;
using Md.PlayerOptions;
using Md.StartMenu;
using Md.WindowSystem;
using Microsoft.CodeAnalysis;
using MonoDetour;
using MonoDetour.Cil;
using MonoDetour.DetourTypes;
using MonoDetour.HookGen;
using MycoMenuLib;
using Pigeon.Movement;
using Pigeon.UI;
using TMPro;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.Events;
using UnityEngine.InputSystem;
using UnityEngine.UI;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: IgnoresAccessChecksTo("Unity.InputSystem")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("dev.funlennysub.MycoModConfig")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("0.1.1.0")]
[assembly: AssemblyInformationalVersion("0.1.1-alpha.0.2+869bf693efb311b463adf0095ec7331281d23357")]
[assembly: AssemblyProduct("MycoModConfig")]
[assembly: AssemblyTitle("dev.funlennysub.MycoModConfig")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
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 Md.WindowSystem
{
	internal static class CloseTop
	{
		public delegate void PrefixSignature(WindowSystem self);

		public delegate ReturnFlow ControlFlowPrefixSignature(WindowSystem self, ref bool returnValue);

		public delegate void PostfixSignature(WindowSystem self, ref bool returnValue);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(WindowSystem).GetMethod("CloseTop", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("WindowSystem", "CloseTop");
		}
	}
	internal static class OpenWindow
	{
		public delegate void PrefixSignature(WindowSystem self, ref Window window);

		public delegate ReturnFlow ControlFlowPrefixSignature(WindowSystem self, ref Window window);

		public delegate void PostfixSignature(WindowSystem self, ref Window window);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(WindowSystem).GetMethod("OpenWindow", (BindingFlags)(-1), null, new Type[1] { typeof(Window) }, null) ?? throw new MissingMethodException("WindowSystem", "OpenWindow");
		}
	}
	internal static class OpenOverlayWindow
	{
		public delegate void PrefixSignature(WindowSystem self, ref Window window);

		public delegate ReturnFlow ControlFlowPrefixSignature(WindowSystem self, ref Window window);

		public delegate void PostfixSignature(WindowSystem self, ref Window window);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(WindowSystem).GetMethod("OpenOverlayWindow", (BindingFlags)(-1), null, new Type[1] { typeof(Window) }, null) ?? throw new MissingMethodException("WindowSystem", "OpenOverlayWindow");
		}
	}
	internal static class CloseWindow
	{
		public delegate void PrefixSignature(WindowSystem self, ref Window window);

		public delegate ReturnFlow ControlFlowPrefixSignature(WindowSystem self, ref Window window);

		public delegate void PostfixSignature(WindowSystem self, ref Window window);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(WindowSystem).GetMethod("CloseWindow", (BindingFlags)(-1), null, new Type[1] { typeof(Window) }, null) ?? throw new MissingMethodException("WindowSystem", "CloseWindow");
		}
	}
	internal static class CloseAll
	{
		public delegate void PrefixSignature(WindowSystem self, ref bool forceClose);

		public delegate ReturnFlow ControlFlowPrefixSignature(WindowSystem self, ref bool forceClose);

		public delegate void PostfixSignature(WindowSystem self, ref bool forceClose);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(WindowSystem).GetMethod("CloseAll", (BindingFlags)(-1), null, new Type[1] { typeof(bool) }, null) ?? throw new MissingMethodException("WindowSystem", "CloseAll");
		}
	}
	internal static class Start
	{
		public delegate void PrefixSignature(WindowSystem self);

		public delegate ReturnFlow ControlFlowPrefixSignature(WindowSystem self);

		public delegate void PostfixSignature(WindowSystem self);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(WindowSystem).GetMethod("Start", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("WindowSystem", "Start");
		}
	}
	internal static class add_OnWindowOpenedOrClosed
	{
	}
	internal static class remove_OnWindowOpenedOrClosed
	{
	}
	internal static class add_OnAllWindowsClosed
	{
	}
	internal static class remove_OnAllWindowsClosed
	{
	}
	internal static class add_OnEscape
	{
	}
	internal static class remove_OnEscape
	{
	}
	internal static class get_Count
	{
	}
	internal static class get_Item
	{
	}
	internal static class OnDestroy
	{
	}
	internal static class OnCancelPressed
	{
	}
	internal static class TryEscape
	{
	}
	internal static class OpenWindowFromPrefab
	{
	}
	internal static class CloseWindowFromPrefab
	{
	}
	internal static class GetTop
	{
	}
	internal static class CloseCurrentAndOpenWindow
	{
	}
	internal static class OpenDefault
	{
	}
	internal static class _ctor
	{
	}
}
namespace Md.StartMenu
{
	internal static class Join
	{
		public delegate void PrefixSignature(ref ulong id);

		public delegate ReturnFlow ControlFlowPrefixSignature(ref ulong id);

		public delegate void PostfixSignature(ref ulong id);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(StartMenu).GetMethod("Join", (BindingFlags)(-1), null, new Type[1] { typeof(ulong) }, null) ?? throw new MissingMethodException("StartMenu", "Join");
		}
	}
	internal static class Update
	{
		public delegate void PrefixSignature(StartMenu self);

		public delegate ReturnFlow ControlFlowPrefixSignature(StartMenu self);

		public delegate void PostfixSignature(StartMenu self);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(StartMenu).GetMethod("Update", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("StartMenu", "Update");
		}
	}
	internal static class Start
	{
		public delegate void PrefixSignature(StartMenu self);

		public delegate ReturnFlow ControlFlowPrefixSignature(StartMenu self);

		public delegate void PostfixSignature(StartMenu self);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(StartMenu).GetMethod("Start", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("StartMenu", "Start");
		}
	}
	internal static class get_Instance
	{
	}
	internal static class set_Instance
	{
	}
	internal static class get_DefaultNavSelectable
	{
	}
	internal static class get_DontLoadMenuOnShutdown
	{
	}
	internal static class set_DontLoadMenuOnShutdown
	{
	}
	internal static class ActivateCover
	{
	}
	internal static class Awake
	{
	}
	internal static class OnWindowOpenedOrClosed
	{
	}
	internal static class TryUnlockPigeon
	{
	}
	internal static class UnlockEarlyAccessReward
	{
	}
	internal static class OnMusicLoaded
	{
	}
	internal static class OnDestroy
	{
	}
	internal static class PlayConfetti
	{
	}
	internal static class ShowDisconnectedWindowOnLoad
	{
	}
	internal static class OnConnected
	{
	}
	internal static class OnReceiveMissionData
	{
	}
	internal static class OnDisconnected
	{
	}
	internal static class Exit
	{
	}
	internal static class Host
	{
	}
	internal static class StartHostOnSceneLoad
	{
	}
	internal static class PasteJoinCode
	{
	}
	internal static class OnQuit
	{
	}
	internal static class JoinLobbyFromLaunchArgsCoroutine
	{
	}
	internal static class InitializeCoroutine
	{
	}
	internal static class OpenDiscordInvite
	{
	}
	internal static class ShowPatchNotes
	{
	}
	internal static class MoveContainerYOnScroll
	{
	}
	internal static class OpenMatchmakingWindow
	{
	}
	internal static class OpenSettingsWindow
	{
	}
	internal static class OnMatchmakingWindowClosed
	{
	}
	internal static class MoveMenu
	{
	}
	internal static class OpenCreditsWindow
	{
	}
	internal static class ScrollCredits
	{
	}
	internal static class RocketCoroutine
	{
	}
	internal static class UpdateVisibilityButton
	{
	}
	internal static class OnVisibilityButtonClicked
	{
	}
	internal static class OpenProfileSelect
	{
	}
	internal static class SelectProfile
	{
	}
	internal static class _ctor
	{
	}
	internal static class _cctor
	{
	}
	internal static class __ShowDisconnectedWindowOnLoad_g__ShowWindowCoroutine_94_0_d
	{
		internal static class _ctor
		{
		}

		internal static class System_IDisposable_Dispose
		{
		}

		internal static class MoveNext
		{
		}

		internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
		{
		}

		internal static class System_Collections_IEnumerator_Reset
		{
		}

		internal static class System_Collections_IEnumerator_get_Current
		{
		}
	}
	internal static class _Host_d__99
	{
		internal static class _ctor
		{
		}

		internal static class MoveNext
		{
		}

		internal static class SetStateMachine
		{
		}
	}
	internal static class _InitializeCoroutine_d__105
	{
		internal static class _ctor
		{
		}

		internal static class System_IDisposable_Dispose
		{
		}

		internal static class MoveNext
		{
		}

		internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
		{
		}

		internal static class System_Collections_IEnumerator_Reset
		{
		}

		internal static class System_Collections_IEnumerator_get_Current
		{
		}
	}
	internal static class _JoinLobbyFromLaunchArgsCoroutine_d__104
	{
		internal static class _ctor
		{
		}

		internal static class System_IDisposable_Dispose
		{
		}

		internal static class MoveNext
		{
		}

		internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
		{
		}

		internal static class System_Collections_IEnumerator_Reset
		{
		}

		internal static class System_Collections_IEnumerator_get_Current
		{
		}
	}
	internal static class _MoveMenu_d__113
	{
		internal static class _ctor
		{
		}

		internal static class System_IDisposable_Dispose
		{
		}

		internal static class MoveNext
		{
		}

		internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
		{
		}

		internal static class System_Collections_IEnumerator_Reset
		{
		}

		internal static class System_Collections_IEnumerator_get_Current
		{
		}
	}
	internal static class _RocketCoroutine_d__116
	{
		internal static class _ctor
		{
		}

		internal static class System_IDisposable_Dispose
		{
		}

		internal static class MoveNext
		{
		}

		internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
		{
		}

		internal static class System_Collections_IEnumerator_Reset
		{
		}

		internal static class System_Collections_IEnumerator_get_Current
		{
		}
	}
}
namespace Md.PlayerOptions
{
	internal static class ConfigDictionary
	{
		internal static class Clear
		{
			public delegate void PrefixSignature(ConfigDictionary self);

			public delegate ReturnFlow ControlFlowPrefixSignature(ConfigDictionary self);

			public delegate void PostfixSignature(ConfigDictionary self);

			public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
			}

			public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
			}

			public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
			}

			public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
			}

			public static MethodBase Target()
			{
				return typeof(ConfigDictionary).GetMethod("Clear", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("PlayerOptions+ConfigDictionary", "Clear");
			}
		}

		internal static class Add
		{
			public delegate void PrefixSignature(ConfigDictionary self, ref string key, ref object value);

			public delegate ReturnFlow ControlFlowPrefixSignature(ConfigDictionary self, ref string key, ref object value);

			public delegate void PostfixSignature(ConfigDictionary self, ref string key, ref object value);

			public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
			}

			public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
			}

			public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
			}

			public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
			}

			public static MethodBase Target()
			{
				return typeof(ConfigDictionary).GetMethod("Add", (BindingFlags)(-1), null, new Type[2]
				{
					typeof(string),
					typeof(object)
				}, null) ?? throw new MissingMethodException("PlayerOptions+ConfigDictionary", "Add");
			}
		}

		internal static class Remove
		{
			public delegate void PrefixSignature(ConfigDictionary self, ref string key);

			public delegate ReturnFlow ControlFlowPrefixSignature(ConfigDictionary self, ref string key);

			public delegate void PostfixSignature(ConfigDictionary self, ref string key);

			public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
			}

			public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
			}

			public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
			}

			public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
			{
				return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
			}

			public static MethodBase Target()
			{
				return typeof(ConfigDictionary).GetMethod("Remove", (BindingFlags)(-1), null, new Type[1] { typeof(string) }, null) ?? throw new MissingMethodException("PlayerOptions+ConfigDictionary", "Remove");
			}
		}

		internal static class get_Keys
		{
		}

		internal static class get_Values
		{
		}

		internal static class get_Count
		{
		}

		internal static class _ctor
		{
		}

		internal static class _ctor_System_Int32
		{
		}

		internal static class get_Item
		{
		}

		internal static class set_Item
		{
		}
	}
	internal static class SetSection
	{
		public delegate void PrefixSignature(PlayerOptions self, ref int index);

		public delegate ReturnFlow ControlFlowPrefixSignature(PlayerOptions self, ref int index);

		public delegate void PostfixSignature(PlayerOptions self, ref int index);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(PlayerOptions).GetMethod("SetSection", (BindingFlags)(-1), null, new Type[1] { typeof(int) }, null) ?? throw new MissingMethodException("PlayerOptions", "SetSection");
		}
	}
	internal static class Update
	{
		public delegate void PrefixSignature(PlayerOptions self);

		public delegate ReturnFlow ControlFlowPrefixSignature(PlayerOptions self);

		public delegate void PostfixSignature(PlayerOptions self);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(PlayerOptions).GetMethod("Update", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("PlayerOptions", "Update");
		}
	}
	internal static class Start
	{
		public delegate void PrefixSignature(PlayerOptions self);

		public delegate ReturnFlow ControlFlowPrefixSignature(PlayerOptions self);

		public delegate void PostfixSignature(PlayerOptions self);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(PlayerOptions).GetMethod("Start", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("PlayerOptions", "Start");
		}
	}
	internal static class TryClose
	{
		public delegate void PrefixSignature(PlayerOptions self);

		public delegate ReturnFlow ControlFlowPrefixSignature(PlayerOptions self, ref bool returnValue);

		public delegate void PostfixSignature(PlayerOptions self, ref bool returnValue);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(PlayerOptions).GetMethod("TryClose", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("PlayerOptions", "TryClose");
		}
	}
	internal static class get_ConfigPath
	{
	}
	internal static class get_Instance
	{
	}
	internal static class get_FoundExistingConfig
	{
	}
	internal static class set_FoundExistingConfig
	{
	}
	internal static class add_OnRebind
	{
	}
	internal static class remove_OnRebind
	{
	}
	internal static class get_IsRebindPopupActive
	{
	}
	internal static class SetConfig_System_String_System_Object
	{
	}
	internal static class GetConfig_System_String
	{
	}
	internal static class InitializeConfig
	{
	}
	internal static class SaveConfig
	{
	}
	internal static class Awake
	{
	}
	internal static class OnDestroy
	{
	}
	internal static class OnEnable
	{
	}
	internal static class OnDisable
	{
	}
	internal static class OnOpen
	{
	}
	internal static class OnCloseCallback
	{
	}
	internal static class SetupSelectedButton
	{
	}
	internal static class ApplyAfter
	{
	}
	internal static class UpdateGraphicColor
	{
	}
	internal static class SetSectionCoroutine
	{
	}
	internal static class RebindKey
	{
	}
	internal static class OnRebindMatch
	{
	}
	internal static class GetGenericBindingPath
	{
	}
	internal static class GetGenericLayout
	{
	}
	internal static class ConcatBindingPath
	{
	}
	internal static class IsNonGenericLayout
	{
	}
	internal static class LayoutHasControl
	{
	}
	internal static class GeneralizeSavedBindings
	{
	}
	internal static class OnRebindComplete
	{
	}
	internal static class SelectLastRebindOption
	{
	}
	internal static class DeactivateRebindPopup
	{
	}
	internal static class OnRebindCanceled
	{
	}
	internal static class SetMasterVolume
	{
	}
	internal static class SetSFXVolume
	{
	}
	internal static class SetMusicVolume
	{
	}
	internal static class SetDialogueVolume
	{
	}
	internal static class SetAnnouncerVolume
	{
	}
	internal static class SetVoiceVolume
	{
	}
	internal static class SetVoiceChatSpatial
	{
	}
	internal static class SetJukeboxVolumee
	{
	}
	internal static class SetOpenMic
	{
	}
	internal static class SetFOV
	{
	}
	internal static class SetScreenshake
	{
	}
	internal static class SetHeadbob
	{
	}
	internal static class SetRumble
	{
	}
	internal static class SetReduceMotionSickness
	{
	}
	internal static class SetCustomUIColor
	{
	}
	internal static class HideHUD
	{
	}
	internal static class SetVSync
	{
	}
	internal static class SetLobbyVisibility
	{
	}
	internal static class SetSensitivityMouse
	{
	}
	internal static class SetSensitivityGamepad
	{
	}
	internal static class SetGamepadCursorSpeed
	{
	}
	internal static class SetAimSensitivitySpeed
	{
	}
	internal static class SetInvertYLook
	{
	}
	internal static class SetMoveDeadzoneMin
	{
	}
	internal static class SetMoveDeadzoneMax
	{
	}
	internal static class SetLookDeadzoneMin
	{
	}
	internal static class SetLookDeadzoneMax
	{
	}
	internal static class SetAimAssistIntensity
	{
	}
	internal static class SetToggleSprintKeyboard
	{
	}
	internal static class SetToggleSprintGamepad
	{
	}
	internal static class SetAutoSprint
	{
	}
	internal static class SetBlitsegCameraControl
	{
	}
	internal static class SetTextureQuality
	{
	}
	internal static class SetTextureStreamingBudget
	{
	}
	internal static class SetParticleQuality
	{
	}
	internal static class EnableDamageNumbers
	{
	}
	internal static class EnableAllDamageText
	{
	}
	internal static class SetDamageNumberScale
	{
	}
	internal static class SetDamageNumberPulseScale
	{
	}
	internal static class SetTextChatScale
	{
	}
	internal static class get_URPAsset
	{
	}
	internal static class ResetURPSettings
	{
	}
	internal static class SetRenderScale
	{
	}
	internal static class SetUpscaleFilter
	{
	}
	internal static class SetHUDAntialiasing
	{
	}
	internal static class SetShadowResolution
	{
	}
	internal static class SetSSAO
	{
	}
	internal static class SetFullscreen
	{
	}
	internal static class SetAberration
	{
	}
	internal static class SetUIDistortion
	{
	}
	internal static class UpdateFullscreenMode
	{
	}
	internal static class SetDisplay_System_Single
	{
	}
	internal static class SetDisplay_UnityEngine_DisplayInfo_System_Boolean
	{
	}
	internal static class SetResolutionAsync
	{
	}
	internal static class SetResolution
	{
	}
	internal static class ConfirmDisplayChange
	{
	}
	internal static class CancelDisplayChange
	{
	}
	internal static class SetVibrance
	{
	}
	internal static class SetBrightness
	{
	}
	internal static class SetBloom
	{
	}
	internal static class SetFrameRateLimit
	{
	}
	internal static class ApplyFrameRateLimit
	{
	}
	internal static class SetRenderDistance
	{
	}
	internal static class SetGrassDistance
	{
	}
	internal static class SetGrassDensity
	{
	}
	internal static class SetAllowDynamicColoring
	{
	}
	internal static class SetCanClientsCallPod
	{
	}
	internal static class SetRandomizeReloadAnims
	{
	}
	internal static class _ctor
	{
	}
	internal static class _cctor
	{
	}
	internal static class BindingGroup
	{
		internal static class _ctor
		{
		}
	}
	internal static class KeyRebind
	{
		internal static class _ctor
		{
		}

		internal static class _ctor_System_String_System_Int32_System_String
		{
		}
	}
	internal static class __c
	{
		internal static class _ctor
		{
		}
	}
	internal static class _DeactivateRebindPopup_d__81
	{
		internal static class _ctor
		{
		}

		internal static class System_IDisposable_Dispose
		{
		}

		internal static class MoveNext
		{
		}

		internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
		{
		}

		internal static class System_Collections_IEnumerator_Reset
		{
		}

		internal static class System_Collections_IEnumerator_get_Current
		{
		}
	}
	internal static class _SetLobbyVisibility_d__101
	{
		internal static class _ctor
		{
		}

		internal static class MoveNext
		{
		}

		internal static class SetStateMachine
		{
		}
	}
	internal static class _SetResolutionAsync_d__139
	{
		internal static class _ctor
		{
		}

		internal static class MoveNext
		{
		}

		internal static class SetStateMachine
		{
		}
	}
	internal static class _SetSectionCoroutine_d__62
	{
		internal static class _ctor
		{
		}

		internal static class System_IDisposable_Dispose
		{
		}

		internal static class MoveNext
		{
		}

		internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
		{
		}

		internal static class System_Collections_IEnumerator_Reset
		{
		}

		internal static class System_Collections_IEnumerator_get_Current
		{
		}
	}
}
namespace Md.Menu
{
	internal static class Close
	{
		public delegate void PrefixSignature(Menu self);

		public delegate ReturnFlow ControlFlowPrefixSignature(Menu self);

		public delegate void PostfixSignature(Menu self);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(Menu).GetMethod("Close", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("Menu", "Close");
		}
	}
	internal static class Open
	{
		public delegate void PrefixSignature(Menu self, ref bool instantOpen);

		public delegate ReturnFlow ControlFlowPrefixSignature(Menu self, ref bool instantOpen);

		public delegate void PostfixSignature(Menu self, ref bool instantOpen);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(Menu).GetMethod("Open", (BindingFlags)(-1), null, new Type[1] { typeof(bool) }, null) ?? throw new MissingMethodException("Menu", "Open");
		}
	}
	internal static class Update
	{
		public delegate void PrefixSignature(Menu self);

		public delegate ReturnFlow ControlFlowPrefixSignature(Menu self);

		public delegate void PostfixSignature(Menu self);

		public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ControlFlowPrefix(ControlFlowPrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (MethodBase)hook.Method, config, applyByDefault);
		}

		public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
		{
			return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
		}

		public static MethodBase Target()
		{
			return typeof(Menu).GetMethod("Update", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("Menu", "Update");
		}
	}
	internal static class get_Instance
	{
	}
	internal static class set_Instance
	{
	}
	internal static class get_Canvas
	{
	}
	internal static class set_Canvas
	{
	}
	internal static class get_WindowSystem
	{
	}
	internal static class set_WindowSystem
	{
	}
	internal static class get_IsOpen
	{
	}
	internal static class set_IsOpen
	{
	}
	internal static class get_SkillTreeWindow
	{
	}
	internal static class get_CharacterSelectWindow
	{
	}
	internal static class get_DotTransition
	{
	}
	internal static class get_OpenWindowOnOpen
	{
	}
	internal static class set_OpenWindowOnOpen
	{
	}
	internal static class get_OpenDefaultWindow
	{
	}
	internal static class set_OpenDefaultWindow
	{
	}
	internal static class get_AllowClosingMenu
	{
	}
	internal static class set_AllowClosingMenu
	{
	}
	internal static class add_OnEscape
	{
	}
	internal static class remove_OnEscape
	{
	}
	internal static class get_CancelEscape
	{
	}
	internal static class set_CancelEscape
	{
	}
	internal static class IsCreatedAndOpen
	{
	}
	internal static class IsCreatedAndOpenAllowInMission
	{
	}
	internal static class IsInDetailScreen
	{
	}
	internal static class Awake
	{
	}
	internal static class OnEnable
	{
	}
	internal static class SetupNavButtonSizing
	{
	}
	internal static class OnDestroy
	{
	}
	internal static class OnWindowOpenedOrClosed
	{
	}
	internal static class OpenCoroutine
	{
	}
	internal static class get_IsClosing
	{
	}
	internal static class set_IsClosing
	{
	}
	internal static class CanClose
	{
	}
	internal static class PlayRevealEffect
	{
	}
	internal static class RevealEffectCoroutine
	{
	}
	internal static class OnClose
	{
	}
	internal static class CloseCoroutine
	{
	}
	internal static class EnableHUD
	{
	}
	internal static class DisableHUD
	{
	}
	internal static class DisableNextEscape
	{
	}
	internal static class OnCancel
	{
	}
	internal static class OnClosePressed
	{
	}
	internal static class SwitchTab
	{
	}
	internal static class QuitGame
	{
	}
	internal static class SelfDestruct
	{
	}
	internal static class ShowInfoPopup
	{
	}
	internal static class HideInfoPopup
	{
	}
	internal static class CreateSelectionMark
	{
	}
	internal static class OnGetSelectionMark
	{
	}
	internal static class OnReleaseSelectionMark
	{
	}
	internal static class GetSelectionMark
	{
	}
	internal static class ReleaseSelectionMark
	{
	}
	internal static class SetSFXVolume
	{
	}
	internal static class SetMusicVolume
	{
	}
	internal static class UpdateGraphicColor
	{
	}
	internal static class _ctor
	{
	}
	internal static class _CloseCoroutine_d__96
	{
		internal static class _ctor
		{
		}

		internal static class System_IDisposable_Dispose
		{
		}

		internal static class MoveNext
		{
		}

		internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
		{
		}

		internal static class System_Collections_IEnumerator_Reset
		{
		}

		internal static class System_Collections_IEnumerator_get_Current
		{
		}
	}
	internal static class _OpenCoroutine_d__85
	{
		internal static class _ctor
		{
		}

		internal static class System_IDisposable_Dispose
		{
		}

		internal static class MoveNext
		{
		}

		internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
		{
		}

		internal static class System_Collections_IEnumerator_Reset
		{
		}

		internal static class System_Collections_IEnumerator_get_Current
		{
		}
	}
	internal static class _RevealEffectCoroutine_d__94
	{
		internal static class _ctor
		{
		}

		internal static class System_IDisposable_Dispose
		{
		}

		internal static class MoveNext
		{
		}

		internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
		{
		}

		internal static class System_Collections_IEnumerator_Reset
		{
		}

		internal static class System_Collections_IEnumerator_get_Current
		{
		}
	}
}
namespace MonoDetour.HookGen
{
	internal static class DefaultMonoDetourManager
	{
		internal static MonoDetourManager Instance { get; } = New();

		internal static MonoDetourManager New()
		{
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Expected O, but got Unknown
			return new MonoDetourManager(typeof(DefaultMonoDetourManager).Assembly.GetName().Name);
		}
	}
	[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
	internal class MonoDetourTargetsAttribute(Type? targetType = null) : Attribute(), IMonoDetourTargets
	{
		public Type? TargetType { get; } = targetType;

		public bool IncludeNestedTypes { get; set; } = true;

		public bool DistinguishOverloadsByName { get; set; }

		public string[]? Members { get; set; }

		public string[]? MemberNamePrefixes { get; set; }

		public string[]? MemberNameSuffixes { get; set; }

		public bool GenerateControlFlowVariants { get; set; }
	}
}
namespace MycoModConfig
{
	internal static class ModAccents
	{
		internal static readonly Color Save = new Color(0.46f, 0.9f, 0.56f, 1f);

		internal static readonly Color Danger = new Color(1f, 0.37f, 0.44f, 1f);

		internal static readonly Color Warning = new Color(1f, 0.7019608f, 0.2784314f, 1f);

		internal const string WarningHex = "FFB347";

		internal static Color Hover(Color accent)
		{
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_003b: Unknown result type (might be due to invalid IL or missing references)
			return new Color(0.1f + accent.r * 0.22f, 0.1f + accent.g * 0.22f, 0.1f + accent.b * 0.22f, 1f);
		}

		internal static void Apply(GameObject target, Color color, bool enabled = true)
		{
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			//IL_004f: 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)
			if ((Object)(object)target == (Object)null)
			{
				return;
			}
			Color color2 = (Color)(enabled ? color : new Color(color.r, color.g, color.b, 0.25f));
			BevelRectOutline val = target.GetComponent<BevelRectOutline>();
			if ((Object)(object)val == (Object)null)
			{
				val = target.GetComponentInChildren<BevelRectOutline>(true);
			}
			if ((Object)(object)val != (Object)null)
			{
				((Graphic)val).color = color2;
				return;
			}
			Rect component = target.GetComponent<Rect>();
			if ((Object)(object)component == (Object)null)
			{
				return;
			}
			Graphic val2 = null;
			DefaultButton component2 = target.GetComponent<DefaultButton>();
			if (component2 != null)
			{
				val2 = component2.MainGraphic;
			}
			else
			{
				DoubleDefaultButton component3 = target.GetComponent<DoubleDefaultButton>();
				if (component3 != null)
				{
					val2 = component3.MainGraphic;
				}
			}
			if (!((Object)(object)val2 != (Object)null) || !((Object)(object)component == (Object)(object)val2))
			{
				((Graphic)component).color = color2;
			}
		}
	}
	public sealed class ModsConfirmPopup : MonoBehaviour
	{
		private DefaultButton _cancelButton;

		private DefaultButton _discardButton;

		private float _ignoreInputUntil;

		private Action _onCancel;

		private Action _onDiscard;

		private Action _onSave;

		private DefaultButton _saveButton;

		private TextMeshProUGUI _text;

		public static bool IsOpen { get; private set; }

		private void Update()
		{
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: 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_0038: Unknown result type (might be due to invalid IL or missing references)
			if (!IsOpen || Time.unscaledTime < _ignoreInputUntil)
			{
				return;
			}
			MenuActions menu = PlayerInput.Controls.Menu;
			if (!((MenuActions)(ref menu)).Cancel.WasPressedThisFrame())
			{
				menu = PlayerInput.Controls.Menu;
				if (!((MenuActions)(ref menu)).Close.WasPressedThisFrame())
				{
					return;
				}
			}
			Choose(_onCancel);
		}

		public static ModsConfirmPopup Create(RectTransform settingsRoot)
		{
			Transform val = ((Transform)settingsRoot).Find("ConfirmScreen");
			if ((Object)(object)val == (Object)null)
			{
				return null;
			}
			GameObject obj = Object.Instantiate<GameObject>(((Component)val).gameObject, (Transform)(object)settingsRoot, false);
			((Object)obj).name = "ModsConfirmScreen";
			ModsConfirmPopup modsConfirmPopup = obj.AddComponent<ModsConfirmPopup>();
			modsConfirmPopup.Build();
			obj.SetActive(false);
			return modsConfirmPopup;
		}

		private void Build()
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: 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_0037: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: 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_004c: 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_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ea: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_0114: Unknown result type (might be due to invalid IL or missing references)
			//IL_0128: Unknown result type (might be due to invalid IL or missing references)
			//IL_017d: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0227: Unknown result type (might be due to invalid IL or missing references)
			//IL_0231: Expected O, but got Unknown
			//IL_0251: Unknown result type (might be due to invalid IL or missing references)
			//IL_025b: Expected O, but got Unknown
			//IL_027b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0285: Expected O, but got Unknown
			RectTransform val = (RectTransform)((Component)this).transform;
			val.anchorMin = Vector2.zero;
			val.anchorMax = Vector2.one;
			val.pivot = new Vector2(0.5f, 0.5f);
			val.anchoredPosition = Vector2.zero;
			val.offsetMin = Vector2.zero;
			val.offsetMax = Vector2.zero;
			((Transform)val).SetAsLastSibling();
			Image component = ((Component)this).GetComponent<Image>();
			if (component != null)
			{
				((Graphic)component).color = new Color(0.03f, 0.03f, 0.03f, 0.92f);
				((Graphic)component).raycastTarget = true;
			}
			Transform obj = ((Component)this).transform.Find("Text");
			_text = ((obj != null) ? ((Component)obj).GetComponent<TextMeshProUGUI>() : null);
			if ((Object)(object)_text != (Object)null)
			{
				RectTransform rectTransform = ((TMP_Text)_text).rectTransform;
				rectTransform.anchorMin = new Vector2(0.5f, 0.5f);
				rectTransform.anchorMax = new Vector2(0.5f, 0.5f);
				rectTransform.pivot = new Vector2(0.5f, 0.5f);
				rectTransform.sizeDelta = new Vector2(900f, 200f);
				rectTransform.anchoredPosition = new Vector2(0f, 100f);
				((TMP_Text)_text).alignment = (TextAlignmentOptions)514;
			}
			Transform val2 = ((Component)this).transform.Find("Timer");
			if (val2 != null)
			{
				((Component)val2).gameObject.SetActive(false);
			}
			_saveButton = ConfigureButton(((Component)this).transform.Find("Y"), "SAVE", -260f, ModAccents.Save);
			_discardButton = ConfigureButton(((Component)this).transform.Find("N"), "DISCARD", 0f, ModAccents.Danger);
			if ((Object)(object)_discardButton != (Object)null)
			{
				DefaultButton val3 = Object.Instantiate<DefaultButton>(_discardButton, ((Component)this).transform, false);
				((Object)((Component)val3).gameObject).name = "CANCEL";
				_cancelButton = ConfigureButton(((Component)val3).transform, "CANCEL", 260f, Color.white);
			}
			if ((Object)(object)_saveButton != (Object)null)
			{
				((Button)_saveButton).OnClickUp.AddListener((UnityAction)delegate
				{
					Choose(_onSave);
				});
			}
			if ((Object)(object)_discardButton != (Object)null)
			{
				((Button)_discardButton).OnClickUp.AddListener((UnityAction)delegate
				{
					Choose(_onDiscard);
				});
			}
			if ((Object)(object)_cancelButton != (Object)null)
			{
				((Button)_cancelButton).OnClickUp.AddListener((UnityAction)delegate
				{
					Choose(_onCancel);
				});
			}
		}

		private static DefaultButton ConfigureButton(Transform buttonTransform, string label, float x, Color accent)
		{
			//IL_0039: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_0053: Unknown result type (might be due to invalid IL or missing references)
			//IL_005e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0068: Unknown result type (might be due to invalid IL or missing references)
			//IL_0073: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0088: Unknown result type (might be due to invalid IL or missing references)
			//IL_0098: Unknown result type (might be due to invalid IL or missing references)
			//IL_00db: Unknown result type (might be due to invalid IL or missing references)
			if ((Object)(object)buttonTransform == (Object)null)
			{
				return null;
			}
			DefaultButton component = ((Component)buttonTransform).GetComponent<DefaultButton>();
			if ((Object)(object)component == (Object)null)
			{
				return null;
			}
			((UnityEventBase)((Button)component).OnClickUp).RemoveAllListeners();
			ClearPersistentCalls((UnityEventBase)(object)((Button)component).OnClickUp);
			RectTransform val = (RectTransform)((Component)component).transform;
			val.anchorMin = new Vector2(0.5f, 0.5f);
			val.anchorMax = new Vector2(0.5f, 0.5f);
			val.pivot = new Vector2(0.5f, 0.5f);
			val.sizeDelta = new Vector2(240f, 64f);
			val.anchoredPosition = new Vector2(x, -100f);
			Graphic secondaryGraphic = component.SecondaryGraphic;
			TextMeshProUGUI val2 = (TextMeshProUGUI)(object)((secondaryGraphic is TextMeshProUGUI) ? secondaryGraphic : null);
			if (val2 != null)
			{
				((TMP_Text)val2).text = label;
				((TMP_Text)val2).alignment = (TextAlignmentOptions)514;
				((TMP_Text)val2).fontSize = 21f;
				((Graphic)val2).raycastTarget = false;
			}
			ModAccents.Apply(((Component)component).gameObject, accent);
			return component;
		}

		private static void ClearPersistentCalls(UnityEventBase evt)
		{
			object obj = typeof(UnityEventBase).GetField("m_PersistentCalls", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(evt);
			(obj?.GetType().GetField("m_Calls", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(obj) as IList)?.Clear();
		}

		public void Show(string message, Action onSave, Action onDiscard, Action onCancel)
		{
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_005c: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			_onSave = onSave;
			_onDiscard = onDiscard;
			_onCancel = onCancel;
			SetButtonLabel(_saveButton, "SAVE");
			SetButtonLabel(_discardButton, "DISCARD");
			SetButtonLabel(_cancelButton, "CANCEL");
			SetAccent(_saveButton, ModAccents.Save);
			SetAccent(_discardButton, ModAccents.Danger);
			SetAccent(_cancelButton, Color.white);
			if ((Object)(object)_saveButton != (Object)null)
			{
				((Component)_saveButton).gameObject.SetActive(true);
			}
			if ((Object)(object)_discardButton != (Object)null)
			{
				((Component)_discardButton).gameObject.SetActive(true);
			}
			if ((Object)(object)_cancelButton != (Object)null)
			{
				((Component)_cancelButton).gameObject.SetActive(true);
			}
			Open(message);
		}

		public void ShowConfirmation(string message, string confirmLabel, Action onConfirm)
		{
			//IL_0037: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			_onSave = onConfirm;
			_onDiscard = null;
			_onCancel = null;
			SetButtonLabel(_saveButton, confirmLabel);
			SetButtonLabel(_cancelButton, "CANCEL");
			SetAccent(_saveButton, ModAccents.Danger);
			SetAccent(_cancelButton, Color.white);
			if ((Object)(object)_saveButton != (Object)null)
			{
				((Component)_saveButton).gameObject.SetActive(true);
			}
			if ((Object)(object)_discardButton != (Object)null)
			{
				((Component)_discardButton).gameObject.SetActive(false);
			}
			if ((Object)(object)_cancelButton != (Object)null)
			{
				((Component)_cancelButton).gameObject.SetActive(true);
			}
			Open(message);
		}

		private void Open(string message)
		{
			if ((Object)(object)_text != (Object)null)
			{
				((TMP_Text)_text).text = message;
			}
			((Component)this).gameObject.SetActive(true);
			IsOpen = true;
			_ignoreInputUntil = Time.unscaledTime + 0.15f;
			((Component)this).transform.SetAsLastSibling();
		}

		private static void SetButtonLabel(DefaultButton button, string label)
		{
			Graphic obj = ((button != null) ? button.SecondaryGraphic : null);
			TextMeshProUGUI val = (TextMeshProUGUI)(object)((obj is TextMeshProUGUI) ? obj : null);
			if (val != null)
			{
				((TMP_Text)val).text = label;
			}
		}

		private static void SetAccent(DefaultButton button, Color color)
		{
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			if ((Object)(object)button != (Object)null)
			{
				ModAccents.Apply(((Component)button).gameObject, color);
			}
		}

		private void Choose(Action action)
		{
			Hide();
			action?.Invoke();
		}

		private void Hide()
		{
			IsOpen = false;
			_onSave = null;
			_onDiscard = null;
			_onCancel = null;
			((Component)this).gameObject.SetActive(false);
		}
	}
	public static class ModSettings
	{
		private sealed class SettingChangedBinder : MonoBehaviour
		{
			private ConfigEntryBase _entry;

			private EventHandler _handler;

			private EventHandler<SettingChangedEventArgs> _adapter;

			private bool _subscribed;

			public void Bind(ConfigEntryBase entry, EventHandler handler)
			{
				_entry = entry;
				_handler = handler;
				if (((Behaviour)this).isActiveAndEnabled)
				{
					Subscribe();
				}
			}

			private void OnEnable()
			{
				Subscribe();
			}

			private void OnDisable()
			{
				Unsubscribe();
			}

			private void Subscribe()
			{
				if (_subscribed || _entry == null || _handler == null)
				{
					return;
				}
				_adapter = delegate(object _, SettingChangedEventArgs args)
				{
					if (args.ChangedSetting == _entry)
					{
						_handler(null, EventArgs.Empty);
					}
				};
				_entry.ConfigFile.SettingChanged += _adapter;
				_subscribed = true;
			}

			private void Unsubscribe()
			{
				if (_subscribed)
				{
					_entry.ConfigFile.SettingChanged -= _adapter;
					_adapter = null;
					_subscribed = false;
				}
			}
		}

		private const string ReadOnlyNote = "<color=#FFB347>Read-only: edit this value in the mod's config file.</color>";

		private static Sprite _revertIcon;

		private static Sprite _resetIcon;

		public static void CreateOptions(PlayerOptions options)
		{
			//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00fe: Expected O, but got Unknown
			//IL_0140: Unknown result type (might be due to invalid IL or missing references)
			//IL_024b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0255: Expected O, but got Unknown
			//IL_0282: Unknown result type (might be due to invalid IL or missing references)
			//IL_0289: Expected O, but got Unknown
			//IL_028b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0297: Unknown result type (might be due to invalid IL or missing references)
			//IL_0311: Unknown result type (might be due to invalid IL or missing references)
			//IL_0316: Unknown result type (might be due to invalid IL or missing references)
			//IL_0319: Unknown result type (might be due to invalid IL or missing references)
			//IL_0326: Unknown result type (might be due to invalid IL or missing references)
			//IL_032b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0337: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d6: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_02e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02e9: Unknown result type (might be due to invalid IL or missing references)
			if (Array.Exists(options.sectionButtons, (DefaultButton b) => (Object)(object)b != (Object)null && ((Object)b).name == "Mods"))
			{
				return;
			}
			int num = Array.FindIndex(options.sectionButtons, (DefaultButton b) => (Object)(object)b != (Object)null && ((Object)b).name == "Graphics");
			if (num < 0)
			{
				Plugin.Logger.LogWarning((object)"No Graphics settings section found; cannot create Mods tab");
				return;
			}
			if (num >= options.sections.Length || num >= options.sectionButtons.Length)
			{
				Plugin.Logger.LogWarning((object)"Graphics section index is out of range; cannot create Mods tab");
				return;
			}
			RectTransform val = options.sections[num];
			DefaultButton val2 = options.sectionButtons[num];
			if ((Object)(object)val == (Object)null || (Object)(object)val2 == (Object)null)
			{
				Plugin.Logger.LogWarning((object)"Graphics settings row is missing; cannot create Mods tab");
				return;
			}
			RectTransform val3 = (RectTransform)((Component)val2).transform;
			RectTransform component = Object.Instantiate<GameObject>(((Component)val).gameObject, ((Transform)val).parent, false).GetComponent<RectTransform>();
			if ((Object)(object)component == (Object)null)
			{
				Plugin.Logger.LogWarning((object)"Could not clone the Graphics settings section");
				return;
			}
			((Object)component).name = "Mods";
			component.anchoredPosition = val.anchoredPosition;
			((Component)component).gameObject.SetActive(false);
			OptionsContainer component2 = ((Component)component).GetComponent<OptionsContainer>();
			if ((Object)(object)component2 == (Object)null || (Object)(object)component2.container == (Object)null)
			{
				Plugin.Logger.LogWarning((object)"Cloned Graphics section has no OptionsContainer");
				Object.Destroy((Object)(object)((Component)component).gameObject);
				return;
			}
			RectTransform container = component2.container;
			for (int num2 = ((Transform)container).childCount - 1; num2 >= 0; num2--)
			{
				Object.Destroy((Object)(object)((Component)((Transform)container).GetChild(num2)).gameObject);
			}
			((Component)component).gameObject.AddComponent<ModsView>().Initialize(component, container, GetMods());
			GameObject val4 = Object.Instantiate<GameObject>(((Component)val2).gameObject, ((Component)val2).transform.parent, false);
			((Object)val4).name = "Mods";
			DefaultButton component3 = val4.GetComponent<DefaultButton>();
			int newIndex = options.sections.Length;
			if (!RetargetPersistentInt((UnityEventBase)(object)((Button)component3).OnClickUp, "SetSection", newIndex))
			{
				((Button)component3).OnClickUp.AddListener((UnityAction)delegate
				{
					options.SetSection(newIndex);
				});
			}
			float num3 = 70f;
			if (num + 1 < options.sectionButtons.Length)
			{
				RectTransform val5 = (RectTransform)((Component)options.sectionButtons[num + 1]).transform;
				num3 = Mathf.Abs(val3.anchoredPosition.y - val5.anchoredPosition.y);
			}
			for (int num4 = num + 1; num4 < options.sectionButtons.Length; num4++)
			{
				DefaultButton val6 = options.sectionButtons[num4];
				if ((Object)(object)val6 != (Object)null)
				{
					RectTransform val7 = (RectTransform)((Component)val6).transform;
					val7.anchoredPosition += new Vector2(0f, 0f - num3);
				}
			}
			RectTransform val8 = (RectTransform)((Component)component3).transform;
			val8.anchoredPosition = val3.anchoredPosition + new Vector2(0f, 0f - num3);
			val8.sizeDelta = val3.sizeDelta;
			val4.transform.SetSiblingIndex(((Component)val2).transform.GetSiblingIndex() + 1);
			Graphic secondaryGraphic = component3.SecondaryGraphic;
			TextMeshProUGUI val9 = (TextMeshProUGUI)(object)((secondaryGraphic is TextMeshProUGUI) ? secondaryGraphic : null);
			if (val9 != null)
			{
				((TMP_Text)val9).text = "MODS";
				((TMP_Text)val9).ForceMeshUpdate(false, false);
			}
			Array.Resize(ref options.sections, newIndex + 1);
			options.sections[newIndex] = component;
			Array.Resize(ref options.sectionButtons, newIndex + 1);
			options.sectionButtons[newIndex] = component3;
			Array.Resize(ref options.sectionPositions, newIndex + 1);
		}

		private static bool RetargetPersistentInt(UnityEventBase evt, string methodName, int value)
		{
			object obj = typeof(UnityEventBase).GetField("m_PersistentCalls", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(evt);
			if (!(obj?.GetType().GetField("m_Calls", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(obj) is IList list))
			{
				return false;
			}
			bool result = false;
			foreach (object item in list)
			{
				Type type = item.GetType();
				if (!(type.GetProperty("methodName")?.GetValue(item) as string != methodName))
				{
					object obj2 = type.GetProperty("arguments")?.GetValue(item);
					obj2?.GetType().GetProperty("intArgument")?.SetValue(obj2, value);
					result = true;
				}
			}
			return result;
		}

		internal static List<ModEntry> GetMods()
		{
			List<ModEntry> list = new List<ModEntry>();
			foreach (PluginInfo item in Chainloader.PluginInfos.Values.OrderBy((PluginInfo p) => p.Metadata.Name))
			{
				List<ConfigEntryBase> list2 = new List<ConfigEntryBase>();
				BaseUnityPlugin instance = item.Instance;
				if (((instance != null) ? instance.Config : null) == null)
				{
					continue;
				}
				foreach (ConfigEntryBase item2 in ((IEnumerable<KeyValuePair<ConfigDefinition, ConfigEntryBase>>)instance.Config).Select((KeyValuePair<ConfigDefinition, ConfigEntryBase> configEntry) => configEntry.Value))
				{
					if (!IsHidden(item2))
					{
						list2.Add(item2);
					}
				}
				if (list2.Count != 0)
				{
					list.Add(new ModEntry
					{
						Name = item.Metadata.Name,
						Entries = list2.ToArray()
					});
				}
			}
			return list;
		}

		private static string GetCategory(ConfigEntryBase entry)
		{
			string section = entry.Definition.Section;
			if (!string.IsNullOrWhiteSpace(section))
			{
				return FixNaming(section);
			}
			return "General";
		}

		private static string GetDisplayName(ConfigEntryBase entry)
		{
			string text = GetTagValue(entry, "DispName") as string;
			if (string.IsNullOrWhiteSpace(text))
			{
				return FixNaming(entry.Definition.Key);
			}
			return text;
		}

		private static bool IsHidden(ConfigEntryBase entry)
		{
			if (HasTag(entry, "Hidden"))
			{
				return true;
			}
			if (GetTagValue(entry, "Browsable") is bool flag)
			{
				return !flag;
			}
			return false;
		}

		private static bool HasTag(ConfigEntryBase entry, string tag)
		{
			ConfigDescription description = entry.Description;
			return ((description != null) ? description.Tags : null)?.Contains(tag) ?? false;
		}

		private static object GetTagValue(ConfigEntryBase entry, string memberName)
		{
			ConfigDescription description = entry.Description;
			object[] array = ((description != null) ? description.Tags : null);
			if (array == null)
			{
				return null;
			}
			object[] array2 = array;
			foreach (object obj in array2)
			{
				if (obj != null)
				{
					Type type = obj.GetType();
					PropertyInfo property = type.GetProperty(memberName, BindingFlags.Instance | BindingFlags.Public);
					if (property != null)
					{
						return property.GetValue(obj);
					}
					FieldInfo field = type.GetField(memberName, BindingFlags.Instance | BindingFlags.Public);
					if (field != null)
					{
						return field.GetValue(obj);
					}
				}
			}
			return null;
		}

		private static string FixNaming(string input)
		{
			input = Regex.Replace(input, "\\s+", " ");
			input = Regex.Replace(input, "([A-Z]\\.)\\s([A-Z]\\.)", "$1$2");
			return input.Trim();
		}

		private static void TrackDefault<T>(Option option, ConfigEntry<T> entry, Func<T, float> toWidget)
		{
			if ((Object)(object)option == (Object)null)
			{
				return;
			}
			option.applyValue.AddListener((UnityAction<float>)delegate(float value)
			{
				option.defaultValue = value;
			});
			EventHandler handler = delegate
			{
				if ((Object)(object)option != (Object)null)
				{
					option.defaultValue = toWidget(entry.Value);
				}
			};
			AttachBinder(((Component)option).gameObject, (ConfigEntryBase)(object)entry, handler);
		}

		private static void TrackDefault(Option option, ConfigEntryBase entry, Func<object, float> toWidget)
		{
			if (!((Object)(object)option == (Object)null))
			{
				option.applyValue.AddListener((UnityAction<float>)delegate(float value)
				{
					option.defaultValue = value;
				});
				EventHandler handler = (EventHandler)(typeof(ModSettings).GetMethod("BuildHandler", BindingFlags.Static | BindingFlags.NonPublic)?.MakeGenericMethod(entry.SettingType).Invoke(null, new object[3] { option, entry, toWidget }));
				AttachBinder(((Component)option).gameObject, entry, handler);
			}
		}

		private static EventHandler BuildHandler<T>(Option option, ConfigEntryBase entry, Func<object, float> toWidget)
		{
			ConfigEntry<T> typed = (ConfigEntry<T>)(object)entry;
			return delegate
			{
				if ((Object)(object)option != (Object)null)
				{
					option.defaultValue = toWidget(typed.Value);
				}
			};
		}

		private static void AttachBinder(GameObject row, ConfigEntryBase entry, EventHandler handler)
		{
			row.AddComponent<SettingChangedBinder>().Bind(entry, handler);
		}

		private static void AddReadOnlyNote(ModInputField input)
		{
			if (!((Object)(object)input == (Object)null))
			{
				ConfigHoverInfo componentInChildren = ((Component)input).GetComponentInChildren<ConfigHoverInfo>(true);
				if ((Object)(object)componentInChildren == (Object)null)
				{
					ModUI.SetDescription((Component)(object)input, "<color=#FFB347>Read-only: edit this value in the mod's config file.</color>");
				}
				else
				{
					componentInChildren.description = (string.IsNullOrEmpty(componentInChildren.description) ? "<color=#FFB347>Read-only: edit this value in the mod's config file.</color>" : (componentInChildren.description + "\n<color=#FFB347>Read-only: edit this value in the mod's config file.</color>"));
				}
			}
		}

		private static void AddDescription(Component control, ConfigEntryBase entry)
		{
			ConfigDescription description = entry.Description;
			string text = ((description != null) ? description.Description : null);
			if (!((Object)(object)control == (Object)null) && !string.IsNullOrWhiteSpace(text))
			{
				ConfigHoverInfo val = ModUI.SetDescription(control, text);
				if (!((Object)(object)val == (Object)null))
				{
					val.customizeAnchor = false;
				}
			}
		}

		private static void FinishRow(Component control, ConfigEntryBase entry, ModsView view)
		{
			AddDescription(control, entry);
			AddRowButtons(entry, control, view);
		}

		private static void AddRowButtons(ConfigEntryBase entry, Component control, ModsView view)
		{
			//IL_004f: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_0068: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
			if ((Object)(object)control == (Object)null || (Object)(object)view == (Object)null)
			{
				return;
			}
			GameObject val = ModUI.AddRowAction(control, GetRevertIcon(), 0, (Action)delegate
			{
				view.DiscardEntry(entry);
			});
			if ((Object)(object)val != (Object)null)
			{
				ModAccents.Apply(val, ModAccents.Warning);
				DefaultButton component = val.GetComponent<DefaultButton>();
				if (component != null)
				{
					component.SetHoverColor(ModAccents.Hover(ModAccents.Warning));
				}
				view.RegisterRevertButton(entry, val);
			}
			GameObject val2 = ModUI.AddRowAction(control, GetResetIcon(), 1, (Action)delegate
			{
				ResetEntry(entry, view);
			});
			if (!((Object)(object)val2 == (Object)null))
			{
				ModAccents.Apply(val2, ModAccents.Danger);
				DefaultButton component2 = val2.GetComponent<DefaultButton>();
				if (component2 != null)
				{
					component2.SetHoverColor(ModAccents.Hover(ModAccents.Danger));
				}
				view.RegisterResetButton(entry, val2);
			}
		}

		private static T Buffered<T>(ConfigEntry<T> entry, ModsView view)
		{
			if ((Object)(object)view != (Object)null)
			{
				object buffered = view.GetBuffered((ConfigEntryBase)(object)entry);
				if (buffered is T)
				{
					return (T)buffered;
				}
			}
			return entry.Value;
		}

		private static void ResetEntry(ConfigEntryBase entry, ModsView view)
		{
			try
			{
				ConfigFile configFile = entry.ConfigFile;
				entry.BoxedValue = entry.DefaultValue;
				if (configFile != null && !configFile.SaveOnConfigSet)
				{
					configFile.Save();
				}
				view.DiscardEntry(entry);
			}
			catch (Exception arg)
			{
				Plugin.Logger.LogError((object)$"Could not reset {entry.Definition.Key}: {arg}");
			}
		}

		private static Sprite GetRevertIcon()
		{
			return _revertIcon ?? (_revertIcon = FindSprite("RefreshIcon"));
		}

		private static Sprite GetResetIcon()
		{
			object obj = _resetIcon;
			if (obj == null)
			{
				obj = FindSprite("wrench") ?? FindSprite("settings gear");
				_resetIcon = (Sprite)obj;
			}
			return (Sprite)obj;
		}

		private static Sprite FindSprite(string name)
		{
			return ((IEnumerable<Sprite>)Resources.FindObjectsOfTypeAll<Sprite>()).FirstOrDefault((Func<Sprite, bool>)((Sprite sprite) => (Object)(object)sprite != (Object)null && ((Object)sprite).name == name));
		}

		internal static void BuildModConfig(RectTransform items, string modName, IEnumerable<ConfigEntryBase> entries, float width, Action<ConfigEntryBase, object> onChanged, ModsView view)
		{
			List<IGrouping<string, ConfigEntryBase>> list = entries.GroupBy(GetCategory).ToList();
			for (int i = 0; i < list.Count; i++)
			{
				IGrouping<string, ConfigEntryBase> grouping = list[i];
				if (list.Count > 1 || !string.Equals(grouping.Key, "General", StringComparison.OrdinalIgnoreCase))
				{
					ModUI.AddCategory(items, grouping.Key, 0f, 0f);
				}
				RectTransform obj = CreateContentGroup(items, width);
				CreateModEntries(obj, modName, grouping, onChanged, view);
				FitContentHeight(obj);
				if (i < list.Count - 1)
				{
					ModUI.AddDivider(items);
				}
			}
		}

		private unsafe static void CreateModEntries(RectTransform items, string modName, IEnumerable<ConfigEntryBase> entries, Action<ConfigEntryBase, object> onChanged, ModsView view)
		{
			//IL_0634: Unknown result type (might be due to invalid IL or missing references)
			//IL_05af: Unknown result type (might be due to invalid IL or missing references)
			//IL_05b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_05b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_05d6: Expected O, but got Unknown
			//IL_06b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a22: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a27: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a3e: Expected O, but got Unknown
			foreach (ConfigEntryBase entry in entries)
			{
				string key = entry.Definition.Key;
				string displayName = GetDisplayName(entry);
				string text = "MycoMenu." + modName + "." + entry.Definition.Section + "." + key;
				ConfigEntryBase val = entry;
				ConfigEntry<bool> val2 = val as ConfigEntry<bool>;
				if (val2 == null)
				{
					ConfigEntry<float> val3 = val as ConfigEntry<float>;
					if (val3 == null)
					{
						ConfigEntry<int> val4 = val as ConfigEntry<int>;
						if (val4 == null)
						{
							ConfigEntry<string> val5 = val as ConfigEntry<string>;
							if (val5 == null)
							{
								ConfigEntry<KeyCode> val6 = val as ConfigEntry<KeyCode>;
								if (val6 == null)
								{
									ConfigEntry<KeyboardShortcut> val7 = val as ConfigEntry<KeyboardShortcut>;
									if (val7 == null)
									{
										if (val != null)
										{
											if (entry.SettingType.IsEnum)
											{
												Type enumType = entry.SettingType;
												string[] names = Enum.GetNames(enumType);
												Array values = Enum.GetValues(enumType);
												int num = Array.IndexOf(values, view.GetBuffered(entry) ?? entry.BoxedValue);
												DropdownOption obj = ModUI.AddDropdown(items, text, displayName, names, (num >= 0) ? num : 0, (Action<int>)delegate(int i)
												{
													onChanged(entry, Enum.ToObject(enumType, values.GetValue(i)));
												}, 300f, 40f);
												TrackDefault((Option)(object)obj, entry, (object v) => Mathf.Max(0, Array.IndexOf(values, v)));
												FinishRow((Component)(object)obj, entry, view);
												continue;
											}
											if (IsNumeric(entry.SettingType))
											{
												Type type = entry.SettingType;
												double num2 = Convert.ToDouble(view.GetBuffered(entry) ?? entry.BoxedValue);
												var (num3, num4) = GetNumericRange(entry, num2);
												if (type == typeof(double) || type == typeof(decimal))
												{
													Option obj2 = ModUI.AddFloatSlider(items, text, displayName, (float)num2, (float)num3, (float)num4, GetDigits((float)num3, (float)num4, (float)num2), (Action<float>)delegate(float value)
													{
														onChanged(entry, Convert.ChangeType(value, type));
													}, 300f, 40f);
													TrackDefault(obj2, entry, (object v) => (float)Convert.ToDouble(v));
													FinishRow((Component)(object)obj2, entry, view);
													continue;
												}
												int num5 = (int)Math.Clamp(num3, -2147483648.0, 2147483647.0);
												int num6 = (int)Math.Clamp(num4, -2147483648.0, 2147483647.0);
												int num7 = Mathf.Clamp((int)Math.Round(num2), num5, num6);
												Option obj3 = ModUI.AddIntSlider(items, text, displayName, num7, num5, num6, (Action<int>)delegate(int value)
												{
													onChanged(entry, Convert.ChangeType(value, type));
												}, 300f, 40f);
												TrackDefault(obj3, entry, (object v) => (float)Convert.ToDouble(v));
												FinishRow((Component)(object)obj3, entry, view);
												continue;
											}
										}
										ModInputField obj4 = ModUI.AddInput(items, text, displayName, FormatValue(entry.BoxedValue), new InputFieldOptions
										{
											ReadOnly = true
										}, (Action<string>)null, 0f, 0f);
										FinishRow((Component)(object)obj4, entry, view);
										AddReadOnlyNote(obj4);
									}
									else
									{
										FinishRow((Component)(object)ModUI.AddKeybind<KeyboardShortcut>(items, text, displayName, Buffered<KeyboardShortcut>(val7, view), (Func<KeyCode, KeyCode[], KeyboardShortcut>)((KeyCode val14, KeyCode[] modifiers) => new KeyboardShortcut(val14, modifiers)), (Func<KeyboardShortcut, string>)FormatShortcut, (Action<KeyboardShortcut>)delegate(KeyboardShortcut shortcut)
										{
											//IL_0011: Unknown result type (might be due to invalid IL or missing references)
											onChanged((ConfigEntryBase)(object)val7, shortcut);
										}, 300f, 40f), entry, view);
									}
								}
								else
								{
									FinishRow((Component)(object)ModUI.AddKeybind<KeyCode>(items, text, displayName, Buffered<KeyCode>(val6, view), (Func<KeyCode, KeyCode[], KeyCode>)((KeyCode result, KeyCode[] _) => result), (Func<KeyCode, string>)((KeyCode val14) => ((object)(*(KeyCode*)(&val14))/*cast due to .constrained prefix*/).ToString()), (Action<KeyCode>)delegate(KeyCode val14)
									{
										//IL_0011: Unknown result type (might be due to invalid IL or missing references)
										onChanged((ConfigEntryBase)(object)val6, val14);
									}, 300f, 40f), entry, view);
								}
								continue;
							}
							if (((ConfigEntryBase)val5).Description.AcceptableValues is AcceptableValueList<string> val8)
							{
								string[] values2 = val8.AcceptableValues;
								int num8 = Array.IndexOf(values2, Buffered<string>(val5, view));
								DropdownOption obj5 = ModUI.AddDropdown(items, text, displayName, values2, (num8 >= 0) ? num8 : 0, (Action<int>)delegate(int i)
								{
									onChanged((ConfigEntryBase)(object)val5, values2[i]);
								}, 300f, 40f);
								TrackDefault((Option)(object)obj5, val5, (string v) => Mathf.Max(0, Array.IndexOf(values2, v)));
								FinishRow((Component)(object)obj5, entry, view);
								continue;
							}
							ConfigEntry<string> val9 = val5;
							if (HasTag((ConfigEntryBase)(object)val9, "Password"))
							{
								FinishRow((Component)(object)ModUI.AddInput(items, text, displayName, Buffered<string>(val9, view), new InputFieldOptions
								{
									Type = (ModInputType)6
								}, (Action<string>)delegate(string value)
								{
									onChanged((ConfigEntryBase)(object)val9, value);
								}, 0f, 0f), entry, view);
							}
							else
							{
								FinishRow((Component)(object)ModUI.AddTextInput(items, text, displayName, Buffered<string>(val9, view), (Action<string>)delegate(string value)
								{
									onChanged((ConfigEntryBase)(object)val9, value);
								}, 0f, 0f), entry, view);
							}
						}
						else if (((ConfigEntryBase)val4).Description.AcceptableValues is AcceptableValueList<int> val10)
						{
							int[] values3 = val10.AcceptableValues;
							int num9 = Array.IndexOf(values3, Buffered<int>(val4, view));
							DropdownOption obj6 = ModUI.AddDropdown(items, text, displayName, values3.Select((int v) => v.ToString(CultureInfo.InvariantCulture)).ToArray(), (num9 >= 0) ? num9 : 0, (Action<int>)delegate(int i)
							{
								onChanged((ConfigEntryBase)(object)val4, values3[i]);
							}, 300f, 40f);
							TrackDefault((Option)(object)obj6, val4, (int v) => Mathf.Max(0, Array.IndexOf(values3, v)));
							FinishRow((Component)(object)obj6, entry, view);
						}
						else
						{
							ConfigEntry<int> val11 = val4;
							(int min, int max) intRange = GetIntRange(val11);
							int item = intRange.min;
							int item2 = intRange.max;
							Option obj7 = ModUI.AddIntSlider(items, text, displayName, Buffered<int>(val11, view), item, item2, (Action<int>)delegate(int value)
							{
								onChanged((ConfigEntryBase)(object)val11, value);
							}, 300f, 40f);
							TrackDefault(obj7, val11, (int v) => v);
							FinishRow((Component)(object)obj7, entry, view);
						}
					}
					else if (((ConfigEntryBase)val3).Description.AcceptableValues is AcceptableValueList<float> val12)
					{
						float[] values4 = val12.AcceptableValues;
						int num10 = Array.IndexOf(values4, Buffered<float>(val3, view));
						DropdownOption obj8 = ModUI.AddDropdown(items, text, displayName, values4.Select((float v) => v.ToString(CultureInfo.InvariantCulture)).ToArray(), (num10 >= 0) ? num10 : 0, (Action<int>)delegate(int i)
						{
							onChanged((ConfigEntryBase)(object)val3, values4[i]);
						}, 300f, 40f);
						TrackDefault((Option)(object)obj8, val3, (float v) => Mathf.Max(0, Array.IndexOf(values4, v)));
						FinishRow((Component)(object)obj8, entry, view);
					}
					else
					{
						ConfigEntry<float> val13 = val3;
						(float min, float max) floatRange = GetFloatRange(val13);
						float item3 = floatRange.min;
						float item4 = floatRange.max;
						int digits = GetDigits(item3, item4, val13.Value);
						Option obj9 = ModUI.AddFloatSlider(items, text, displayName, Buffered<float>(val13, view), item3, item4, digits, (Action<float>)delegate(float value)
						{
							onChanged((ConfigEntryBase)(object)val13, value);
						}, 300f, 40f);
						TrackDefault(obj9, val13, (float v) => v);
						FinishRow((Component)(object)obj9, entry, view);
					}
				}
				else
				{
					ToggleOption obj10 = ModUI.AddToggle(items, text, displayName, Buffered<bool>(val2, view), (Action<bool>)delegate(bool value)
					{
						onChanged((ConfigEntryBase)(object)val2, value);
					}, 300f, 40f);
					TrackDefault((Option)(object)obj10, val2, (bool v) => (!v) ? 0f : 1f);
					FinishRow((Component)(object)obj10, entry, view);
				}
			}
		}

		private static RectTransform CreateContentGroup(RectTransform parent, float width)
		{
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_0036: Expected O, but got Unknown
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_005e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0073: Unknown result type (might be due to invalid IL or missing references)
			//IL_0084: 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_00a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ad: Expected O, but got Unknown
			GameObject val = new GameObject("Content", new Type[2]
			{
				typeof(RectTransform),
				typeof(VerticalLayoutGroup)
			});
			RectTransform val2 = (RectTransform)val.transform;
			((Transform)val2).SetParent((Transform)(object)parent, false);
			val2.anchorMin = new Vector2(1f, 1f);
			val2.anchorMax = new Vector2(1f, 1f);
			val2.pivot = new Vector2(1f, 1f);
			val2.sizeDelta = new Vector2(width, 0f);
			val2.anchoredPosition = Vector2.zero;
			VerticalLayoutGroup component = val.GetComponent<VerticalLayoutGroup>();
			((LayoutGroup)component).padding = new RectOffset(0, 0, 0, 0);
			((HorizontalOrVerticalLayoutGroup)component).spacing = 20f;
			((LayoutGroup)component).childAlignment = (TextAnchor)2;
			((HorizontalOrVerticalLayoutGroup)component).childControlWidth = false;
			((HorizontalOrVerticalLayoutGroup)component).childControlHeight = false;
			((HorizontalOrVerticalLayoutGroup)component).childForceExpandWidth = false;
			((HorizontalOrVerticalLayoutGroup)component).childForceExpandHeight = false;
			return val2;
		}

		private static void FitContentHeight(RectTransform content)
		{
			//IL_003b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Expected O, but got Unknown
			//IL_0095: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a0: 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_0065: Unknown result type (might be due to invalid IL or missing references)
			VerticalLayoutGroup component = ((Component)content).GetComponent<VerticalLayoutGroup>();
			if ((Object)(object)component == (Object)null)
			{
				return;
			}
			float num = ((LayoutGroup)component).padding.top + ((LayoutGroup)component).padding.bottom;
			int num2 = 0;
			foreach (Transform item in (Transform)content)
			{
				Transform val = item;
				if (((Component)val).gameObject.activeSelf)
				{
					if (num2 > 0)
					{
						num += ((HorizontalOrVerticalLayoutGroup)component).spacing;
					}
					num += ((RectTransform)val).sizeDelta.y;
					num2++;
				}
			}
			content.sizeDelta = new Vector2(content.sizeDelta.x, num);
		}

		private static bool IsNumeric(Type type)
		{
			if (!(type == typeof(byte)) && !(type == typeof(sbyte)) && !(type == typeof(short)) && !(type == typeof(ushort)) && !(type == typeof(uint)) && !(type == typeof(long)) && !(type == typeof(ulong)) && !(type == typeof(double)))
			{
				return type == typeof(decimal);
			}
			return true;
		}

		private static (double min, double max) GetNumericRange(ConfigEntryBase entry, double current)
		{
			ConfigDescription description = entry.Description;
			AcceptableValueBase val = ((description != null) ? description.AcceptableValues : null);
			if (val != null)
			{
				Type type = ((object)val).GetType();
				if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(AcceptableValueRange<>))
				{
					object obj = type.GetProperty("MinValue")?.GetValue(val);
					object obj2 = type.GetProperty("MaxValue")?.GetValue(val);
					if (obj != null && obj2 != null)
					{
						return (min: Convert.ToDouble(obj), max: Convert.ToDouble(obj2));
					}
				}
			}
			double num = Math.Max(Math.Abs(current), Math.Abs(Convert.ToDouble(entry.DefaultValue)));
			double num2 = ((num == 0.0) ? 100.0 : ((num <= 0.001) ? 10.0 : ((num <= 0.01) ? 50.0 : ((!(num <= 100.0)) ? (num * 2.0) : (num * 3.0)))));
			double num3 = num2;
			return (min: 0.0 - num3, max: num3);
		}

		private static (float min, float max) GetFloatRange(ConfigEntry<float> entry)
		{
			float minValue;
			if (((ConfigEntryBase)entry).Description.AcceptableValues is AcceptableValueRange<float> val)
			{
				minValue = val.MinValue;
				float maxValue = val.MaxValue;
				float num = minValue;
				if (!(maxValue > num))
				{
					return (min: num, max: num + 1f);
				}
				return (min: num, max: maxValue);
			}
			float num2 = Mathf.Max(Mathf.Abs(entry.Value), Mathf.Abs((float)((ConfigEntryBase)entry).DefaultValue));
			minValue = ((num2 == 0f) ? 100f : ((num2 <= 0.001f) ? 10f : ((num2 <= 0.01f) ? 50f : ((!(num2 <= 100f)) ? (num2 * 2f) : (num2 * 3f)))));
			float num3 = minValue;
			return (min: Mathf.Min(0f - num3, entry.Value), max: Mathf.Max(num3, entry.Value));
		}

		private static (int min, int max) GetIntRange(ConfigEntry<int> entry)
		{
			int minValue;
			if (((ConfigEntryBase)entry).Description.AcceptableValues is AcceptableValueRange<int> val)
			{
				minValue = val.MinValue;
				int maxValue = val.MaxValue;
				int num = minValue;
				if (maxValue <= num)
				{
					return (min: num, max: num + 1);
				}
				return (min: num, max: maxValue);
			}
			int num2 = Math.Max(Math.Abs(entry.Value), Math.Abs((int)((ConfigEntryBase)entry).DefaultValue));
			minValue = ((num2 > 100) ? (num2 * 2) : ((num2 != 0) ? (num2 * 3) : 100));
			int num3 = minValue;
			return (min: Math.Min(-num3, entry.Value), max: Math.Max(num3, entry.Value));
		}

		private static int GetDigits(float min, float max, float current)
		{
			return Mathf.Clamp(Math.Max(Math.Max(GetDecimalPlaces(min), Math.Max(GetDecimalPlaces(max), GetDecimalPlaces(current))), 2), 2, 4);
		}

		private static int GetDecimalPlaces(float value)
		{
			string text = Mathf.Abs(value).ToString("0.####", CultureInfo.InvariantCulture);
			int num = text.IndexOf('.');
			if (num != -1)
			{
				return text.Length - num - 1;
			}
			return 0;
		}

		private static string FormatValue(object value)
		{
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_001d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0073: Unknown result type (might be due to invalid IL or missing references)
			//IL_002e: 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_008a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0095: Unknown result type (might be due to invalid IL or missing references)
			//IL_003f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: 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_00bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_005b: Unknown result type (might be due to invalid IL or missing references)
			//IL_00eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0107: Unknown result type (might be due to invalid IL or missing references)
			//IL_0115: Unknown result type (might be due to invalid IL or missing references)
			//IL_0137: Unknown result type (might be due to invalid IL or missing references)
			//IL_0146: Unknown result type (might be due to invalid IL or missing references)
			//IL_0155: Unknown result type (might be due to invalid IL or missing references)
			//IL_0164: Unknown result type (might be due to invalid IL or missing references)
			if (value != null)
			{
				if (!(value is Color val))
				{
					if (!(value is Vector2 val2))
					{
						if (!(value is Vector3 val3))
						{
							if (!(value is Ve