Decompiled source of HD Camera v1.4.0

Mods/Colorful.dll

Decompiled 7 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BoneLib;
using BoneLib.BoneMenu;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSLZ.Bonelab;
using Il2CppTMPro;
using MelonLoader;
using MelonLoader.Preferences;
using Melon_Loader_Mod5;
using UnityEngine;
using UnityEngine.UI;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("Colorful")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany(null)]
[assembly: AssemblyProduct("Colorful")]
[assembly: AssemblyCopyright("Created by Bread Soup")]
[assembly: AssemblyTrademark(null)]
[assembly: ComVisible(false)]
[assembly: AssemblyFileVersion("1.1.2")]
[assembly: NeutralResourcesLanguage("en")]
[assembly: MelonInfo(typeof(Main), "Colorful", "1.1.2", "Bread Soup", null)]
[assembly: MelonGame("Stress Level Zero", "BONELAB")]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
[assembly: AssemblyVersion("1.1.2.0")]
namespace Melon_Loader_Mod5;

public class AvatarSelectUI
{
	private static Color color;

	public static void Avatar(Transform parent, bool isSecondChild)
	{
		//IL_0019: Unknown result type (might be due to invalid IL or missing references)
		//IL_001e: 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_0010: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00df: Unknown result type (might be due to invalid IL or missing references)
		if (PreferencesCreator.IsEnabled)
		{
			color = Colors.NorthWest;
		}
		else
		{
			color = Color.white;
		}
		for (int i = 0; i < parent.childCount; i++)
		{
			Transform child = parent.GetChild(i);
			if (isSecondChild && i == 1)
			{
				continue;
			}
			Image component = ((Component)child).GetComponent<Image>();
			TextMeshProUGUI component2 = ((Component)child).GetComponent<TextMeshProUGUI>();
			TextMeshPro component3 = ((Component)child).GetComponent<TextMeshPro>();
			if (!(((Object)child).name == "img_outline") && !(((Object)child).name == "img_bg"))
			{
				if ((Object)(object)component != (Object)null)
				{
					((Graphic)component).color = color;
				}
				else if ((Object)(object)component2 != (Object)null)
				{
					((Graphic)component2).color = color;
				}
				else if ((Object)(object)component3 != (Object)null)
				{
					((Graphic)component3).color = color;
				}
				Avatar(child, isSecondChild: false);
			}
		}
	}

	public static void Bodymall(Transform parent)
	{
		//IL_0019: Unknown result type (might be due to invalid IL or missing references)
		//IL_001e: 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_0010: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c9: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
		//IL_0103: Unknown result type (might be due to invalid IL or missing references)
		//IL_0122: Unknown result type (might be due to invalid IL or missing references)
		if (PreferencesCreator.IsEnabled)
		{
			color = Colors.NorthWest;
		}
		else
		{
			color = Color.white;
		}
		for (int i = 0; i < parent.childCount; i++)
		{
			Transform child = parent.GetChild(i);
			Image component = ((Component)child).GetComponent<Image>();
			TextMeshProUGUI component2 = ((Component)child).GetComponent<TextMeshProUGUI>();
			TextMeshPro component3 = ((Component)child).GetComponent<TextMeshPro>();
			if (!(((Object)child).name == "img_outline") && !(((Object)child).name == "img_bg") && !((Object)child).name.Contains("image_backline"))
			{
				if (((Object)child).name == "Chart")
				{
					Renderer component4 = ((Component)child).GetComponent<Renderer>();
					Material material = component4.material;
					material.color = color;
				}
				if ((Object)(object)component != (Object)null)
				{
					((Graphic)component).color = color;
				}
				else if ((Object)(object)component2 != (Object)null)
				{
					((Graphic)component2).color = color;
				}
				else if ((Object)(object)component3 != (Object)null)
				{
					((Graphic)component3).color = color;
				}
				Bodymall(child);
			}
		}
	}
}
public class LevelSelectUI
{
	private static Color color;

	public static void LevelSelect(Transform parent, bool isSecondChild)
	{
		//IL_0019: Unknown result type (might be due to invalid IL or missing references)
		//IL_001e: 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_0010: Unknown result type (might be due to invalid IL or missing references)
		//IL_0061: Unknown result type (might be due to invalid IL or missing references)
		//IL_0080: Unknown result type (might be due to invalid IL or missing references)
		if (PreferencesCreator.IsEnabled)
		{
			color = Colors.NorthEast;
		}
		else
		{
			color = Color.white;
		}
		for (int i = 0; i < parent.childCount; i++)
		{
			Transform child = parent.GetChild(i);
			if (!isSecondChild || i != 1)
			{
				Image component = ((Component)child).GetComponent<Image>();
				TextMeshProUGUI component2 = ((Component)child).GetComponent<TextMeshProUGUI>();
				if ((Object)(object)component != (Object)null)
				{
					((Graphic)component).color = color;
				}
				else if ((Object)(object)component2 != (Object)null)
				{
					((Graphic)component2).color = color;
				}
				LevelSelect(child, isSecondChild: false);
			}
		}
	}
}
public class PreferencesUI
{
	private static Color color;

	public static void Preferences(Transform parent, bool isSecondChild)
	{
		//IL_0019: Unknown result type (might be due to invalid IL or missing references)
		//IL_001e: 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_0010: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_00fc: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ed: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f2: Unknown result type (might be due to invalid IL or missing references)
		//IL_010f: Unknown result type (might be due to invalid IL or missing references)
		//IL_012a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0145: Unknown result type (might be due to invalid IL or missing references)
		//IL_0160: Unknown result type (might be due to invalid IL or missing references)
		//IL_017b: Unknown result type (might be due to invalid IL or missing references)
		if (PreferencesCreator.IsEnabled)
		{
			color = Colors.East;
		}
		else
		{
			color = Color.white;
		}
		for (int i = 0; i < parent.childCount; i++)
		{
			Transform child = parent.GetChild(i);
			if (isSecondChild && i == 1)
			{
				continue;
			}
			Image component = ((Component)child).GetComponent<Image>();
			TextMeshProUGUI component2 = ((Component)child).GetComponent<TextMeshProUGUI>();
			RawImage component3 = ((Component)child).GetComponent<RawImage>();
			TextMeshPro component4 = ((Component)child).GetComponent<TextMeshPro>();
			Text component5 = ((Component)child).GetComponent<Text>();
			if (!(((Object)child).name == "Viewport_Spectator") && !(((Object)child).name == "Viewport_Graphics") && !(((Object)child).name == "Viewport") && !(((Object)child).name == "Name"))
			{
				Color val = ((!PreferencesCreator.IsEnabled) ? Color.white : Colors.East);
				if ((Object)(object)component != (Object)null)
				{
					((Graphic)component).color = val;
				}
				else if ((Object)(object)component2 != (Object)null)
				{
					((Graphic)component2).color = val;
				}
				else if ((Object)(object)component3 != (Object)null)
				{
					((Graphic)component3).color = val;
				}
				else if ((Object)(object)component4 != (Object)null)
				{
					((Graphic)component4).color = val;
				}
				else if ((Object)(object)component5 != (Object)null)
				{
					((Graphic)component5).color = val;
				}
				Preferences(child, isSecondChild: false);
			}
		}
	}

	public static void Extra(Transform parent)
	{
		//IL_0019: Unknown result type (might be due to invalid IL or missing references)
		//IL_001e: 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_0010: 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_006e: Unknown result type (might be due to invalid IL or missing references)
		if (PreferencesCreator.IsEnabled)
		{
			color = Colors.East;
		}
		else
		{
			color = Color.white;
		}
		for (int i = 0; i < parent.childCount; i++)
		{
			Transform child = parent.GetChild(i);
			Image component = ((Component)child).GetComponent<Image>();
			TextMeshProUGUI component2 = ((Component)child).GetComponent<TextMeshProUGUI>();
			if ((Object)(object)component != (Object)null)
			{
				((Graphic)component).color = color;
			}
			else if ((Object)(object)component2 != (Object)null)
			{
				((Graphic)component2).color = color;
			}
			Extra(child);
		}
	}
}
public class RadialMenuButtonsUI
{
	private static PageItemView N;

	private static PageItemView NE;

	private static PageItemView E;

	private static PageItemView SE;

	private static PageItemView S;

	private static PageItemView SW;

	private static PageItemView W;

	private static PageItemView NW;

	private static PageElementView M;

	public static void RadialMenuButtons()
	{
		//IL_0056: 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_00c0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
		//IL_012a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0123: Unknown result type (might be due to invalid IL or missing references)
		//IL_0194: Unknown result type (might be due to invalid IL or missing references)
		//IL_018d: Unknown result type (might be due to invalid IL or missing references)
		//IL_01fe: Unknown result type (might be due to invalid IL or missing references)
		//IL_01f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0268: Unknown result type (might be due to invalid IL or missing references)
		//IL_0261: Unknown result type (might be due to invalid IL or missing references)
		//IL_02d2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02cb: Unknown result type (might be due to invalid IL or missing references)
		//IL_033c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0335: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ba: Unknown result type (might be due to invalid IL or missing references)
		//IL_03b3: Unknown result type (might be due to invalid IL or missing references)
		if ((Object)(object)N == (Object)null)
		{
			GameObject val = GameObject.Find("button_Region_N");
			if ((Object)(object)val != (Object)null)
			{
				N = val.GetComponent<PageItemView>();
			}
		}
		if ((Object)(object)N != (Object)null)
		{
			N.color2 = (PreferencesCreator.IsEnabled ? Colors.North : Color.white);
		}
		if ((Object)(object)NE == (Object)null)
		{
			GameObject val2 = GameObject.Find("button_Region_NE");
			if ((Object)(object)val2 != (Object)null)
			{
				NE = val2.GetComponent<PageItemView>();
			}
		}
		if ((Object)(object)NE != (Object)null)
		{
			NE.color2 = (PreferencesCreator.IsEnabled ? Colors.NorthEast : Color.white);
		}
		if ((Object)(object)E == (Object)null)
		{
			GameObject val3 = GameObject.Find("button_Region_E");
			if ((Object)(object)val3 != (Object)null)
			{
				E = val3.GetComponent<PageItemView>();
			}
		}
		if ((Object)(object)E != (Object)null)
		{
			E.color2 = (PreferencesCreator.IsEnabled ? Colors.East : Color.white);
		}
		if ((Object)(object)SE == (Object)null)
		{
			GameObject val4 = GameObject.Find("button_Region_SE");
			if ((Object)(object)val4 != (Object)null)
			{
				SE = val4.GetComponent<PageItemView>();
			}
		}
		if ((Object)(object)SE != (Object)null)
		{
			SE.color2 = (PreferencesCreator.IsEnabled ? Colors.SouthEast : Color.white);
		}
		if ((Object)(object)S == (Object)null)
		{
			GameObject val5 = GameObject.Find("button_Region_S");
			if ((Object)(object)val5 != (Object)null)
			{
				S = val5.GetComponent<PageItemView>();
			}
		}
		if ((Object)(object)S != (Object)null)
		{
			S.color2 = (PreferencesCreator.IsEnabled ? Colors.South : Color.white);
		}
		if ((Object)(object)SW == (Object)null)
		{
			GameObject val6 = GameObject.Find("button_Region_SW");
			if ((Object)(object)val6 != (Object)null)
			{
				SW = val6.GetComponent<PageItemView>();
			}
		}
		if ((Object)(object)SW != (Object)null)
		{
			SW.color2 = (PreferencesCreator.IsEnabled ? Colors.SouthWest : Color.white);
		}
		if ((Object)(object)W == (Object)null)
		{
			GameObject val7 = GameObject.Find("button_Region_W");
			if ((Object)(object)val7 != (Object)null)
			{
				W = val7.GetComponent<PageItemView>();
			}
		}
		if ((Object)(object)W != (Object)null)
		{
			W.color2 = (PreferencesCreator.IsEnabled ? Colors.West : Color.white);
		}
		if ((Object)(object)NW == (Object)null)
		{
			GameObject val8 = GameObject.Find("button_Region_NW");
			if ((Object)(object)val8 != (Object)null)
			{
				NW = val8.GetComponent<PageItemView>();
			}
		}
		if ((Object)(object)NW != (Object)null)
		{
			NW.color2 = (PreferencesCreator.IsEnabled ? Colors.NorthWest : Color.white);
		}
		if ((Object)(object)M == (Object)null)
		{
			GameObject val9 = GameObject.Find("button_cancel");
			if ((Object)(object)val9 != (Object)null)
			{
				M = val9.GetComponent<PageElementView>();
			}
		}
		if ((Object)(object)M != (Object)null)
		{
			M.color2 = (Color)(PreferencesCreator.IsEnabled ? Colors.Middle : new Color(1f, 0.2667f, 0.4824f, 0.749f));
		}
	}
}
public class RadialMenuTextAndImageUI
{
	public static void RadialMenuTextAndImage(Transform parent)
	{
		//IL_0364: Unknown result type (might be due to invalid IL or missing references)
		//IL_0381: 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_0097: 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_00f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_0127: Unknown result type (might be due to invalid IL or missing references)
		//IL_0157: Unknown result type (might be due to invalid IL or missing references)
		//IL_0189: Unknown result type (might be due to invalid IL or missing references)
		//IL_01bb: Unknown result type (might be due to invalid IL or missing references)
		//IL_01ed: Unknown result type (might be due to invalid IL or missing references)
		//IL_021f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0251: Unknown result type (might be due to invalid IL or missing references)
		//IL_0283: Unknown result type (might be due to invalid IL or missing references)
		//IL_02b5: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e7: 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_0345: Unknown result type (might be due to invalid IL or missing references)
		for (int i = 0; i < parent.childCount; i++)
		{
			Transform child = parent.GetChild(i);
			Image component = ((Component)child).GetComponent<Image>();
			TextMeshProUGUI component2 = ((Component)child).GetComponent<TextMeshProUGUI>();
			if (((Object)child).name == "text_Information")
			{
				continue;
			}
			if (PreferencesCreator.IsEnabled)
			{
				if ((Object)(object)component != (Object)null && (i == 0 || i == 1))
				{
					((Graphic)component).color = Colors.North;
				}
				else if ((Object)(object)component2 != (Object)null && (i == 0 || i == 1))
				{
					((Graphic)component2).color = Colors.North;
				}
				else if ((Object)(object)component != (Object)null && (i == 3 || i == 4))
				{
					((Graphic)component).color = Colors.NorthEast;
				}
				else if ((Object)(object)component2 != (Object)null && (i == 3 || i == 4))
				{
					((Graphic)component2).color = Colors.NorthEast;
				}
				else if ((Object)(object)component != (Object)null && (i == 6 || i == 7))
				{
					((Graphic)component).color = Colors.East;
				}
				else if ((Object)(object)component2 != (Object)null && (i == 6 || i == 7))
				{
					((Graphic)component2).color = Colors.East;
				}
				else if ((Object)(object)component != (Object)null && (i == 9 || i == 10))
				{
					((Graphic)component).color = Colors.SouthEast;
				}
				else if ((Object)(object)component2 != (Object)null && (i == 9 || i == 10))
				{
					((Graphic)component2).color = Colors.SouthEast;
				}
				else if ((Object)(object)component != (Object)null && (i == 12 || i == 13))
				{
					((Graphic)component).color = Colors.South;
				}
				else if ((Object)(object)component2 != (Object)null && (i == 12 || i == 13))
				{
					((Graphic)component2).color = Colors.South;
				}
				else if ((Object)(object)component != (Object)null && (i == 15 || i == 16))
				{
					((Graphic)component).color = Colors.SouthWest;
				}
				else if ((Object)(object)component2 != (Object)null && (i == 15 || i == 16))
				{
					((Graphic)component2).color = Colors.SouthWest;
				}
				else if ((Object)(object)component != (Object)null && (i == 18 || i == 19))
				{
					((Graphic)component).color = Colors.West;
				}
				else if ((Object)(object)component2 != (Object)null && (i == 18 || i == 19))
				{
					((Graphic)component2).color = Colors.West;
				}
				else if ((Object)(object)component != (Object)null && (i == 21 || i == 22))
				{
					((Graphic)component).color = Colors.NorthWest;
				}
				else if ((Object)(object)component2 != (Object)null && (i == 21 || i == 22))
				{
					((Graphic)component2).color = Colors.NorthWest;
				}
			}
			else if ((Object)(object)component != (Object)null)
			{
				((Graphic)component).color = Color.white;
			}
			else if ((Object)(object)component2 != (Object)null)
			{
				((Graphic)component2).color = Color.white;
			}
			RadialMenuTextAndImage(child);
		}
	}
}
public class SpawnGunUI
{
	private static Color color;

	public static void SpawnGun(Transform parent, bool isFourthChild)
	{
		//IL_0019: Unknown result type (might be due to invalid IL or missing references)
		//IL_001e: 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_0010: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c1: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e0: 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)
		if (PreferencesCreator.IsEnabled)
		{
			color = Colors.West;
		}
		else
		{
			color = Color.white;
		}
		for (int i = 0; i < parent.childCount; i++)
		{
			Transform child = parent.GetChild(i);
			Image component = ((Component)child).GetComponent<Image>();
			TextMeshProUGUI component2 = ((Component)child).GetComponent<TextMeshProUGUI>();
			TextMeshPro component3 = ((Component)child).GetComponent<TextMeshPro>();
			if (!(((Object)child).name == "Background") && (!(((Object)child).name == "image_backline") || !(((Object)((Component)child.parent).gameObject).name == "group_selectedInfo")) && (!isFourthChild || i != 3))
			{
				if ((Object)(object)component != (Object)null)
				{
					((Graphic)component).color = color;
				}
				else if ((Object)(object)component2 != (Object)null)
				{
					((Graphic)component2).color = color;
				}
				else if ((Object)(object)component3 != (Object)null)
				{
					((Graphic)component3).color = color;
				}
				SpawnGun(child, isFourthChild: false);
			}
		}
	}
}
public class Colors
{
	public static Color North = new Color(0f, 1f, 1f, 1f);

	public static Color NorthEast = new Color(1f, 0.5f, 0f, 1f);

	public static Color East = new Color(1f, 1f, 0f, 1f);

	public static Color SouthEast = new Color(0f, 0f, 1f, 1f);

	public static Color South = new Color(1f, 0f, 1f, 1f);

	public static Color SouthWest = new Color(0.5f, 0f, 1f, 1f);

	public static Color West = new Color(1f, 0f, 0f, 1f);

	public static Color NorthWest = new Color(0f, 1f, 0f, 1f);

	public static Color Middle = new Color(1f, 0.2f, 0.2f, 0.7f);

	public static Color NorthDefult = new Color(0f, 1f, 1f, 1f);

	public static Color NorthEastDefult = new Color(1f, 0.5f, 0f, 1f);

	public static Color EastDefult = new Color(1f, 1f, 0f, 1f);

	public static Color SouthEastDefult = new Color(0f, 0f, 1f, 1f);

	public static Color SouthDefult = new Color(1f, 0f, 1f, 1f);

	public static Color SouthWestDefult = new Color(0.5f, 0f, 1f, 1f);

	public static Color WestDefult = new Color(1f, 0f, 0f, 1f);

	public static Color NorthWestDefult = new Color(0f, 1f, 0f, 1f);

	public static Color MiddleDefult = new Color(1f, 0.2f, 0.2f, 1f);

	public static void ColorAssignment()
	{
		//IL_0021: Unknown result type (might be due to invalid IL or missing references)
		//IL_0026: 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_0018: Unknown result type (might be due to invalid IL or missing references)
		//IL_0031: Unknown result type (might be due to invalid IL or missing references)
		//IL_0050: Unknown result type (might be due to invalid IL or missing references)
		//IL_0055: 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_0047: 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_007f: 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_0071: Unknown result type (might be due to invalid IL or missing references)
		//IL_0076: 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_00ae: Unknown result type (might be due to invalid IL or missing references)
		//IL_00b3: 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_00a5: Unknown result type (might be due to invalid IL or missing references)
		//IL_00be: Unknown result type (might be due to invalid IL or missing references)
		//IL_00df: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d1: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
		//IL_0110: 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_0102: 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_0120: Unknown result type (might be due to invalid IL or missing references)
		//IL_0141: 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_0133: Unknown result type (might be due to invalid IL or missing references)
		//IL_0138: Unknown result type (might be due to invalid IL or missing references)
		//IL_0151: Unknown result type (might be due to invalid IL or missing references)
		//IL_0172: Unknown result type (might be due to invalid IL or missing references)
		//IL_0177: 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)
		//IL_0169: Unknown result type (might be due to invalid IL or missing references)
		//IL_0182: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a3: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a8: Unknown result type (might be due to invalid IL or missing references)
		//IL_0195: Unknown result type (might be due to invalid IL or missing references)
		//IL_019a: Unknown result type (might be due to invalid IL or missing references)
		if (PreferencesCreator.NorthPref != null)
		{
			North = PreferencesCreator.NorthPref.Value;
		}
		else
		{
			North = NorthDefult;
		}
		_ = PreferencesCreator.NorthEastPref.Value;
		if (true)
		{
			NorthEast = PreferencesCreator.NorthEastPref.Value;
		}
		else
		{
			NorthEast = NorthEastDefult;
		}
		_ = PreferencesCreator.EastPref.Value;
		if (true)
		{
			East = PreferencesCreator.EastPref.Value;
		}
		else
		{
			East = EastDefult;
		}
		_ = PreferencesCreator.SouthEastPref.Value;
		if (true)
		{
			SouthEast = PreferencesCreator.SouthEastPref.Value;
		}
		else
		{
			SouthEast = SouthEastDefult;
		}
		_ = PreferencesCreator.SouthPref.Value;
		if (true)
		{
			South = PreferencesCreator.SouthPref.Value;
		}
		else
		{
			South = SouthDefult;
		}
		_ = PreferencesCreator.SouthWestPref.Value;
		if (true)
		{
			SouthWest = PreferencesCreator.SouthWestPref.Value;
		}
		else
		{
			SouthWest = SouthWestDefult;
		}
		_ = PreferencesCreator.WestPref.Value;
		if (true)
		{
			West = PreferencesCreator.WestPref.Value;
		}
		else
		{
			West = WestDefult;
		}
		_ = PreferencesCreator.NorthWestPref.Value;
		if (true)
		{
			NorthWest = PreferencesCreator.NorthWestPref.Value;
		}
		else
		{
			NorthWest = NorthWestDefult;
		}
		_ = PreferencesCreator.MiddlePref.Value;
		if (true)
		{
			Middle = PreferencesCreator.MiddlePref.Value;
		}
		else
		{
			Middle = MiddleDefult;
		}
	}
}
public static class BuildInfo
{
	public const string Name = "Colorful";

	public const string Author = "Bread Soup";

	public const string Company = null;

	public const string Version = "1.1.2";

	public const string DownloadLink = null;
}
internal class Main : MelonMod
{
	public void OnSceneAwake()
	{
		if (PreferencesCreator.IsEnabled)
		{
			MoggingTime();
		}
		RadialMenuButtonsUI.RadialMenuButtons();
	}

	public override void OnInitializeMelon()
	{
		Hooking.OnLevelLoaded += delegate
		{
			OnSceneAwake();
		};
		PreferencesCreator.MelonPreferencesCreator();
		Colors.ColorAssignment();
		PreferencesCreator.BonemenuCreator();
	}

	public static void MoggingTime()
	{
		Il2CppArrayBase<GameObject> val = Object.FindObjectsOfType<GameObject>(true);
		foreach (GameObject item in val)
		{
			if (((Object)item).name.Contains("group_levelSelect"))
			{
				LevelSelectUI.LevelSelect(item.transform, isSecondChild: true);
			}
			else if (((Object)item).name.Contains("panel_Preferences"))
			{
				PreferencesUI.Preferences(item.transform, isSecondChild: true);
			}
			else if (((Object)item).name.Contains("grid_Graphics"))
			{
				PreferencesUI.Extra(item.transform);
			}
			else if (((Object)item).name.Contains("group_toolMenu"))
			{
				SpawnGunUI.SpawnGun(item.transform, isFourthChild: true);
			}
			else if (((Object)item).name.Contains("group_AvatarSelect"))
			{
				AvatarSelectUI.Avatar(item.transform, isSecondChild: true);
			}
			else if (((Object)item).name.Contains("BodyMallController"))
			{
				AvatarSelectUI.Bodymall(item.transform);
			}
			else if (((Object)item).name.Contains("CANVAS_RADIALUI"))
			{
				RadialMenuTextAndImageUI.RadialMenuTextAndImage(item.transform);
			}
		}
		RadialMenuButtonsUI.RadialMenuButtons();
	}
}
internal class PreferencesCreator
{
	public static MelonPreferences_Category MelonPrefCategory { get; private set; }

	public static MelonPreferences_Entry<bool> MelonPrefEnabled { get; private set; }

	public static bool IsEnabled { get; private set; }

	public static MelonPreferences_Entry<Color> NorthPref { get; private set; }

	public static MelonPreferences_Entry<Color> NorthEastPref { get; private set; }

	public static MelonPreferences_Entry<Color> EastPref { get; private set; }

	public static MelonPreferences_Entry<Color> SouthEastPref { get; private set; }

	public static MelonPreferences_Entry<Color> SouthPref { get; private set; }

	public static MelonPreferences_Entry<Color> SouthWestPref { get; private set; }

	public static MelonPreferences_Entry<Color> WestPref { get; private set; }

	public static MelonPreferences_Entry<Color> NorthWestPref { get; private set; }

	public static MelonPreferences_Entry<Color> MiddlePref { get; private set; }

	public static bool MelonPrefEnabledValue { get; private set; }

	public static void MelonPreferencesCreator()
	{
		//IL_0047: Unknown result type (might be due to invalid IL or missing references)
		//IL_0067: Unknown result type (might be due to invalid IL or missing references)
		//IL_0087: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a7: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c7: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e7: 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_0127: Unknown result type (might be due to invalid IL or missing references)
		//IL_0147: Unknown result type (might be due to invalid IL or missing references)
		MelonPrefCategory = MelonPreferences.CreateCategory("Colorful");
		MelonPrefEnabled = MelonPrefCategory.CreateEntry<bool>("IsEnabled", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null);
		IsEnabled = MelonPrefEnabled.Value;
		NorthPref = MelonPrefCategory.CreateEntry<Color>("Eject Color", Colors.NorthDefult, (string)null, (string)null, false, false, (ValueValidator)null, (string)null);
		NorthEastPref = MelonPrefCategory.CreateEntry<Color>("Level Select Color", Colors.NorthEastDefult, (string)null, (string)null, false, false, (ValueValidator)null, (string)null);
		EastPref = MelonPrefCategory.CreateEntry<Color>("Preferences Color", Colors.EastDefult, (string)null, (string)null, false, false, (ValueValidator)null, (string)null);
		SouthEastPref = MelonPrefCategory.CreateEntry<Color>("Quick Mute Color", Colors.SouthEastDefult, (string)null, (string)null, false, false, (ValueValidator)null, (string)null);
		SouthPref = MelonPrefCategory.CreateEntry<Color>("Inventory Color", Colors.SouthDefult, (string)null, (string)null, false, false, (ValueValidator)null, (string)null);
		SouthWestPref = MelonPrefCategory.CreateEntry<Color>("Spawn Devtools Color", Colors.SouthWestDefult, (string)null, (string)null, false, false, (ValueValidator)null, (string)null);
		WestPref = MelonPrefCategory.CreateEntry<Color>("SpawnGun Menu Color", Colors.WestDefult, (string)null, (string)null, false, false, (ValueValidator)null, (string)null);
		NorthWestPref = MelonPrefCategory.CreateEntry<Color>("Avatar Select Color", Colors.NorthWestDefult, (string)null, (string)null, false, false, (ValueValidator)null, (string)null);
		MiddlePref = MelonPrefCategory.CreateEntry<Color>("Radial Cancel Color", Colors.MiddleDefult, (string)null, (string)null, false, false, (ValueValidator)null, (string)null);
	}

	public static void BonemenuCreator()
	{
		//IL_0008: Unknown result type (might be due to invalid IL or missing references)
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		//IL_0028: 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)
		//IL_0048: Unknown result type (might be due to invalid IL or missing references)
		//IL_0058: 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_0078: Unknown result type (might be due to invalid IL or missing references)
		//IL_0133: Unknown result type (might be due to invalid IL or missing references)
		//IL_0150: Unknown result type (might be due to invalid IL or missing references)
		//IL_0178: Unknown result type (might be due to invalid IL or missing references)
		//IL_018f: Unknown result type (might be due to invalid IL or missing references)
		//IL_01b2: Unknown result type (might be due to invalid IL or missing references)
		//IL_01c9: Unknown result type (might be due to invalid IL or missing references)
		//IL_01ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_0203: Unknown result type (might be due to invalid IL or missing references)
		//IL_0226: Unknown result type (might be due to invalid IL or missing references)
		//IL_023d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0260: Unknown result type (might be due to invalid IL or missing references)
		//IL_0277: Unknown result type (might be due to invalid IL or missing references)
		//IL_029a: Unknown result type (might be due to invalid IL or missing references)
		//IL_02b1: Unknown result type (might be due to invalid IL or missing references)
		//IL_02d4: Unknown result type (might be due to invalid IL or missing references)
		//IL_02eb: Unknown result type (might be due to invalid IL or missing references)
		//IL_030e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0325: Unknown result type (might be due to invalid IL or missing references)
		//IL_0347: Unknown result type (might be due to invalid IL or missing references)
		//IL_035b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0372: Unknown result type (might be due to invalid IL or missing references)
		//IL_038f: Unknown result type (might be due to invalid IL or missing references)
		//IL_039d: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ba: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ee: Unknown result type (might be due to invalid IL or missing references)
		//IL_040c: Unknown result type (might be due to invalid IL or missing references)
		//IL_042a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0448: Unknown result type (might be due to invalid IL or missing references)
		//IL_0466: Unknown result type (might be due to invalid IL or missing references)
		//IL_0484: Unknown result type (might be due to invalid IL or missing references)
		//IL_04a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_04c0: Unknown result type (might be due to invalid IL or missing references)
		string NorthHexcode = ColorUtility.ToHtmlStringRGBA(Colors.North);
		string NorthEastHexcode = ColorUtility.ToHtmlStringRGBA(Colors.NorthEast);
		string EastHexcode = ColorUtility.ToHtmlStringRGBA(Colors.East);
		string SouthEastHexcode = ColorUtility.ToHtmlStringRGBA(Colors.SouthEast);
		string SouthHexcode = ColorUtility.ToHtmlStringRGBA(Colors.South);
		string SouthWestHexcode = ColorUtility.ToHtmlStringRGBA(Colors.SouthWest);
		string WestHexcode = ColorUtility.ToHtmlStringRGBA(Colors.West);
		string NorthWestHexcode = ColorUtility.ToHtmlStringRGBA(Colors.NorthWest);
		string text = "<color=#" + NorthHexcode + ">C</color><color=#" + NorthEastHexcode + ">o</color><color=#" + EastHexcode + ">l</color><color=#" + SouthEastHexcode + ">o</color><color=#" + SouthHexcode + ">r</color><color=#" + SouthWestHexcode + ">f</color><color=#" + WestHexcode + ">u</color><color=#" + NorthWestHexcode + ">l</color>";
		Page category = Page.Root.CreatePage(text, Color.white, 9, true);
		category.CreateBool("Mod Toggle", Color.yellow, IsEnabled, (Action<bool>)OnSetEnabled);
		Page NorthButton = category.CreatePage("Eject", Colors.North, 0, true);
		ColorfulMenuCreator(NorthButton, Colors.North, delegate(Color updatedColor)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: 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_0015: 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)
			Colors.North = updatedColor;
			NorthButton.Color = updatedColor;
			NorthHexcode = ColorUtility.ToHtmlStringRGBA(updatedColor);
			category.Name = "<color=#" + NorthHexcode + ">C</color><color=#" + NorthEastHexcode + ">o</color><color=#" + EastHexcode + ">l</color><color=#" + SouthEastHexcode + ">o</color><color=#" + SouthHexcode + ">r</color><color=#" + SouthWestHexcode + ">f</color><color=#" + WestHexcode + ">u</color><color=#" + NorthWestHexcode + ">l</color>";
			NorthPref.Value = updatedColor;
			MelonPrefCategory.SaveToFile(true);
		});
		Page NorthEastButton = category.CreatePage("Level Select", Colors.NorthEast, 0, true);
		ColorfulMenuCreator(NorthEastButton, Colors.NorthEast, delegate(Color updatedColor)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: 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_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			Colors.NorthEast = updatedColor;
			NorthEastButton.Color = updatedColor;
			NorthEastHexcode = ColorUtility.ToHtmlStringRGBA(Colors.NorthEast);
			category.Name = "<color=#" + NorthHexcode + ">C</color><color=#" + NorthEastHexcode + ">o</color><color=#" + EastHexcode + ">l</color><color=#" + SouthEastHexcode + ">o</color><color=#" + SouthHexcode + ">r</color><color=#" + SouthWestHexcode + ">f</color><color=#" + WestHexcode + ">u</color><color=#" + NorthWestHexcode + ">l</color>";
			NorthEastPref.Value = updatedColor;
			MelonPrefCategory.SaveToFile(true);
		});
		Page EastButton = category.CreatePage("Preferences", Colors.East, 0, true);
		ColorfulMenuCreator(EastButton, Colors.East, delegate(Color updatedColor)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: 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_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			Colors.East = updatedColor;
			EastButton.Color = updatedColor;
			EastHexcode = ColorUtility.ToHtmlStringRGBA(Colors.East);
			category.Name = "<color=#" + NorthHexcode + ">C</color><color=#" + NorthEastHexcode + ">o</color><color=#" + EastHexcode + ">l</color><color=#" + SouthEastHexcode + ">o</color><color=#" + SouthHexcode + ">r</color><color=#" + SouthWestHexcode + ">f</color><color=#" + WestHexcode + ">u</color><color=#" + NorthWestHexcode + ">l</color>";
			EastPref.Value = updatedColor;
			MelonPrefCategory.SaveToFile(true);
		});
		Page SouthEastButton = category.CreatePage("Quick Mute", Colors.SouthEast, 0, true);
		ColorfulMenuCreator(SouthEastButton, Colors.SouthEast, delegate(Color updatedColor)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: 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_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			Colors.SouthEast = updatedColor;
			SouthEastButton.Color = updatedColor;
			SouthEastHexcode = ColorUtility.ToHtmlStringRGBA(Colors.SouthEast);
			category.Name = "<color=#" + NorthHexcode + ">C</color><color=#" + NorthEastHexcode + ">o</color><color=#" + EastHexcode + ">l</color><color=#" + SouthEastHexcode + ">o</color><color=#" + SouthHexcode + ">r</color><color=#" + SouthWestHexcode + ">f</color><color=#" + WestHexcode + ">u</color><color=#" + NorthWestHexcode + ">l</color>";
			SouthEastPref.Value = updatedColor;
			MelonPrefCategory.SaveToFile(true);
		});
		Page SouthButton = category.CreatePage("Inventory", Colors.South, 0, true);
		ColorfulMenuCreator(SouthButton, Colors.South, delegate(Color updatedColor)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: 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_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			Colors.South = updatedColor;
			SouthButton.Color = updatedColor;
			SouthEastHexcode = ColorUtility.ToHtmlStringRGBA(Colors.South);
			category.Name = "<color=#" + NorthHexcode + ">C</color><color=#" + NorthEastHexcode + ">o</color><color=#" + EastHexcode + ">l</color><color=#" + SouthEastHexcode + ">o</color><color=#" + SouthHexcode + ">r</color><color=#" + SouthWestHexcode + ">f</color><color=#" + WestHexcode + ">u</color><color=#" + NorthWestHexcode + ">l</color>";
			SouthPref.Value = updatedColor;
			MelonPrefCategory.SaveToFile(true);
		});
		Page SouthWestButton = category.CreatePage("Spawn Devtools", Colors.SouthWest, 0, true);
		ColorfulMenuCreator(SouthWestButton, Colors.SouthWest, delegate(Color updatedColor)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: 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_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			Colors.SouthWest = updatedColor;
			SouthWestButton.Color = updatedColor;
			SouthEastHexcode = ColorUtility.ToHtmlStringRGBA(Colors.SouthWest);
			category.Name = "<color=#" + NorthHexcode + ">C</color><color=#" + NorthEastHexcode + ">o</color><color=#" + EastHexcode + ">l</color><color=#" + SouthEastHexcode + ">o</color><color=#" + SouthHexcode + ">r</color><color=#" + SouthWestHexcode + ">f</color><color=#" + WestHexcode + ">u</color><color=#" + NorthWestHexcode + ">l</color>";
			SouthWestPref.Value = updatedColor;
			MelonPrefCategory.SaveToFile(true);
		});
		Page WestButton = category.CreatePage("SpawnGun Menu", Colors.West, 0, true);
		ColorfulMenuCreator(WestButton, Colors.West, delegate(Color updatedColor)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: 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_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			Colors.West = updatedColor;
			WestButton.Color = updatedColor;
			SouthEastHexcode = ColorUtility.ToHtmlStringRGBA(Colors.West);
			category.Name = "<color=#" + NorthHexcode + ">C</color><color=#" + NorthEastHexcode + ">o</color><color=#" + EastHexcode + ">l</color><color=#" + SouthEastHexcode + ">o</color><color=#" + SouthHexcode + ">r</color><color=#" + SouthWestHexcode + ">f</color><color=#" + WestHexcode + ">u</color><color=#" + NorthWestHexcode + ">l</color>";
			WestPref.Value = updatedColor;
			MelonPrefCategory.SaveToFile(true);
		});
		Page NorthWestButton = category.CreatePage("Avatar Select", Colors.NorthWest, 0, true);
		ColorfulMenuCreator(NorthWestButton, Colors.NorthWest, delegate(Color updatedColor)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: 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_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			Colors.NorthWest = updatedColor;
			NorthWestButton.Color = updatedColor;
			SouthEastHexcode = ColorUtility.ToHtmlStringRGBA(Colors.NorthWest);
			category.Name = "<color=#" + NorthHexcode + ">C</color><color=#" + NorthEastHexcode + ">o</color><color=#" + EastHexcode + ">l</color><color=#" + SouthEastHexcode + ">o</color><color=#" + SouthHexcode + ">r</color><color=#" + SouthWestHexcode + ">f</color><color=#" + WestHexcode + ">u</color><color=#" + NorthWestHexcode + ">l</color>";
			NorthWestPref.Value = updatedColor;
			MelonPrefCategory.SaveToFile(true);
		});
		Page val = category.CreatePage("Extra", Color.white, 0, true);
		Page MiddleButton = val.CreatePage("Radial Cancel", Colors.Middle, 0, true);
		ColorfulMenuCreator(MiddleButton, Colors.Middle, delegate(Color updatedColor)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: 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_0019: Unknown result type (might be due to invalid IL or missing references)
			Colors.Middle = updatedColor;
			MiddleButton.Color = updatedColor;
			MiddlePref.Value = updatedColor;
			MelonPrefCategory.SaveToFile(true);
		});
		Page category2 = val.CreatePage("Color Override", Color.black, 0, true);
		ColorfulMenuCreatorOverride(category2, Color.white, delegate(Color updatedColor)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: 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_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: 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_002c: 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_0034: 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_004b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0052: Unknown result type (might be due to invalid IL or missing references)
			//IL_0053: Unknown result type (might be due to invalid IL or missing references)
			//IL_005d: Unknown result type (might be due to invalid IL or missing references)
			//IL_006a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0071: Unknown result type (might be due to invalid IL or missing references)
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_007c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_0090: Unknown result type (might be due to invalid IL or missing references)
			//IL_0091: Unknown result type (might be due to invalid IL or missing references)
			//IL_009b: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00af: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ba: 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_00ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0105: Unknown result type (might be due to invalid IL or missing references)
			//IL_010c: Unknown result type (might be due to invalid IL or missing references)
			//IL_010d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0117: Unknown result type (might be due to invalid IL or missing references)
			Colors.Middle = updatedColor;
			MiddleButton.Color = updatedColor;
			Colors.Middle = updatedColor;
			MiddlePref.Value = updatedColor;
			NorthButton.Color = updatedColor;
			Colors.North = updatedColor;
			NorthPref.Value = updatedColor;
			NorthEastButton.Color = updatedColor;
			Colors.NorthEast = updatedColor;
			NorthEastPref.Value = updatedColor;
			EastButton.Color = updatedColor;
			Colors.East = updatedColor;
			EastPref.Value = updatedColor;
			SouthEastButton.Color = updatedColor;
			Colors.SouthEast = updatedColor;
			SouthEastPref.Value = updatedColor;
			SouthButton.Color = updatedColor;
			Colors.South = updatedColor;
			SouthPref.Value = updatedColor;
			SouthWestButton.Color = updatedColor;
			Colors.SouthWest = updatedColor;
			SouthWestPref.Value = updatedColor;
			WestButton.Color = updatedColor;
			Colors.West = updatedColor;
			WestPref.Value = updatedColor;
			NorthWestButton.Color = updatedColor;
			Colors.NorthWest = updatedColor;
			NorthWestPref.Value = updatedColor;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
		Page val2 = val.CreatePage("Reset To Defaults", Color.white, 9, true);
		val2.CreateFunction("Default Eject", Colors.NorthDefult, (Action)delegate
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: 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)
			NorthButton.Color = Colors.NorthDefult;
			Colors.North = Colors.NorthDefult;
			NorthPref.Value = Colors.NorthDefult;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
		val2.CreateFunction("Defult Level Select", Colors.NorthEastDefult, (Action)delegate
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: 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)
			NorthEastButton.Color = Colors.NorthEastDefult;
			Colors.NorthEast = Colors.NorthEastDefult;
			NorthEastPref.Value = Colors.NorthEastDefult;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
		val2.CreateFunction("Defult Preferences", Colors.EastDefult, (Action)delegate
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: 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)
			EastButton.Color = Colors.EastDefult;
			Colors.East = Colors.EastDefult;
			EastPref.Value = Colors.EastDefult;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
		val2.CreateFunction("Defult Quick Mute", Colors.SouthEastDefult, (Action)delegate
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: 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)
			SouthEastButton.Color = Colors.SouthEastDefult;
			Colors.SouthEast = Colors.SouthEastDefult;
			SouthEastPref.Value = Colors.SouthEastDefult;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
		val2.CreateFunction("Defult Inventory", Colors.SouthDefult, (Action)delegate
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: 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)
			SouthButton.Color = Colors.SouthDefult;
			Colors.South = Colors.SouthDefult;
			SouthPref.Value = Colors.SouthDefult;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
		val2.CreateFunction("Defult Spawn DevTools", Colors.SouthWestDefult, (Action)delegate
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: 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)
			SouthWestButton.Color = Colors.SouthWestDefult;
			Colors.SouthWest = Colors.SouthWestDefult;
			SouthWestPref.Value = Colors.SouthWestDefult;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
		val2.CreateFunction("Defult Spawn Gun Menu", Colors.WestDefult, (Action)delegate
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: 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)
			WestButton.Color = Colors.WestDefult;
			Colors.West = Colors.WestDefult;
			WestPref.Value = Colors.WestDefult;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
		val2.CreateFunction("Defult Avatar Select", Colors.NorthWestDefult, (Action)delegate
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: 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)
			NorthWestButton.Color = Colors.NorthWestDefult;
			Colors.NorthWest = Colors.NorthWestDefult;
			NorthWestPref.Value = Colors.NorthWestDefult;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
		val2.CreateFunction("Defult Radial Cancel", Colors.MiddleDefult, (Action)delegate
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: 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)
			MiddleButton.Color = Colors.MiddleDefult;
			Colors.Middle = Colors.MiddleDefult;
			MiddlePref.Value = Colors.MiddleDefult;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
		ColorfulMenuCreatorDefault(val2, delegate
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: 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_001c: 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_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_003c: 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)
			//IL_004c: 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_0067: Unknown result type (might be due to invalid IL or missing references)
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			//IL_0092: Unknown result type (might be due to invalid IL or missing references)
			//IL_009d: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bd: 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)
			//IL_00cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0102: Unknown result type (might be due to invalid IL or missing references)
			//IL_0113: Unknown result type (might be due to invalid IL or missing references)
			//IL_011e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0123: Unknown result type (might be due to invalid IL or missing references)
			//IL_012d: Unknown result type (might be due to invalid IL or missing references)
			//IL_013e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0149: Unknown result type (might be due to invalid IL or missing references)
			//IL_014e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0158: Unknown result type (might be due to invalid IL or missing references)
			//IL_0169: Unknown result type (might be due to invalid IL or missing references)
			//IL_0174: Unknown result type (might be due to invalid IL or missing references)
			//IL_0179: Unknown result type (might be due to invalid IL or missing references)
			//IL_0183: Unknown result type (might be due to invalid IL or missing references)
			Colors.Middle = Colors.MiddleDefult;
			MiddleButton.Color = Colors.MiddleDefult;
			Colors.Middle = Colors.MiddleDefult;
			MiddlePref.Value = Colors.MiddleDefult;
			NorthButton.Color = Colors.NorthDefult;
			Colors.North = Colors.NorthDefult;
			NorthPref.Value = Colors.NorthDefult;
			NorthEastButton.Color = Colors.NorthEastDefult;
			Colors.NorthEast = Colors.NorthEastDefult;
			NorthEastPref.Value = Colors.NorthEastDefult;
			EastButton.Color = Colors.EastDefult;
			Colors.East = Colors.EastDefult;
			EastPref.Value = Colors.EastDefult;
			SouthEastButton.Color = Colors.SouthEastDefult;
			Colors.SouthEast = Colors.SouthEastDefult;
			SouthEastPref.Value = Colors.SouthEastDefult;
			SouthButton.Color = Colors.SouthDefult;
			Colors.South = Colors.SouthDefult;
			SouthPref.Value = Colors.SouthDefult;
			SouthWestButton.Color = Colors.SouthWestDefult;
			Colors.SouthWest = Colors.SouthWestDefult;
			SouthWestPref.Value = Colors.SouthWestDefult;
			WestButton.Color = Colors.WestDefult;
			Colors.West = Colors.WestDefult;
			WestPref.Value = Colors.WestDefult;
			NorthWestButton.Color = Colors.NorthWestDefult;
			Colors.NorthWest = Colors.NorthWestDefult;
			NorthWestPref.Value = Colors.NorthWestDefult;
			Main.MoggingTime();
			MelonPrefCategory.SaveToFile(true);
		});
	}

	public static void ColorfulMenuCreator(Page category, Color currentColor, Action<Color> applyCallback)
	{
		//IL_0007: Unknown result type (might be due to invalid IL or missing references)
		//IL_0008: Unknown result type (might be due to invalid IL or missing references)
		//IL_004e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0064: Unknown result type (might be due to invalid IL or missing references)
		//IL_009c: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
		//IL_010c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0144: Unknown result type (might be due to invalid IL or missing references)
		float r2 = currentColor.r;
		float g2 = currentColor.g;
		float b2 = currentColor.b;
		float a2 = currentColor.a;
		FunctionElement colorPreview = category.CreateFunction("■■■■■■■■■■■", currentColor, (Action)null);
		FloatElement val = category.CreateFloat("Red", Color.red, currentColor.r, 0.1f, 0f, 1f, (Action<float>)delegate(float r)
		{
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			currentColor.r = r;
			((Element)colorPreview).ElementColor = currentColor;
		});
		FloatElement val2 = category.CreateFloat("Green", Color.green, currentColor.g, 0.1f, 0f, 1f, (Action<float>)delegate(float g)
		{
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			currentColor.g = g;
			((Element)colorPreview).ElementColor = currentColor;
		});
		FloatElement val3 = category.CreateFloat("Blue", Color.blue, currentColor.b, 0.1f, 0f, 1f, (Action<float>)delegate(float b)
		{
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			currentColor.b = b;
			((Element)colorPreview).ElementColor = currentColor;
		});
		FloatElement val4 = category.CreateFloat("Alpha", Color.black, currentColor.a, 0.1f, 0f, 1f, (Action<float>)delegate(float a)
		{
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			currentColor.a = a;
			((Element)colorPreview).ElementColor = currentColor;
		});
		category.CreateFunction("Apply", Color.white, (Action)delegate
		{
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			applyCallback(currentColor);
			Main.MoggingTime();
		});
	}

	public static void ColorfulMenuCreatorOverride(Page category, Color currentColor, Action<Color> applyCallback)
	{
		//IL_0007: Unknown result type (might be due to invalid IL or missing references)
		//IL_0008: Unknown result type (might be due to invalid IL or missing references)
		//IL_004e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0064: Unknown result type (might be due to invalid IL or missing references)
		//IL_009c: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
		//IL_010c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0144: Unknown result type (might be due to invalid IL or missing references)
		float r2 = currentColor.r;
		float g2 = currentColor.g;
		float b2 = currentColor.b;
		float a2 = currentColor.a;
		FunctionElement colorPreview = category.CreateFunction("■■■■■■■■■■■", currentColor, (Action)null);
		FloatElement val = category.CreateFloat("Red", Color.red, currentColor.r, 0.1f, 0f, 1f, (Action<float>)delegate(float r)
		{
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			currentColor.r = r;
			((Element)colorPreview).ElementColor = currentColor;
		});
		FloatElement val2 = category.CreateFloat("Green", Color.green, currentColor.g, 0.1f, 0f, 1f, (Action<float>)delegate(float g)
		{
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			currentColor.g = g;
			((Element)colorPreview).ElementColor = currentColor;
		});
		FloatElement val3 = category.CreateFloat("Blue", Color.blue, currentColor.b, 0.1f, 0f, 1f, (Action<float>)delegate(float b)
		{
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			currentColor.b = b;
			((Element)colorPreview).ElementColor = currentColor;
		});
		FloatElement val4 = category.CreateFloat("Alpha", Color.black, currentColor.a, 0.1f, 0f, 1f, (Action<float>)delegate(float a)
		{
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			currentColor.a = a;
			((Element)colorPreview).ElementColor = currentColor;
		});
		category.CreateFunction("Apply", Color.white, (Action)delegate
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			applyCallback(currentColor);
		});
	}

	public static void ColorfulMenuCreatorDefault(Page category, Action<Color> applyCallback)
	{
		//IL_0014: Unknown result type (might be due to invalid IL or missing references)
		category.CreateFunction("Default All", Color.black, (Action)delegate
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			applyCallback(Color.black);
		});
	}

	public static void OnSetEnabled(bool value)
	{
		IsEnabled = value;
		MelonPrefEnabled.Value = value;
		MelonPrefCategory.SaveToFile(true);
		Main.MoggingTime();
	}
}