Decompiled source of CleanerHud v1.0.3

CleanerHud.dll

Decompiled 10 months ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using Microsoft.CodeAnalysis;
using On.RoR2.UI;
using RoR2;
using RoR2.UI;
using TMPro;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.UI;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyCompany("CleanerHud")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("CleanerHud")]
[assembly: AssemblyTitle("CleanerHud")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace CleanerHud
{
	[BepInPlugin("AAAHIFU.CleanerHud", "CleanerHud", "1.0.1")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Main : BaseUnityPlugin
	{
		public const string PluginGUID = "AAAHIFU.CleanerHud";

		public const string PluginAuthor = "AAAHIFU";

		public const string PluginName = "CleanerHud";

		public const string PluginVersion = "1.0.1";

		public static Color survivorColor;

		public static Sprite white;

		public static Material fontMaterial;

		public static ManualLogSource logger;

		public static List<BodyIndex> bodyIndexBlacklist = new List<BodyIndex>();

		public bool runHooks = true;

		public void Awake()
		{
			//IL_0011: 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_0035: 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_0058: 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_0070: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_008c: 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_00a8: 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_00c4: 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_00e2: 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_0100: 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_0161: Unknown result type (might be due to invalid IL or missing references)
			//IL_0166: Unknown result type (might be due to invalid IL or missing references)
			//IL_017c: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_0212: Unknown result type (might be due to invalid IL or missing references)
			//IL_0222: 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_0241: Unknown result type (might be due to invalid IL or missing references)
			//IL_0246: 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_0265: Unknown result type (might be due to invalid IL or missing references)
			//IL_027f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0284: Unknown result type (might be due to invalid IL or missing references)
			//IL_029e: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_02bd: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_02dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_02e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_02fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0300: Unknown result type (might be due to invalid IL or missing references)
			//IL_031a: Unknown result type (might be due to invalid IL or missing references)
			//IL_031f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0339: Unknown result type (might be due to invalid IL or missing references)
			//IL_033e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0358: Unknown result type (might be due to invalid IL or missing references)
			//IL_035d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0377: Unknown result type (might be due to invalid IL or missing references)
			//IL_037c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0396: Unknown result type (might be due to invalid IL or missing references)
			//IL_039b: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b5: 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_0407: 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_04af: Unknown result type (might be due to invalid IL or missing references)
			//IL_04b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_06c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_06e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_06f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0708: Unknown result type (might be due to invalid IL or missing references)
			//IL_070d: Unknown result type (might be due to invalid IL or missing references)
			//IL_072f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0734: Unknown result type (might be due to invalid IL or missing references)
			//IL_0784: Unknown result type (might be due to invalid IL or missing references)
			//IL_0789: Unknown result type (might be due to invalid IL or missing references)
			//IL_07ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_07c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_099c: Unknown result type (might be due to invalid IL or missing references)
			//IL_09a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_09d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_09d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a65: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a96: Unknown result type (might be due to invalid IL or missing references)
			//IL_0aa6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0aab: Unknown result type (might be due to invalid IL or missing references)
			//IL_0af4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0af9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b4a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b4f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b65: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b6f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b7f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b84: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bd5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0be2: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bec: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c15: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c5a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c6a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c6f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ce5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d05: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d21: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d4f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d6b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0dab: Unknown result type (might be due to invalid IL or missing references)
			//IL_0dc7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e07: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e23: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e30: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e3a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e4c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e56: Expected O, but got Unknown
			//IL_0e5e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e68: Expected O, but got Unknown
			//IL_0e70: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e7a: Expected O, but got Unknown
			//IL_0e82: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e8c: Expected O, but got Unknown
			//IL_0e94: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e9e: Expected O, but got Unknown
			//IL_0ea6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eb0: Expected O, but got Unknown
			//IL_0eb8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ec2: Expected O, but got Unknown
			logger = ((BaseUnityPlugin)this).Logger;
			Texture2D val = Addressables.LoadAssetAsync<Texture2D>((object)"RoR2/Base/Common/texWhite.png").WaitForCompletion();
			white = Sprite.Create(val, new Rect(0f, 0f, 4f, 4f), new Vector2(0f, 0f));
			fontMaterial = Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/Common/Fonts/Bombardier/tmpBombDropshadow3D.mat").WaitForCompletion();
			GameObject prefab = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/UI/NotificationPanel2.prefab").WaitForCompletion();
			RemoveBackground(prefab);
			GameObject prefab2 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/UI/GenericTransformationNotificationPanel.prefab").WaitForCompletion();
			RemoveBackground(prefab2);
			GameObject prefab3 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/CloverVoid/CloverVoidTransformationNotificationPanel.prefab").WaitForCompletion();
			RemoveBackground(prefab3);
			GameObject prefab4 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/RegeneratingScrap/RegeneratingScrapRegenTransformationNotificationPanel.prefab").WaitForCompletion();
			RemoveBackground(prefab4);
			GameObject prefab5 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/UI/VoidTransformationNotificationPanel.prefab").WaitForCompletion();
			RemoveBackground(prefab5);
			GameObject val2 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerDefaultWaveUI.prefab").WaitForCompletion();
			Animator component = val2.GetComponent<Animator>();
			((Behaviour)component).enabled = false;
			Transform transform = val2.transform;
			Transform val3 = transform.Find("FillBarRoot");
			RectTransform component2 = ((Component)val3).GetComponent<RectTransform>();
			FillBarKillYourself fillBarKillYourself = ((Component)val3).gameObject.AddComponent<FillBarKillYourself>();
			fillBarKillYourself.idealPosition = new Vector3(-120f, -21.15f, 0f);
			((Transform)component2).localScale = new Vector3(0.725f, 1f, 1f);
			Transform val4 = val3.Find("Fillbar Backdrop");
			Image component3 = ((Component)val4).GetComponent<Image>();
			((Behaviour)component3).enabled = false;
			Transform val5 = val3.Find("FillBar Backdrop Inner");
			Image component4 = ((Component)val5).GetComponent<Image>();
			((Behaviour)component4).enabled = false;
			Transform val6 = transform.Find("RemainingEnemiesRoot");
			Transform val7 = val6.Find("RemainingEnemiesTitle");
			TextMeshProUGUI component5 = ((Component)val7).GetComponent<TextMeshProUGUI>();
			((Graphic)component5).color = Color.white;
			Transform val8 = val6.Find("RemainingEnemiesCounter");
			TextMeshProUGUI component6 = ((Component)val8).GetComponent<TextMeshProUGUI>();
			((Graphic)component6).color = Color.white;
			GameObject prefab6 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab6);
			GameObject prefab7 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentBossWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab7);
			GameObject prefab8 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentBossScavWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab8);
			GameObject prefab9 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentBossLunarWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab9);
			GameObject prefab10 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentBossBrotherUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab10);
			GameObject prefab11 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentArtifactBombWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab11, isAugment: true);
			GameObject prefab12 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentArtifactCommandWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab12, isAugment: true);
			GameObject prefab13 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentArtifactEnigmaWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab13, isAugment: true);
			GameObject prefab14 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentArtifactGlassWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab14, isAugment: true);
			GameObject prefab15 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentArtifactMixEnemyWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab15, isAugment: true);
			GameObject prefab16 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentArtifactSingleMonsterTypeWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab16, isAugment: true);
			GameObject val9 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentArtifactWeakAssKneesUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab11, isAugment: true);
			GameObject prefab17 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerCurrentArtifactBombWaveUI.prefab").WaitForCompletion();
			RemoveBgOutline(prefab17, isAugment: true);
			GameObject val10 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerAssets/InfiniteTowerNextWaveUI.prefab").WaitForCompletion();
			Transform val11 = val10.transform.Find("Offset");
			Transform val12 = val11.Find("TimeUntilNextWaveRoot");
			Transform child = val12.GetChild(0);
			Image component7 = ((Component)child).GetComponent<Image>();
			((Behaviour)component7).enabled = false;
			Transform transform2 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/UI/EnemyInfoPanel.prefab").WaitForCompletion().transform;
			Image component8 = ((Component)transform2).GetComponent<Image>();
			((Behaviour)component8).enabled = false;
			Transform val13 = transform2.Find("InnerFrame");
			Image component9 = ((Component)val13).GetComponent<Image>();
			((Behaviour)component9).enabled = false;
			Transform val14 = val13.Find("MonsterBodiesContainer");
			Transform val15 = val14.Find("MonsterBodyIconContainer");
			Image component10 = ((Component)val15).GetComponent<Image>();
			((Behaviour)component10).enabled = false;
			Transform val16 = val13.Find("InventoryContainer");
			Transform val17 = val16.Find("InventoryDisplay");
			Image component11 = ((Component)val17).GetComponent<Image>();
			((Behaviour)component11).enabled = false;
			GameObject val18 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/UI/GameEndReportPanel.prefab").WaitForCompletion();
			Transform val19 = val18.transform.Find("SafeArea (JUICED)");
			Transform val20 = val19.Find("HeaderArea");
			Transform val21 = val20.Find("DeathFlavorText");
			HGTextMeshProUGUI component12 = ((Component)val21).GetComponent<HGTextMeshProUGUI>();
			((TMP_Text)component12).fontStyle = (FontStyles)0;
			((TMP_Text)component12).fontSizeMax = 30f;
			Transform val22 = val20.Find("ResultArea");
			Transform val23 = val22.Find("ResultLabel");
			HGTextMeshProUGUI component13 = ((Component)val23).GetComponent<HGTextMeshProUGUI>();
			((Graphic)component13).material = fontMaterial;
			Transform val24 = val19.Find("BodyArea");
			Transform val25 = val24.Find("StatsAndChatArea");
			Transform val26 = val25.Find("StatsContainer");
			GameObject gameObject = ((Component)val26.Find("BorderImage")).gameObject;
			gameObject.SetActive(false);
			Transform val27 = val26.Find("Stats And Player Nav");
			Transform val28 = val27.Find("Stats Header");
			Image component14 = ((Component)val28).GetComponent<Image>();
			((Behaviour)component14).enabled = false;
			Transform val29 = val26.Find("Stats Body");
			Image component15 = ((Component)val29).GetComponent<Image>();
			((Behaviour)component15).enabled = false;
			Transform val30 = val29.Find("ScrollView");
			Transform val31 = val30.Find("Viewport");
			Transform val32 = val31.Find("Content");
			Transform val33 = val32.Find("SelectedDifficultyStrip");
			Image component16 = ((Component)val33).GetComponent<Image>();
			((Behaviour)component16).enabled = false;
			Transform val34 = val32.Find("EnabledArtifactsStrip");
			Image component17 = ((Component)val34).GetComponent<Image>();
			((Behaviour)component17).enabled = false;
			Transform val35 = val30.Find("Scrollbar Vertical");
			Image component18 = ((Component)val35).GetComponent<Image>();
			((Behaviour)component18).enabled = false;
			Transform val36 = val35.Find("Sliding Area");
			Transform val37 = val36.Find("Handle");
			Image component19 = ((Component)val37).GetComponent<Image>();
			((Behaviour)component19).enabled = false;
			Transform val38 = val25.Find("ChatArea");
			Image component20 = ((Component)val38).GetComponent<Image>();
			((Behaviour)component20).enabled = false;
			RectTransform component21 = ((Component)val38).GetComponent<RectTransform>();
			((Transform)component21).localPosition = new Vector3(441.5f, -311.66666f, 0f);
			((Transform)component21).localEulerAngles = new Vector3(0f, 357f, 0f);
			component21.sizeDelta = new Vector2(832f, 200f);
			GameObject val39 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/UI/StatStripTemplate.prefab").WaitForCompletion();
			Image component22 = val39.GetComponent<Image>();
			((Behaviour)component22).enabled = false;
			GameObject val40 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/UI/ChatBox.prefab").WaitForCompletion();
			Image component23 = val40.GetComponent<Image>();
			((Behaviour)component23).enabled = false;
			Transform val41 = val40.transform.Find("PermanentBG");
			Image component24 = ((Component)val41).GetComponent<Image>();
			component24.sprite = white;
			((Graphic)component24).color = Color32.op_Implicit(new Color32((byte)0, (byte)0, (byte)0, (byte)212));
			RectTransform component25 = ((Component)val41).GetComponent<RectTransform>();
			((Transform)component25).localPosition = new Vector3(0f, 1f, 0f);
			component25.sizeDelta = new Vector2(0f, 48f);
			Transform val42 = val40.transform.Find("StandardRect");
			Transform val43 = val42.Find("Scroll View");
			Transform val44 = val43.Find("Background");
			Image component26 = ((Component)val44).GetComponent<Image>();
			((Behaviour)component26).enabled = false;
			Transform val45 = val43.Find("BorderImage");
			Image component27 = ((Component)val45).GetComponent<Image>();
			((Behaviour)component27).enabled = false;
			Transform val46 = val43.Find("Scrollbar Vertical");
			Scrollbar component28 = ((Component)val46).GetComponent<Scrollbar>();
			((Behaviour)component28).enabled = true;
			Transform val47 = val24.Find("RightArea");
			Transform val48 = val47.Find("InfoArea");
			Transform val49 = val48.Find("BorderImage");
			Image component29 = ((Component)val49).GetComponent<Image>();
			((Behaviour)component29).enabled = false;
			Transform val50 = val48.Find("Info Header");
			Image component30 = ((Component)val50).GetComponent<Image>();
			((Behaviour)component30).enabled = false;
			Transform val51 = val48.Find("Info Body");
			Transform val52 = val51.Find("ItemArea");
			Transform val53 = val52.Find("Item Header");
			Image component31 = ((Component)val53).GetComponent<Image>();
			((Behaviour)component31).enabled = false;
			Transform val54 = val52.Find("ScrollView");
			Image component32 = ((Component)val54).GetComponent<Image>();
			((Behaviour)component32).enabled = false;
			Transform val55 = val54.Find("Scrollbar Vertical");
			Image component33 = ((Component)val55).GetComponent<Image>();
			((Behaviour)component33).enabled = false;
			Transform val56 = val51.Find("UnlockArea");
			Transform val57 = val56.Find("Unlocked Header");
			Image component34 = ((Component)val57).GetComponent<Image>();
			((Behaviour)component34).enabled = false;
			Transform val58 = val56.Find("ScrollView");
			Image component35 = ((Component)val58).GetComponent<Image>();
			((Behaviour)component35).enabled = false;
			Transform val59 = val58.Find("Scrollbar Vertical");
			Image component36 = ((Component)val59).GetComponent<Image>();
			((Behaviour)component36).enabled = false;
			GameObject val60 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/UI/HudCountdownPanel.prefab").WaitForCompletion();
			RectTransform component37 = val60.GetComponent<RectTransform>();
			UIKillYourself uIKillYourself = ((Component)component37).gameObject.AddComponent<UIKillYourself>();
			uIKillYourself.idealPosition = new Vector3(0f, -200f, 0f);
			Transform val61 = val60.transform.Find("Juice");
			Transform val62 = val61.Find("Container");
			Transform val63 = val62.Find("Backdrop");
			Image component38 = ((Component)val63).GetComponent<Image>();
			((Behaviour)component38).enabled = false;
			Transform val64 = val62.Find("Border");
			Image component39 = ((Component)val64).GetComponent<Image>();
			((Behaviour)component39).enabled = false;
			Transform val65 = val62.Find("CountdownTitleLabel");
			HGTextMeshProUGUI component40 = ((Component)val65).GetComponent<HGTextMeshProUGUI>();
			((TMP_Text)component40).fontSharedMaterial = fontMaterial;
			((Graphic)component40).color = Color.red;
			Transform val66 = val62.Find("CountdownLabel");
			HGTextMeshProUGUI component41 = ((Component)val66).GetComponent<HGTextMeshProUGUI>();
			((TMP_Text)component41).fontSharedMaterial = fontMaterial;
			((Graphic)component41).color = Color.red;
			GameObject val67 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/UI/ChatBox, In Run.prefab").WaitForCompletion();
			Transform val68 = val67.transform.Find("PermanentBG");
			Transform val69 = val68.Find("Input Field");
			Image component42 = ((Component)val69).GetComponent<Image>();
			component42.sprite = white;
			((Graphic)component42).color = Color32.op_Implicit(new Color32((byte)0, (byte)0, (byte)0, (byte)100));
			Transform val70 = val67.transform.Find("StandardRect");
			Transform val71 = val70.Find("Scroll View");
			Transform val72 = val71.Find("Scrollbar Vertical");
			Scrollbar component43 = ((Component)val72).GetComponent<Scrollbar>();
			((Behaviour)component43).enabled = true;
			GameObject val73 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/VoidSurvivor/VoidSurvivorCrosshair.prefab").WaitForCompletion();
			RectTransform component44 = val73.GetComponent<RectTransform>();
			((Transform)component44).localScale = Vector3.one * 0.8f;
			GameObject val74 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC1/VoidSurvivor/VoidSurvivorCorruptionUISimplified.prefab").WaitForCompletion();
			CanvasGroup val75 = val74.AddComponent<CanvasGroup>();
			val75.alpha = 0.66f;
			Animator component45 = val74.GetComponent<Animator>();
			component45.speed = 0.25f;
			RectTransform component46 = val74.GetComponent<RectTransform>();
			((Transform)component46).localPosition = new Vector3(0.5f, 0.5f, 0f);
			((Transform)component46).localScale = Vector3.one * 1.1f;
			Transform val76 = val74.transform.Find("FillRoot");
			RectTransform component47 = ((Component)val76).GetComponent<RectTransform>();
			((Transform)component47).localPosition = Vector3.zero;
			Transform val77 = val76.Find("Text");
			RectTransform component48 = ((Component)val77).GetComponent<RectTransform>();
			Image component49 = ((Component)val77).GetComponent<Image>();
			((Behaviour)component49).enabled = false;
			((Transform)component48).localPosition = new Vector3(0f, -60f, 0f);
			Transform transform3 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/UI/ScoreboardStrip.prefab").WaitForCompletion().transform;
			Transform val78 = transform3.Find("LongBackground");
			Image component50 = ((Component)val78).GetComponent<Image>();
			component50.sprite = white;
			Transform val79 = val78.Find("ClassBackground");
			Image component51 = ((Component)val79).GetComponent<Image>();
			((Behaviour)component51).enabled = false;
			RectTransform component52 = ((Component)val79).GetComponent<RectTransform>();
			Transform val80 = val78.Find("MoneyText");
			HGTextMeshProUGUI component53 = ((Component)val80).GetComponent<HGTextMeshProUGUI>();
			((Graphic)component53).color = Color.white;
			RectTransform component54 = ((Component)val80).GetComponent<RectTransform>();
			component54.pivot = new Vector2(0.5f, 0.5f);
			((Transform)component54).localPosition = new Vector3(-280f, 0f, 0f);
			Transform val81 = val78.Find("NameLabel");
			RectTransform component55 = ((Component)val81).GetComponent<RectTransform>();
			component55.pivot = new Vector2(0.5f, 0.5f);
			((Transform)component55).localPosition = new Vector3(-330f, 0f, 0f);
			Transform val82 = val78.Find("ItemsBackground");
			Image component56 = ((Component)val82).GetComponent<Image>();
			((Behaviour)component56).enabled = false;
			RectTransform component57 = ((Component)val82).GetComponent<RectTransform>();
			component57.pivot = new Vector2(0.5f, 0.5f);
			((Transform)component57).localPosition = new Vector3(100f, 5f, 0f);
			Transform val83 = val78.Find("EquipmentBackground");
			Image component58 = ((Component)val83).GetComponent<Image>();
			((Behaviour)component58).enabled = false;
			RectTransform component59 = ((Component)val83).GetComponent<RectTransform>();
			component59.pivot = new Vector2(0.5f, 0.5f);
			((Transform)component59).localPosition = new Vector3(475f, 1f, 0f);
			((Transform)component59).localScale = Vector3.one * 1.1f;
			HUD.Awake += new hook_Awake(HUD_Awake);
			AllyCardController.Awake += new hook_Awake(AllyCardController_Awake);
			AllyCardController.UpdateInfo += new hook_UpdateInfo(AllyCardController_UpdateInfo);
			ScoreboardController.Rebuild += new hook_Rebuild(ScoreboardController_Rebuild);
			BuffDisplay.UpdateLayout += new hook_UpdateLayout(BuffDisplay_UpdateLayout);
			InfiniteTowerWaveProgressBar.OnEnable += new hook_OnEnable(InfiniteTowerWaveProgressBar_OnEnable);
			HUDBossHealthBarController.LateUpdate += new hook_LateUpdate(HUDBossHealthBarController_LateUpdate);
		}

		private void HUDBossHealthBarController_LateUpdate(orig_LateUpdate orig, HUDBossHealthBarController self)
		{
			bool flag = Object.op_Implicit((Object)(object)self.currentBossGroup) && self.currentBossGroup.combatSquad.memberCount > 0;
			self.container.SetActive(flag);
			if (flag)
			{
				float totalObservedHealth = self.currentBossGroup.totalObservedHealth;
				float totalMaxObservedMaxHealth = self.currentBossGroup.totalMaxObservedMaxHealth;
				float num = ((totalMaxObservedMaxHealth == 0f) ? 0f : Mathf.Clamp01(totalObservedHealth / totalMaxObservedMaxHealth));
				self.delayedTotalHealthFraction = Mathf.Clamp(Mathf.SmoothDamp(self.delayedTotalHealthFraction, num, ref self.healthFractionVelocity, 0.1f, float.PositiveInfinity, Time.deltaTime), num, 1f);
				self.fillRectImage.fillAmount = num;
				self.delayRectImage.fillAmount = self.delayedTotalHealthFraction;
				HUDBossHealthBarController.sharedStringBuilder.Clear().Append(totalObservedHealth.ToString("#", CultureInfo.InvariantCulture)).Append("/")
					.Append(totalMaxObservedMaxHealth.ToString("#", CultureInfo.InvariantCulture));
				((TMP_Text)self.healthLabel).SetText(HUDBossHealthBarController.sharedStringBuilder);
				((TMP_Text)self.bossNameLabel).SetText(self.currentBossGroup.bestObservedName, true);
				((TMP_Text)self.bossSubtitleLabel).SetText(self.currentBossGroup.bestObservedSubtitle, true);
			}
		}

		public void RemoveBgOutline(GameObject prefab, bool isAugment = false)
		{
			//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ab: Unknown result type (might be due to invalid IL or missing references)
			Transform val = prefab.transform.Find("Offset");
			if (Object.op_Implicit((Object)(object)val))
			{
				Image component = ((Component)val).GetComponent<Image>();
				if (Object.op_Implicit((Object)(object)component))
				{
					((Behaviour)component).enabled = false;
				}
				Transform val2 = val.Find("Outline");
				if (Object.op_Implicit((Object)(object)val2))
				{
					((Component)val2).gameObject.SetActive(false);
				}
				if (isAugment)
				{
					Transform val3 = val.Find("VerticalLayout");
					Transform val4 = val3.Find("Wave Title");
					TextMeshProUGUI component2 = ((Component)val4).GetComponent<TextMeshProUGUI>();
					((Graphic)component2).color = Color32.op_Implicit(new Color32(byte.MaxValue, (byte)213, (byte)250, byte.MaxValue));
				}
			}
		}

		private void InfiniteTowerWaveProgressBar_OnEnable(orig_OnEnable orig, InfiniteTowerWaveProgressBar self)
		{
			//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
			orig.Invoke(self);
			if (runHooks)
			{
				if ((Object)(object)((Component)self.barImage).GetComponent<FillBarKillYourselfColor>() == (Object)null)
				{
					((Component)self.barImage).gameObject.AddComponent<FillBarKillYourselfColor>();
					self.barImage.sprite = white;
				}
				Transform parent = ((Component)self.barImage).transform.parent;
				Transform val = parent.Find("Animated");
				Image component = ((Component)val).GetComponent<Image>();
				((Graphic)component).color = new Color(survivorColor.r * 0.5f, survivorColor.g * 0.5f, survivorColor.b * 0.5f, 1f);
			}
		}

		private void BuffDisplay_UpdateLayout(orig_UpdateLayout orig, BuffDisplay self)
		{
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			if (runHooks)
			{
				int count = self.buffIcons.Count;
				if (((Object)self).name == "BuffDisplayRoot")
				{
					((Transform)self.rectTranform).localPosition = new Vector3(-25f * (float)count, -45f, 0f);
				}
			}
			orig.Invoke(self);
		}

		private void ScoreboardController_Rebuild(orig_Rebuild orig, ScoreboardController self)
		{
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			orig.Invoke(self);
			RectTransform container = self.container;
			if (!Object.op_Implicit((Object)(object)container))
			{
				return;
			}
			Transform child = ((Transform)container).GetChild(0);
			if (!Object.op_Implicit((Object)(object)child))
			{
				return;
			}
			Transform child2 = child.GetChild(0);
			if (Object.op_Implicit((Object)(object)child2))
			{
				Image component = ((Component)child2).GetComponent<Image>();
				if (Object.op_Implicit((Object)(object)component))
				{
					((Graphic)component).color = new Color(survivorColor.r, survivorColor.g, survivorColor.b, 0.15f);
				}
			}
		}

		public void RemoveBackground(GameObject prefab)
		{
			Transform child = prefab.transform.GetChild(0);
			if (Object.op_Implicit((Object)(object)child))
			{
				Transform val = child.Find("Backdrop");
				if (Object.op_Implicit((Object)(object)val))
				{
					((Component)val).gameObject.SetActive(false);
				}
			}
		}

		private void AllyCardController_UpdateInfo(orig_UpdateInfo orig, AllyCardController self)
		{
			orig.Invoke(self);
			Transform transform = ((Component)self.healthBar).transform;
			Transform val = transform.Find("BackgroundPanel");
			if (!Object.op_Implicit((Object)(object)val))
			{
				return;
			}
			Image component = ((Component)val).GetComponent<Image>();
			if (Object.op_Implicit((Object)(object)component))
			{
				((Behaviour)component).enabled = false;
			}
			if (val.childCount >= 2)
			{
				Transform child = val.GetChild(1);
				if (Object.op_Implicit((Object)(object)child))
				{
					((Component)child).gameObject.SetActive(false);
				}
			}
			if (val.childCount >= 3)
			{
				Transform child2 = val.GetChild(2);
				if (Object.op_Implicit((Object)(object)child2))
				{
					((Component)child2).gameObject.SetActive(false);
				}
			}
		}

		private void AllyCardController_Awake(orig_Awake orig, AllyCardController self)
		{
			orig.Invoke(self);
			Image component = ((Component)self).GetComponent<Image>();
			if (Object.op_Implicit((Object)(object)component))
			{
				((Behaviour)component).enabled = false;
			}
		}

		private void HUD_Awake(orig_Awake orig, HUD self)
		{
			orig.Invoke(self);
			((MonoBehaviour)self).StartCoroutine(ChangeStuff(self));
		}

		private IEnumerator ChangeStuff(HUD self)
		{
			CanvasGroup canvasGroup = (Object.op_Implicit((Object)(object)((Component)self).GetComponent<CanvasGroup>()) ? ((Component)self).GetComponent<CanvasGroup>() : ((Component)self).gameObject.AddComponent<CanvasGroup>());
			canvasGroup.alpha = 0f;
			yield return (object)new WaitForSeconds(0.2f);
			if (!Object.op_Implicit((Object)(object)Run.instance))
			{
				yield break;
			}
			survivorColor = Color.black;
			GameObject targetBodyObject = self.targetBodyObject;
			if (Object.op_Implicit((Object)(object)targetBodyObject))
			{
				CharacterBody cb = targetBodyObject.GetComponent<CharacterBody>();
				if (Object.op_Implicit((Object)(object)cb))
				{
					BodyIndex bodyIndex = cb.bodyIndex;
					if (bodyIndexBlacklist.Contains(bodyIndex))
					{
						canvasGroup.alpha = 1f;
						runHooks = false;
						yield break;
					}
					Color survColor = cb.bodyColor;
					survivorColor = EqualColorIntensity(survColor, 0.85f, 0.85f);
				}
			}
			CombatHealthBarViewer combatHealthBarViewer = self.combatHealthBarViewer;
			combatHealthBarViewer.healthBarDuration = 10f;
			Transform mainUIArea = self.mainUIPanel.transform;
			Transform upperRightCluster = ((Component)self.gameModeUiRoot).transform;
			Transform runInfoHudPanel = upperRightCluster.GetChild(0);
			Transform timerPanel = runInfoHudPanel.Find("TimerPanel");
			if (Object.op_Implicit((Object)(object)timerPanel))
			{
				Image timerPanelImage = ((Component)timerPanel).GetComponent<Image>();
				((Behaviour)timerPanelImage).enabled = false;
				GameObject wormGear = ((Component)timerPanel.Find("Wormgear")).gameObject;
				wormGear.SetActive(false);
				Transform timerText = timerPanel.Find("TimerText");
				HGTextMeshProUGUI timerTextMesh = ((Component)timerText).GetComponent<HGTextMeshProUGUI>();
				((Graphic)timerTextMesh).color = Color.white;
			}
			Transform wavePanel = runInfoHudPanel.Find("WavePanel");
			if (Object.op_Implicit((Object)(object)wavePanel))
			{
				Image wavePanelImage = ((Component)wavePanel).GetComponent<Image>();
				((Behaviour)wavePanelImage).enabled = false;
				Transform waveText = wavePanel.Find("WaveText");
				HGTextMeshProUGUI waveTextMesh = ((Component)waveText).GetComponent<HGTextMeshProUGUI>();
				((Graphic)waveTextMesh).color = Color.white;
			}
			Transform setDifficultyPanel = runInfoHudPanel.Find("SetDifficultyPanel");
			Image setDifficultyPanelImage = ((Component)setDifficultyPanel).GetComponent<Image>();
			((Behaviour)setDifficultyPanelImage).enabled = false;
			Transform difficultyIcon = setDifficultyPanel.Find("DifficultyIcon");
			RectTransform difficultyIconRect = ((Component)difficultyIcon).GetComponent<RectTransform>();
			((Transform)difficultyIconRect).localPosition = new Vector3(20f, 0f, -0.5f);
			Transform difficultyBar = runInfoHudPanel.Find("DifficultyBar");
			Image difficultyBarImage = ((Component)difficultyBar).GetComponent<Image>();
			((Behaviour)difficultyBarImage).enabled = false;
			Transform scrollView = difficultyBar.Find("Scroll View");
			Image scrollViewImage = ((Component)scrollView).GetComponent<Image>();
			((Behaviour)scrollViewImage).enabled = false;
			Transform viewport = scrollView.Find("Viewport");
			Transform content = viewport.Find("Content");
			for (int i = 0; i < content.childCount; i++)
			{
				Transform segment = content.GetChild(i);
				Image segmentImage = ((Component)segment).GetComponent<Image>();
				segmentImage.preserveAspect = true;
				((Graphic)segmentImage).color = new Color(survivorColor.r * (1f - 1f / 9f * (float)i), survivorColor.g * (1f - 1f / 9f * (float)i), survivorColor.b * (1f - 1f / 9f * (float)i), 1f);
				RectTransform segmentRect = ((Component)segment).GetComponent<RectTransform>();
				((Transform)segmentRect).localScale = new Vector3(1f, 1.1f, 1f);
			}
			Color segment2 = new Color(survivorColor.r, survivorColor.g, survivorColor.b, 1f);
			Color segment3 = new Color(survivorColor.r * (8f / 9f), survivorColor.g * (8f / 9f), survivorColor.b * (8f / 9f), 1f);
			Color segment4 = new Color(survivorColor.r * (7f / 9f), survivorColor.g * (7f / 9f), survivorColor.b * (7f / 9f), 1f);
			Color segment5 = new Color(survivorColor.r * (2f / 3f), survivorColor.g * (2f / 3f), survivorColor.b * (2f / 3f), 1f);
			Color segment6 = new Color(survivorColor.r * (5f / 9f), survivorColor.g * (5f / 9f), survivorColor.b * (5f / 9f), 1f);
			Color segment7 = new Color(survivorColor.r * (4f / 9f), survivorColor.g * (4f / 9f), survivorColor.b * (4f / 9f), 1f);
			Color segment8 = new Color(survivorColor.r * (1f / 3f), survivorColor.g * (1f / 3f), survivorColor.b * (1f / 3f), 1f);
			Color segment9 = new Color(survivorColor.r * (2f / 9f), survivorColor.g * (2f / 9f), survivorColor.b * (2f / 9f), 1f);
			Color segment10 = new Color(survivorColor.r * (1f / 9f), survivorColor.g * (1f / 9f), survivorColor.b * (1f / 9f), 1f);
			DifficultyBarController difficultyBarController = ((Component)difficultyBar).GetComponent<DifficultyBarController>();
			difficultyBarController.segmentDefs[0] = new SegmentDef
			{
				color = segment2,
				debugString = "Easy",
				token = "DIFFICULTY_BAR_1"
			};
			difficultyBarController.segmentDefs[1] = new SegmentDef
			{
				color = segment3,
				debugString = "Medium",
				token = "DIFFICULTY_BAR_2"
			};
			difficultyBarController.segmentDefs[2] = new SegmentDef
			{
				color = segment4,
				debugString = "Hard",
				token = "DIFFICULTY_BAR_3"
			};
			difficultyBarController.segmentDefs[3] = new SegmentDef
			{
				color = segment5,
				debugString = "Very Hard",
				token = "DIFFICULTY_BAR_4"
			};
			difficultyBarController.segmentDefs[4] = new SegmentDef
			{
				color = segment6,
				debugString = "Insane",
				token = "DIFFICULTY_BAR_5"
			};
			difficultyBarController.segmentDefs[5] = new SegmentDef
			{
				color = segment7,
				debugString = "Impossible",
				token = "DIFFICULTY_BAR_6"
			};
			difficultyBarController.segmentDefs[6] = new SegmentDef
			{
				color = segment8,
				debugString = "I SEE YOU",
				token = "DIFFICULTY_BAR_7"
			};
			difficultyBarController.segmentDefs[7] = new SegmentDef
			{
				color = segment9,
				debugString = "I'M COMING FOR YOU",
				token = "DIFFICULTY_BAR_8"
			};
			difficultyBarController.segmentDefs[8] = new SegmentDef
			{
				color = segment10,
				debugString = "HAHAHAHA",
				token = "DIFFICULTY_BAR_9"
			};
			Image image1 = difficultyBarController.images[0];
			KillYor image1Kys = ((Component)image1).gameObject.AddComponent<KillYor>();
			image1Kys.idealColor = segment2;
			Image image2 = difficultyBarController.images[1];
			KillYor image2Kys = ((Component)image2).gameObject.AddComponent<KillYor>();
			image2Kys.idealColor = segment3;
			Image image3 = difficultyBarController.images[2];
			KillYor image3Kys = ((Component)image3).gameObject.AddComponent<KillYor>();
			image3Kys.idealColor = segment4;
			Image image4 = difficultyBarController.images[3];
			KillYor image4Kys = ((Component)image4).gameObject.AddComponent<KillYor>();
			image4Kys.idealColor = segment5;
			Image image5 = difficultyBarController.images[4];
			KillYor image5Kys = ((Component)image5).gameObject.AddComponent<KillYor>();
			image5Kys.idealColor = segment6;
			Image image6 = difficultyBarController.images[5];
			KillYor image6Kys = ((Component)image6).gameObject.AddComponent<KillYor>();
			image6Kys.idealColor = segment7;
			Image image7 = difficultyBarController.images[6];
			KillYor image7Kys = ((Component)image7).gameObject.AddComponent<KillYor>();
			image7Kys.idealColor = segment8;
			Image image8 = difficultyBarController.images[7];
			KillYor image8Kys = ((Component)image8).gameObject.AddComponent<KillYor>();
			image8Kys.idealColor = segment9;
			Image image9 = difficultyBarController.images[8];
			KillYor image9Kys = ((Component)image9).gameObject.AddComponent<KillYor>();
			image9Kys.idealColor = segment10;
			scrollView.Find("Backdrop");
			Transform markerBackdrop = difficultyBar.Find("Marker, Backdrop");
			Image markerBackdropImage = ((Component)markerBackdrop).GetComponent<Image>();
			((Behaviour)markerBackdropImage).enabled = false;
			GameObject outline = ((Component)runInfoHudPanel.Find("OutlineImage")).gameObject;
			outline.SetActive(false);
			Transform rightInfoBar = runInfoHudPanel.Find("RightInfoBar");
			Transform objectivePanel = rightInfoBar.Find("ObjectivePanel");
			Image objectivePanelImage = ((Component)objectivePanel).GetComponent<Image>();
			((Behaviour)objectivePanelImage).enabled = false;
			GameObject objectiveLabel2 = ((Component)objectivePanel.Find("Label")).gameObject;
			objectiveLabel2.SetActive(false);
			Transform springCanvas = mainUIArea.Find("SpringCanvas");
			Transform bottomLeftCluster = springCanvas.Find("BottomLeftCluster");
			Transform bottomCenterCluster = springCanvas.Find("BottomCenterCluster");
			Transform barRoots = bottomLeftCluster.Find("BarRoots");
			barRoots.parent = bottomCenterCluster;
			Object.Destroy((Object)(object)((Component)barRoots).GetComponent<VerticalLayoutGroup>());
			RectTransform barRootsRect = ((Component)barRoots).GetComponent<RectTransform>();
			((Transform)barRootsRect).rotation = Quaternion.identity;
			barRootsRect.pivot = new Vector2(0.5f, 0.25f);
			barRootsRect.anchoredPosition = Vector2.zero;
			barRootsRect.sizeDelta = new Vector2(-400f, 100f);
			Transform levelDisplayCluster = barRoots.Find("LevelDisplayCluster");
			RectTransform levelDisplayClusterRect = ((Component)levelDisplayCluster).GetComponent<RectTransform>();
			((Transform)levelDisplayClusterRect).localPosition = new Vector3(-300f, 45f, 0f);
			Transform buffDisplayRoot = levelDisplayCluster.Find("BuffDisplayRoot");
			Object.Destroy((Object)(object)((Component)buffDisplayRoot).GetComponent<HorizontalLayoutGroup>());
			buffDisplayRoot.parent = barRoots;
			Transform levelDisplayRoot = levelDisplayCluster.Find("LevelDisplayRoot");
			RectTransform levelDisplayRootRect = ((Component)levelDisplayRoot).GetComponent<RectTransform>();
			UIKillYourself kys6 = ((Component)levelDisplayRoot).gameObject.AddComponent<UIKillYourself>();
			kys6.idealPosition = new Vector3(308f, -27f, 0f);
			levelDisplayRootRect.pivot = new Vector2(0.5f, 0.5f);
			Transform expBarRoot = levelDisplayCluster.Find("ExpBarRoot");
			Image expBarRootImage = ((Component)expBarRoot).GetComponent<Image>();
			expBarRootImage.sprite = white;
			((Behaviour)expBarRootImage).enabled = false;
			RectTransform expBarRootRect = ((Component)expBarRoot).GetComponent<RectTransform>();
			((Transform)expBarRootRect).localPosition = new Vector3(510.3f, -12.6f, 0f);
			expBarRoot.localScale = new Vector3(1.244f, 0.8f, 1f);
			try
			{
				Transform healthbarRoot = barRoots.Find("HealthbarRoot");
				RectTransform healthbarRootRect = ((Component)healthbarRoot).GetComponent<RectTransform>();
				((Transform)healthbarRootRect).localPosition = new Vector3(-210f, 45f, 0f);
				Image healthbarRootImage = ((Component)healthbarRoot).GetComponent<Image>();
				healthbarRootImage.sprite = white;
				Transform shrunkenRoot = healthbarRoot.Find("ShrunkenRoot");
				Transform child1 = shrunkenRoot.GetChild(0);
				((Component)child1).gameObject.SetActive(false);
				Transform child2 = shrunkenRoot.GetChild(1);
				((Component)child2).gameObject.SetActive(false);
				Transform shrunkenExpBarRoot = expBarRoot.Find("ShrunkenRoot");
				RectTransform shrunkenExpBarRootRect = ((Component)shrunkenExpBarRoot).GetComponent<RectTransform>();
				((Transform)shrunkenExpBarRootRect).localScale = new Vector3(1f, 1.6666666f, 1f);
				((Transform)shrunkenExpBarRootRect).localPosition = new Vector3(-338.6f, 15.25f);
				Transform fillPanel = shrunkenExpBarRoot.Find("FillPanel");
				Image fillPanelImage = ((Component)fillPanel).GetComponent<Image>();
				((Graphic)fillPanelImage).color = new Color(survivorColor.r, survivorColor.g, survivorColor.b, 0.72156864f);
			}
			catch
			{
			}
			Transform bottomRightCluster = springCanvas.Find("BottomRightCluster");
			GraphicRaycaster bottomRightGraphicRaycaster = ((Component)bottomRightCluster).GetComponent<GraphicRaycaster>();
			Transform spectatorLabel = bottomCenterCluster.Find("SpectatorLabel");
			RectTransform spectatorLabelRect = ((Component)spectatorLabel).GetComponent<RectTransform>();
			spectatorLabelRect.anchoredPosition = new Vector2(0f, 150f);
			GraphicRaycaster bottomCenterGraphicRaycaster = ((Component)bottomCenterCluster).gameObject.AddComponent<GraphicRaycaster>();
			bottomCenterGraphicRaycaster.blockingObjects = bottomRightGraphicRaycaster.blockingObjects;
			bottomCenterGraphicRaycaster.ignoreReversedGraphics = bottomRightGraphicRaycaster.ignoreReversedGraphics;
			((MonoBehaviour)bottomCenterGraphicRaycaster).useGUILayout = ((MonoBehaviour)bottomRightGraphicRaycaster).useGUILayout;
			Color transparentColor = new Color(0f, 0f, 0f, 0f);
			SkillIcon skillIcon1 = self.skillIcons[0];
			skillIcon1.cooldownRemapPanel = null;
			Image skillIcon1Image = ((Component)skillIcon1).GetComponent<Image>();
			((Graphic)skillIcon1Image).color = transparentColor;
			GameObject cooldownPanel1 = ((Component)((Component)skillIcon1).transform.Find("CooldownPanel")).gameObject;
			cooldownPanel1.SetActive(false);
			Transform cooldownText1 = ((Component)skillIcon1).transform.Find("CooldownText");
			RectTransform cooldownTextRect1 = ((Component)cooldownText1).GetComponent<RectTransform>();
			((Transform)cooldownTextRect1).localPosition = new Vector3(-18f, 19.5f, 0f);
			HGTextMeshProUGUI cooldownTextMesh1 = ((Component)cooldownText1).GetComponent<HGTextMeshProUGUI>();
			((Graphic)cooldownTextMesh1).color = Color.white;
			GameObject isReadyPanel1 = skillIcon1.isReadyPanelObject;
			Image isReadyPanelImage1 = isReadyPanel1.GetComponent<Image>();
			((Graphic)isReadyPanelImage1).color = survivorColor;
			Image iconPanel1 = skillIcon1.iconImage;
			RectTransform iconPanelRect1 = ((Component)iconPanel1).GetComponent<RectTransform>();
			((Transform)iconPanelRect1).localScale = Vector3.one * 1.1f;
			GameObject skillBackgroundPanel1 = ((Component)((Component)skillIcon1).transform.Find("SkillBackgroundPanel")).gameObject;
			skillBackgroundPanel1.SetActive(false);
			Transform skillStockRoot1 = ((Component)skillIcon1).transform.GetChild(4);
			Transform skillStockRootText1 = skillStockRoot1.Find("StockText");
			HGTextMeshProUGUI skillStockRootTextMesh1 = ((Component)skillStockRootText1).GetComponent<HGTextMeshProUGUI>();
			((Graphic)skillStockRootTextMesh1).color = Color.white;
			SkillIcon skillIcon2 = self.skillIcons[1];
			skillIcon2.cooldownRemapPanel = null;
			Image skillIcon2Image = ((Component)skillIcon2).GetComponent<Image>();
			GameObject cooldownPanel2 = ((Component)((Component)skillIcon2).transform.Find("CooldownPanel")).gameObject;
			cooldownPanel2.SetActive(false);
			Transform cooldownText2 = ((Component)skillIcon2).transform.Find("CooldownText");
			RectTransform cooldownTextRect2 = ((Component)cooldownText2).GetComponent<RectTransform>();
			((Transform)cooldownTextRect2).localPosition = new Vector3(-18f, 19.5f, 0f);
			HGTextMeshProUGUI cooldownTextMesh2 = ((Component)cooldownText2).GetComponent<HGTextMeshProUGUI>();
			((Graphic)cooldownTextMesh2).color = Color.white;
			((Graphic)skillIcon2Image).color = transparentColor;
			GameObject isReadyPanel2 = skillIcon2.isReadyPanelObject;
			Image isReadyPanelImage2 = isReadyPanel2.GetComponent<Image>();
			((Graphic)isReadyPanelImage2).color = survivorColor;
			Image iconPanel2 = skillIcon2.iconImage;
			RectTransform iconPanelRect2 = ((Component)iconPanel2).GetComponent<RectTransform>();
			((Transform)iconPanelRect2).localScale = Vector3.one * 1.1f;
			GameObject skillBackgroundPanel2 = ((Component)((Component)skillIcon2).transform.Find("SkillBackgroundPanel")).gameObject;
			skillBackgroundPanel2.SetActive(false);
			Transform skillStockRoot2 = ((Component)skillIcon2).transform.GetChild(4);
			Transform skillStockRootText2 = skillStockRoot2.Find("StockText");
			HGTextMeshProUGUI skillStockRootTextMesh2 = ((Component)skillStockRootText2).GetComponent<HGTextMeshProUGUI>();
			((Graphic)skillStockRootTextMesh2).color = Color.white;
			SkillIcon skillIcon3 = self.skillIcons[2];
			skillIcon3.cooldownRemapPanel = null;
			Image skillIcon3Image = ((Component)skillIcon3).GetComponent<Image>();
			((Graphic)skillIcon3Image).color = transparentColor;
			GameObject cooldownPanel3 = ((Component)((Component)skillIcon3).transform.Find("CooldownPanel")).gameObject;
			cooldownPanel3.SetActive(false);
			Transform cooldownText3 = ((Component)skillIcon3).transform.Find("CooldownText");
			RectTransform cooldownTextRect3 = ((Component)cooldownText3).GetComponent<RectTransform>();
			((Transform)cooldownTextRect3).localPosition = new Vector3(-18f, 19.5f, 0f);
			HGTextMeshProUGUI cooldownTextMesh3 = ((Component)cooldownText3).GetComponent<HGTextMeshProUGUI>();
			((Graphic)cooldownTextMesh3).color = Color.white;
			GameObject isReadyPanel3 = skillIcon3.isReadyPanelObject;
			Image isReadyPanelImage3 = isReadyPanel3.GetComponent<Image>();
			((Graphic)isReadyPanelImage3).color = survivorColor;
			Image iconPanel3 = skillIcon3.iconImage;
			RectTransform iconPanelRect3 = ((Component)iconPanel3).GetComponent<RectTransform>();
			((Transform)iconPanelRect3).localScale = Vector3.one * 1.1f;
			GameObject skillBackgroundPanel3 = ((Component)((Component)skillIcon3).transform.Find("SkillBackgroundPanel")).gameObject;
			skillBackgroundPanel3.SetActive(false);
			Transform skillStockRoot3 = ((Component)skillIcon3).transform.GetChild(4);
			Transform skillStockRootText3 = skillStockRoot3.Find("StockText");
			HGTextMeshProUGUI skillStockRootTextMesh3 = ((Component)skillStockRootText3).GetComponent<HGTextMeshProUGUI>();
			((Graphic)skillStockRootTextMesh3).color = Color.white;
			SkillIcon skillIcon4 = self.skillIcons[3];
			skillIcon4.cooldownRemapPanel = null;
			Image skillIcon4Image = ((Component)skillIcon4).GetComponent<Image>();
			((Graphic)skillIcon4Image).color = transparentColor;
			GameObject cooldownPanel4 = ((Component)((Component)skillIcon4).transform.Find("CooldownPanel")).gameObject;
			cooldownPanel4.SetActive(false);
			Transform cooldownText4 = ((Component)skillIcon4).transform.Find("CooldownText");
			RectTransform cooldownTextRect4 = ((Component)cooldownText4).GetComponent<RectTransform>();
			((Transform)cooldownTextRect4).localPosition = new Vector3(-18f, 19.5f, 0f);
			HGTextMeshProUGUI cooldownTextMesh4 = ((Component)cooldownText4).GetComponent<HGTextMeshProUGUI>();
			((Graphic)cooldownTextMesh4).color = Color.white;
			GameObject isReadyPanel4 = skillIcon4.isReadyPanelObject;
			Image isReadyPanelImage4 = isReadyPanel4.GetComponent<Image>();
			((Graphic)isReadyPanelImage4).color = survivorColor;
			Image iconPanel4 = skillIcon4.iconImage;
			RectTransform iconPanelRect4 = ((Component)iconPanel4).GetComponent<RectTransform>();
			((Transform)iconPanelRect4).localScale = Vector4.op_Implicit(Vector4.one * 1.1f);
			GameObject skillBackgroundPanel4 = ((Component)((Component)skillIcon4).transform.Find("SkillBackgroundPanel")).gameObject;
			skillBackgroundPanel4.SetActive(false);
			Transform skillStockRoot4 = ((Component)skillIcon4).transform.GetChild(4);
			Transform skillStockRootText4 = skillStockRoot4.Find("StockText");
			HGTextMeshProUGUI skillStockRootTextMesh4 = ((Component)skillStockRootText4).GetComponent<HGTextMeshProUGUI>();
			((Graphic)skillStockRootTextMesh4).color = Color.white;
			Transform scaler = bottomRightCluster.Find("Scaler");
			scaler.parent = bottomCenterCluster;
			RectTransform scalerRect = ((Component)scaler).GetComponent<RectTransform>();
			((Transform)scalerRect).rotation = Quaternion.identity;
			scalerRect.pivot = new Vector2(0.5f, 0f);
			scalerRect.sizeDelta = new Vector2(-639f, -234f);
			scalerRect.anchoredPosition = new Vector2(62f, 98f);
			GameObject sprintCluster = ((Component)scaler.Find("SprintCluster")).gameObject;
			sprintCluster.SetActive(false);
			GameObject inventoryCluster = ((Component)scaler.Find("InventoryCluster")).gameObject;
			inventoryCluster.SetActive(false);
			Color survivorColorTopLeft = new Color(survivorColor.r, survivorColor.g, survivorColor.b, 0.15f);
			Transform moneyRoot = ((Component)self.moneyText).transform;
			Transform backgroundPanel = moneyRoot.Find("BackgroundPanel");
			RawImage backgroundPanelImage = ((Component)backgroundPanel).GetComponent<RawImage>();
			((Graphic)backgroundPanelImage).color = survivorColorTopLeft;
			Transform valueText = moneyRoot.Find("ValueText");
			HGTextMeshProUGUI valueTextMesh = ((Component)valueText).GetComponent<HGTextMeshProUGUI>();
			((Graphic)valueTextMesh).color = Color.white;
			Transform dollarSign = moneyRoot.Find("DollarSign");
			HGTextMeshProUGUI dollarSignMesh = ((Component)dollarSign).GetComponent<HGTextMeshProUGUI>();
			((Graphic)dollarSignMesh).color = Color.white;
			Transform upperLeftCluster = moneyRoot.parent;
			Image upperLeftClusterImage = ((Component)upperLeftCluster).GetComponent<Image>();
			((Behaviour)upperLeftClusterImage).enabled = false;
			VerticalLayoutGroup upperLeftClusterVerticalLayoutGroup = ((Component)upperLeftCluster).GetComponent<VerticalLayoutGroup>();
			((HorizontalOrVerticalLayoutGroup)upperLeftClusterVerticalLayoutGroup).spacing = 0f;
			Transform lunarCoinRoot = upperLeftCluster.Find("LunarCoinRoot");
			Transform lunarCoinBackgroundPanel = lunarCoinRoot.Find("BackgroundPanel");
			RawImage lunarCoinBackgroundPanelImage = ((Component)lunarCoinBackgroundPanel).GetComponent<RawImage>();
			((Graphic)lunarCoinBackgroundPanelImage).color = survivorColorTopLeft;
			Transform lunarCoinValueText = lunarCoinRoot.Find("ValueText");
			HGTextMeshProUGUI lunarCoinValueTextMesh = ((Component)lunarCoinValueText).GetComponent<HGTextMeshProUGUI>();
			((Graphic)lunarCoinValueTextMesh).color = Color.white;
			Transform lunarCoinSign = lunarCoinRoot.Find("LunarCoinSign");
			HGTextMeshProUGUI lunarCoinSignMesh = ((Component)lunarCoinSign).GetComponent<HGTextMeshProUGUI>();
			((Graphic)lunarCoinSignMesh).color = Color.white;
			ItemInventoryDisplay itemInventoryDisplay = self.itemInventoryDisplay;
			Transform itemInventoryDisplayRoot = ((Component)itemInventoryDisplay).transform.parent;
			RectTransform itemInventoryDisplayRootRect = ((Component)itemInventoryDisplayRoot).GetComponent<RectTransform>();
			((Transform)itemInventoryDisplayRootRect).localPosition = new Vector3(-26f, -90f, 0f);
			itemInventoryDisplayRootRect.anchoredPosition = new Vector2(550f, -90f);
			itemInventoryDisplayRootRect.pivot = new Vector2(0.5f, 0.5f);
			itemInventoryDisplayRootRect.sizeDelta = new Vector2(1000f, 140f);
			Image itemInventoryDisplayImage = ((Component)itemInventoryDisplay).GetComponent<Image>();
			((Behaviour)itemInventoryDisplayImage).enabled = false;
			Transform topCenterCluster = springCanvas.Find("TopCenterCluster");
			Object.Destroy((Object)(object)((Component)topCenterCluster).GetComponent<VerticalLayoutGroup>());
			Transform bossHealthBarRoot = topCenterCluster.Find("BossHealthBarRoot");
			RectTransform bossHealthBarRootRect = ((Component)bossHealthBarRoot).GetComponent<RectTransform>();
			((Transform)bossHealthBarRootRect).localPosition = new Vector3(0f, -160f, -3.814697f);
			Object.Destroy((Object)(object)((Component)bossHealthBarRoot).GetComponent<VerticalLayoutGroup>());
			Transform bossContainer = bossHealthBarRoot.Find("Container");
			Object.Destroy((Object)(object)((Component)bossContainer).GetComponent<VerticalLayoutGroup>());
			Transform bossHealthBarContainer = bossContainer.Find("BossHealthBarContainer");
			Image bossHealthBarContainerImage = ((Component)bossHealthBarContainer).GetComponent<Image>();
			((Behaviour)bossHealthBarContainerImage).enabled = false;
			Transform bossNameLabel = bossContainer.Find("BossNameLabel");
			RectTransform bossNameLabelRect = ((Component)bossNameLabel).GetComponent<RectTransform>();
			((Transform)bossNameLabelRect).localPosition = new Vector3(0f, 32.5f, 0f);
			Transform bossSubtitleLabel = bossContainer.Find("BossSubtitleLabel");
			((Component)bossSubtitleLabel).GetComponent<RectTransform>();
			UIKillYourself kys5 = ((Component)bossSubtitleLabel).gameObject.AddComponent<UIKillYourself>();
			kys5.idealPosition = new Vector3(0f, -40f, 0f);
			HGTextMeshProUGUI bossSubtitleLabelMesh = ((Component)bossSubtitleLabel).GetComponent<HGTextMeshProUGUI>();
			((Graphic)bossSubtitleLabelMesh).color = Color.white;
			Transform bossBackgroundPanel = bossHealthBarContainer.Find("BackgroundPanel");
			RectTransform bossBackgroundPanelRect = ((Component)bossBackgroundPanel).GetComponent<RectTransform>();
			((Transform)bossBackgroundPanelRect).localPosition = new Vector3(0f, -42.5f, 0f);
			((Transform)bossBackgroundPanelRect).localScale = new Vector3(1f, 1.5f, 1f);
			Image bossBackgroundPanelImage = ((Component)bossBackgroundPanel).GetComponent<Image>();
			((Behaviour)bossBackgroundPanelImage).enabled = true;
			Transform delayFillPanel = bossBackgroundPanel.Find("DelayFillPanel");
			Image delayFillPanelImage = ((Component)delayFillPanel).GetComponent<Image>();
			((Graphic)delayFillPanelImage).color = Color32.op_Implicit(new Color32((byte)138, (byte)0, (byte)0, byte.MaxValue));
			Transform shieldPanel = bossBackgroundPanel.Find("ShieldPanel");
			Transform healthText = bossBackgroundPanel.Find("HealthText");
			RectTransform healthTextRect = ((Component)healthText).GetComponent<RectTransform>();
			((Transform)healthTextRect).localPosition = new Vector3(0f, 11.5f, -5.8584023f);
			((Transform)healthTextRect).localEulerAngles = Vector3.zero;
			((Transform)healthTextRect).localScale = new Vector3(1.25f, 0.8325f, 1.25f);
			int shieldPanelSiblingIndex = shieldPanel.GetSiblingIndex();
			int healthTextSiblingIndex = healthText.GetSiblingIndex();
			healthText.SetSiblingIndex(shieldPanelSiblingIndex);
			shieldPanel.SetSiblingIndex(healthTextSiblingIndex);
			Transform rightCluster = springCanvas.Find("RightCluster");
			Transform contextNotification = rightCluster.Find("ContextNotification");
			Transform contextDisplay = contextNotification.Find("ContextDisplay");
			RawImage contextDisplayImage = ((Component)contextDisplay).GetComponent<RawImage>();
			((Behaviour)contextDisplayImage).enabled = false;
			Transform mainContainer = self.mainContainer.transform;
			Transform mapNameCluster = mainContainer.Find("MapNameCluster");
			Transform subtext = mapNameCluster.Find("Subtext");
			HGTextMeshProUGUI subtextMesh = ((Component)subtext).GetComponent<HGTextMeshProUGUI>();
			((Graphic)subtextMesh).color = Color.white;
			Transform notificationArea = mainContainer.Find("NotificationArea");
			RectTransform notificationAreaRect = ((Component)notificationArea).GetComponent<RectTransform>();
			((Transform)notificationAreaRect).localEulerAngles = new Vector3(0f, 6f, 0f);
			KillYo kys4 = ((Component)notificationArea).gameObject.AddComponent<KillYo>();
			kys4.notification = notificationAreaRect;
			Transform scoreboardPanel = springCanvas.Find("ScoreboardPanel");
			Transform container = scoreboardPanel.Find("Container");
			Transform stripContainer = container.Find("StripContainer");
			((Component)stripContainer).gameObject.AddComponent<FuckingKillYourself>();
			Image stripContainerImage = ((Component)stripContainer).GetComponent<Image>();
			((Behaviour)stripContainerImage).enabled = false;
			RectTransform stripContainerRect = ((Component)stripContainer).GetComponent<RectTransform>();
			stripContainerRect.sizeDelta = new Vector2(0f, 80f);
			VerticalLayoutGroup verticalLayoutGroup = ((Component)stripContainer).GetComponent<VerticalLayoutGroup>();
			((HorizontalOrVerticalLayoutGroup)verticalLayoutGroup).childForceExpandHeight = true;
			((HorizontalOrVerticalLayoutGroup)verticalLayoutGroup).childForceExpandWidth = true;
			((HorizontalOrVerticalLayoutGroup)verticalLayoutGroup).childControlHeight = true;
			((HorizontalOrVerticalLayoutGroup)verticalLayoutGroup).childControlWidth = true;
			((HorizontalOrVerticalLayoutGroup)verticalLayoutGroup).childScaleHeight = true;
			((HorizontalOrVerticalLayoutGroup)verticalLayoutGroup).childScaleWidth = true;
			RectTransform buffDisplayRootRect = ((Component)buffDisplayRoot).GetComponent<RectTransform>();
			((Transform)buffDisplayRootRect).localPosition = new Vector3(-25f, -45f, 0f);
			EquipmentIcon equipment1 = self.equipmentIcons[0];
			RectTransform equipment1Rect = ((Component)equipment1).GetComponent<RectTransform>();
			KillY kys2 = ((Component)equipment1).gameObject.AddComponent<KillY>();
			kys2.equipment = equipment1Rect;
			Transform equipment1DisplayRoot = equipment1.displayRoot.transform;
			RectTransform equipment1DisplayRootRect = ((Component)equipment1DisplayRoot).GetComponent<RectTransform>();
			((Transform)equipment1DisplayRootRect).localPosition = new Vector3(-18f, 17.7f, 0f);
			((Transform)equipment1DisplayRootRect).localScale = new Vector3(1f, 1.01f, 1f);
			Transform equipment1BGPanel = equipment1DisplayRoot.Find("BGPanel");
			RectTransform equipment1BGPanelRect = ((Component)equipment1BGPanel).GetComponent<RectTransform>();
			((Transform)equipment1BGPanelRect).localScale = Vector3.one * 1.1f;
			Transform equipment1IconPanel = equipment1DisplayRoot.Find("IconPanel");
			RectTransform equipment1IconPanelRect = ((Component)equipment1IconPanel).GetComponent<RectTransform>();
			((Transform)equipment1IconPanelRect).localScale = Vector3.one * 1.1f;
			Image equipment1BGPanelImage = ((Component)equipment1BGPanel).GetComponent<Image>();
			Transform equipmentIsReadyPanel1 = equipment1DisplayRoot.Find("IsReadyPanel");
			Image equipmentIsReadyPanel1Image = ((Component)equipmentIsReadyPanel1).GetComponent<Image>();
			((Graphic)equipmentIsReadyPanel1Image).color = survivorColor;
			((Graphic)equipment1BGPanelImage).color = survivorColor * 0.643f;
			GameObject equipment1TextBackgroundPanel = ((Component)equipment1DisplayRoot.Find("EquipmentTextBackgroundPanel")).gameObject;
			equipment1TextBackgroundPanel.SetActive(false);
			Transform equipment1CooldownText = equipment1DisplayRoot.Find("CooldownText");
			RectTransform equipment1CooldownTextRect = ((Component)equipment1CooldownText).GetComponent<RectTransform>();
			((Transform)equipment1CooldownTextRect).localPosition = new Vector3(0f, 1f, 0f);
			EquipmentIcon equipment2 = self.equipmentIcons[0];
			RectTransform equipment2Rect = ((Component)equipment2).GetComponent<RectTransform>();
			KillY kys3 = ((Component)equipment2).gameObject.AddComponent<KillY>();
			kys3.equipment = equipment2Rect;
			Transform equipment2DisplayRoot = equipment2.displayRoot.transform;
			RectTransform equipment2DisplayRootRect = ((Component)equipment2DisplayRoot).GetComponent<RectTransform>();
			((Transform)equipment2DisplayRootRect).localPosition = new Vector3(-23f, 22.7f, 0f);
			((Transform)equipment2DisplayRootRect).localScale = new Vector3(1f, 1.01f, 1f);
			Transform equipment2BGPanel = equipment2DisplayRoot.Find("BGPanel");
			RectTransform equipment2BGPanelRect = ((Component)equipment2BGPanel).GetComponent<RectTransform>();
			((Transform)equipment2BGPanelRect).localScale = Vector3.one * 1.1f;
			Transform equipment2IconPanel = equipment2DisplayRoot.Find("IconPanel");
			RectTransform equipment2IconPanelRect = ((Component)equipment2IconPanel).GetComponent<RectTransform>();
			((Transform)equipment2IconPanelRect).localScale = Vector3.one * 1.1f;
			Image equipment2BGPanelImage = ((Component)equipment2BGPanel).GetComponent<Image>();
			Transform equipmentIsReadyPanel2 = equipment2DisplayRoot.Find("IsReadyPanel");
			Image equipmentIsReadyPanel2Image = ((Component)equipmentIsReadyPanel2).GetComponent<Image>();
			((Graphic)equipmentIsReadyPanel2Image).color = survivorColor;
			((Graphic)equipment2BGPanelImage).color = survivorColor * 0.643f;
			GameObject equipment2TextBackgroundPanel = ((Component)equipment2DisplayRoot.Find("EquipmentTextBackgroundPanel")).gameObject;
			equipment2TextBackgroundPanel.SetActive(false);
			Transform equipment2CooldownText = equipment2DisplayRoot.Find("CooldownText");
			RectTransform equipment2CooldownTextRect = ((Component)equipment2CooldownText).GetComponent<RectTransform>();
			((Transform)equipment2CooldownTextRect).localPosition = new Vector3(0f, 1f, 0f);
			Transform artifactPanel = rightInfoBar.Find("ArtifactPanel");
			if (Object.op_Implicit((Object)(object)artifactPanel))
			{
				Image artifactPanelImage = ((Component)artifactPanel).GetComponent<Image>();
				((Behaviour)artifactPanelImage).enabled = false;
			}
			for (float t = 0f; t <= 2f; t += Time.deltaTime)
			{
				float percentCompleted = t / 2f;
				canvasGroup.alpha = Mathf.Lerp(0f, 0.7f, percentCompleted);
			}
			canvasGroup.alpha = 0.7f;
		}

		public Color EqualColorIntensity(Color color, float targetSaturation, float targetBrightness)
		{
			//IL_0001: 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_0016: 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_0025: 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)
			float num = default(float);
			float num2 = default(float);
			float num3 = default(float);
			Color.RGBToHSV(color, ref num, ref num2, ref num3);
			Color result = Color.HSVToRGB(num, targetSaturation, targetBrightness);
			result.a = color.a;
			return result;
		}
	}
	public class KillY : MonoBehaviour
	{
		public RectTransform equipment;

		public Vector3 idealLocalPosition;

		public Vector3 idealLocalScale;

		public Vector3 idealSizeDelta;

		public void Start()
		{
			//IL_0011: 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_002b: 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_0040: Unknown result type (might be due to invalid IL or missing references)
			//IL_0045: Unknown result type (might be due to invalid IL or missing references)
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			idealLocalPosition = new Vector3(138.9208f, -17.1797f, 0f);
			idealLocalScale = new Vector3(2.231415f, 2.231415f, 2.231415f);
			idealSizeDelta = Vector2.op_Implicit(new Vector2(36f, 36f));
		}

		public void Update()
		{
			//IL_001d: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: 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_0046: Unknown result type (might be due to invalid IL or missing references)
			if (Object.op_Implicit((Object)(object)equipment))
			{
				((Transform)equipment).localPosition = idealLocalPosition;
				((Transform)equipment).localScale = idealLocalScale;
				equipment.sizeDelta = Vector2.op_Implicit(idealSizeDelta);
			}
		}
	}
	public class KillYo : MonoBehaviour
	{
		public RectTransform notification;

		public Vector3 idealLocalPosition;

		public Vector3 idealAnchor;

		public void Start()
		{
			//IL_0011: 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_0026: 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_0030: Unknown result type (might be due to invalid IL or missing references)
			idealLocalPosition = new Vector3(550f, -280f, 0f);
			idealAnchor = Vector2.op_Implicit(new Vector2(0.8f, 0.05f));
		}

		public void Update()
		{
			//IL_001d: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: 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_0046: 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)
			if (Object.op_Implicit((Object)(object)notification))
			{
				((Transform)notification).localPosition = idealLocalPosition;
				notification.anchorMin = Vector2.op_Implicit(idealAnchor);
				notification.anchorMax = Vector2.op_Implicit(idealAnchor);
			}
		}
	}
	public class KillYor : MonoBehaviour
	{
		public Color idealColor;

		public Image segment;

		public void Start()
		{
			segment = ((Component)this).GetComponent<Image>();
		}

		public void Update()
		{
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			((Graphic)segment).color = idealColor;
		}
	}
	public class UIKillYourself : MonoBehaviour
	{
		public Vector3 idealPosition;

		public RectTransform rectTrans;

		public void Start()
		{
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			rectTrans = ((Component)this).GetComponent<RectTransform>();
			((Transform)rectTrans).localPosition = idealPosition;
		}
	}
	public class FillBarKillYourself : MonoBehaviour
	{
		public Vector3 idealPosition;

		public RectTransform rectTrans;

		public void Start()
		{
			rectTrans = ((Component)this).GetComponent<RectTransform>();
		}

		public void Update()
		{
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			((Transform)rectTrans).localPosition = idealPosition;
		}
	}
	public class FillBarKillYourselfColor : MonoBehaviour
	{
		public Image fillBar;

		public Color fillBarColor;

		public void Start()
		{
			//IL_0031: Unknown result type (might be due to invalid IL or missing references)
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			fillBar = ((Component)this).GetComponent<Image>();
			fillBarColor = new Color(Main.survivorColor.r, Main.survivorColor.g, Main.survivorColor.b, 0.07f);
		}

		public void Update()
		{
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			((Graphic)fillBar).color = fillBarColor;
		}
	}
	public class FuckingKillYourself : MonoBehaviour
	{
		public VerticalLayoutGroup verticalLayoutGroup;

		public Transform scoreboardStrip;

		public Transform longBackground;

		public RectTransform classBackground;

		public RectTransform nameLabel;

		public RectTransform moneyText;

		public RectTransform itemsBackground;

		public RectTransform equipmentBackground;

		public Vector2 idealClassBackgroundPivot;

		public Vector3 idealClassBackgroundPosition;

		public Vector3 idealClassBackgroundScale;

		public Vector2 idealNameLabelPivot;

		public Vector3 idealNameLabelPosition;

		public Vector2 idealMoneyTextPivot;

		public Vector3 idealMoneyTextPosition;

		public Vector2 idealItemsBackgroundPivot;

		public Vector3 idealItemsBackgroundPosition;

		public Vector2 idealEquipmentBackgroundPivot;

		public Vector3 idealEquipmentBackgroundPosition;

		public Vector3 idealEquipmentBackgroundScale;

		public void Start()
		{
			//IL_0018: 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_0032: 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_003d: 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_005c: 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_0076: 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_008b: 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_00a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00aa: 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_00bf: 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_00d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e9: 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_0103: Unknown result type (might be due to invalid IL or missing references)
			//IL_0108: Unknown result type (might be due to invalid IL or missing references)
			//IL_010e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0118: Unknown result type (might be due to invalid IL or missing references)
			//IL_011d: Unknown result type (might be due to invalid IL or missing references)
			verticalLayoutGroup = ((Component)this).GetComponent<VerticalLayoutGroup>();
			idealClassBackgroundPivot = new Vector2(0.5f, 0.5f);
			idealClassBackgroundPosition = new Vector3(-476f, -0.2f, 0f);
			idealClassBackgroundScale = Vector3.one * 1.13f;
			idealNameLabelPivot = new Vector2(0.5f, 0.5f);
			idealNameLabelPosition = new Vector3(-320f, 0f, 0f);
			idealMoneyTextPivot = new Vector2(0.5f, 0.5f);
			idealMoneyTextPosition = new Vector3(-280f, 0f, 0f);
			idealItemsBackgroundPivot = new Vector2(0.5f, 0.5f);
			idealItemsBackgroundPosition = new Vector3(100f, 7f, 0f);
			idealEquipmentBackgroundPivot = new Vector2(0.5f, 0.5f);
			idealEquipmentBackgroundPosition = new Vector3(475f, 1f, 0f);
			idealEquipmentBackgroundScale = Vector3.one * 1.1f;
		}

		public void Update()
		{
			//IL_00c4: 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_00e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00fa: 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_011e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0130: Unknown result type (might be due to invalid IL or missing references)
			//IL_0142: Unknown result type (might be due to invalid IL or missing references)
			//IL_0154: Unknown result type (might be due to invalid IL or missing references)
			//IL_0166: 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_018a: Unknown result type (might be due to invalid IL or missing references)
			((Behaviour)verticalLayoutGroup).enabled = false;
			scoreboardStrip = ((Component)this).transform.GetChild(0);
			longBackground = scoreboardStrip.Find("LongBackground");
			classBackground = ((Component)longBackground.Find("ClassBackground")).GetComponent<RectTransform>();
			nameLabel = ((Component)longBackground.Find("NameLabel")).GetComponent<RectTransform>();
			moneyText = ((Component)longBackground.Find("MoneyText")).GetComponent<RectTransform>();
			itemsBackground = ((Component)longBackground.Find("ItemsBackground")).GetComponent<RectTransform>();
			equipmentBackground = ((Component)longBackground.Find("EquipmentBackground")).GetComponent<RectTransform>();
			classBackground.pivot = idealClassBackgroundPivot;
			((Transform)classBackground).localPosition = idealClassBackgroundPosition;
			((Transform)classBackground).localScale = idealClassBackgroundScale;
			nameLabel.pivot = idealNameLabelPivot;
			((Transform)nameLabel).localPosition = idealNameLabelPosition;
			moneyText.pivot = idealMoneyTextPivot;
			((Transform)moneyText).localPosition = idealMoneyTextPosition;
			itemsBackground.pivot = idealItemsBackgroundPivot;
			((Transform)itemsBackground).localPosition = idealItemsBackgroundPosition;
			equipmentBackground.pivot = idealEquipmentBackgroundPivot;
			((Transform)equipmentBackground).localPosition = idealEquipmentBackgroundPosition;
			((Transform)equipmentBackground).localScale = idealEquipmentBackgroundScale;
			((Behaviour)verticalLayoutGroup).enabled = true;
		}
	}
}