using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Text.RegularExpressions; using BepInEx; using BepInEx.Bootstrap; using BepInEx.Configuration; using BepInEx.Unity.IL2CPP; using CellMenu; using Enemies; using GTFO.API.Utilities; using Gear; using HarmonyLib; using Il2CppInterop.Runtime.InteropTypes; using Il2CppInterop.Runtime.InteropTypes.Arrays; using Il2CppSystem; using Il2CppSystem.Collections.Generic; using Il2CppSystem.IO; using Localization; using Microsoft.CodeAnalysis; using Player; using SNetwork; using TMPro; 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: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("CustomHud")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("CustomHud")] [assembly: AssemblyTitle("CustomHud")] [assembly: AssemblyVersion("1.0.0.0")] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace JadiePop.CustomHud { [BepInPlugin("JadiePop.CustomHud", "CustomHud", "1.0.1")] public class Plugin : BasePlugin { public override void Load() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) ((BasePlugin)this).Log.LogInfo((object)"CustomHud is up and running :3"); new Harmony("JadiePop.CustomHud").PatchAll(); } } [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [HarmonyPatch] internal static class Patch { internal static float minimal_ui_current_alpha = 1f; private static bool better_text_chat = ((BaseChainloader)(object)IL2CPPChainloader.Instance).Plugins.ContainsKey("Andocas.BetterTextChat"); public static bool archive_loaded = ((BaseChainloader)(object)IL2CPPChainloader.Instance).Plugins.ContainsKey("dev.AuriRex.gtfo.TheArchive"); public static bool accuracyshow_loaded = ((BaseChainloader)(object)IL2CPPChainloader.Instance).Plugins.ContainsKey("com.catrice.AccuracyShow"); public static bool damageindicator_loaded = ((BaseChainloader)(object)IL2CPPChainloader.Instance).Plugins.ContainsKey("com.catrice.DamageIndicator"); internal static int All; internal static int current_accuracy_index; internal static Vector3 default_separation = new Vector3(0f, 30f, 0f); internal static Vector3 default_position_aoiyuki = new Vector3(-70f, -52f, 0f); internal static Vector3 flashlight_pos_storage = Vector3.one; internal static int? combatindicator_hash; internal static bool AoiYukiSetup = false; internal static bool scream_cd_object_setup = false; internal static bool scream_cd_config_change = false; internal static GameObject? scream_cd = null; internal static TextMeshPro? scream_cd_text_component = null; public static void setup_aoiyuki_indexes() { All = 4; if (accuracyshow_loaded) { All++; } if (damageindicator_loaded) { All += 4; } if (Config.aoiyuki_inverse_order.Value) { current_accuracy_index = All - 1; } else { current_accuracy_index = 4; } } [HarmonyPatch(typeof(CellSettingsManager), "LoadFromDisk")] [HarmonyPostfix] public static void start_config() { _ = Config.lowammo_selected_selected_bg_full_arrow; } public static void lerp_fixes(PUI_LocalPlayerStatus __instance) { __instance.UpdateInfection(__instance.m_infectionValueRef, 0f); __instance.UpdateHealth(__instance.m_currentHealthRel, __instance.m_meleeBuffActive); } public static void recolor_selected_lowammo_method(PUI_InventoryItem __instance) { //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_0047: 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_0069: Unknown result type (might be due to invalid IL or missing references) //IL_007a: 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_00b2: Unknown result type (might be due to invalid IL or missing references) Transform child = __instance.m_selected_root.transform.GetChild(0); ((Component)child.GetChild(0)).GetComponent().color = Config.lowammo_selected_selected_bg_full_arrow_parse; ((Component)child.GetChild(1)).GetComponent().color = Config.lowammo_selected_selected_bg_full_bg_full_parse; ((Graphic)__instance.m_selected_archetypeName).color = Config.lowammo_selected_selected_info_content_archetypeName_parse; ((Graphic)__instance.m_selected_detailedName).color = Config.lowammo_selected_selected_info_content_detailedname_parse; ((Graphic)__instance.m_selected_ammoClip).color = Config.lowammo_selected_selected_info_content_ammoclip_parse; __instance.m_selected_icon.color = Config.lowammo_selected_selected_info_content_icon_parse; ((Component)__instance.m_selected_root.transform.GetChild(2).GetChild(0)).GetComponent().color = Config.lowammo_selected_selected_slim_bg_slim_parse; ((Graphic)__instance.m_selected_ammoTotal).color = Config.lowammo_selected_selected_slim_ammo_percent_parse; } public static void recolor_unselected_lowammo_method(PUI_InventoryItem __instance) { //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_0047: 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_0069: Unknown result type (might be due to invalid IL or missing references) //IL_007a: 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_00b2: Unknown result type (might be due to invalid IL or missing references) Transform child = __instance.m_selected_root.transform.GetChild(0); ((Component)child.GetChild(0)).GetComponent().color = Config.lowammo_unselected_selected_bg_full_arrow_parse; ((Component)child.GetChild(1)).GetComponent().color = Config.lowammo_unselected_selected_bg_full_bg_full_parse; ((Graphic)__instance.m_selected_archetypeName).color = Config.lowammo_unselected_selected_info_content_archetypeName_parse; ((Graphic)__instance.m_selected_detailedName).color = Config.lowammo_unselected_selected_info_content_detailedname_parse; ((Graphic)__instance.m_selected_ammoClip).color = Config.lowammo_unselected_selected_info_content_ammoclip_parse; __instance.m_selected_icon.color = Config.lowammo_unselected_selected_info_content_icon_parse; ((Component)__instance.m_selected_root.transform.GetChild(2).GetChild(0)).GetComponent().color = Config.lowammo_unselected_selected_slim_bg_slim_parse; ((Graphic)__instance.m_selected_ammoTotal).color = Config.lowammo_unselected_selected_slim_ammo_percent_parse; } public static void recolor_lowammo_slims_method(PUI_InventoryItem __instance) { //IL_001f: 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_0047: 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_006f: Unknown result type (might be due to invalid IL or missing references) Transform child = __instance.m_slim_root.transform.GetChild(0); ((Component)child.GetChild(2)).GetComponent().color = Config.lowammo_unselected_slim_bg_small_parse; ((Graphic)__instance.m_slim_ammoTotal).color = Config.lowammo_unselected_slim_ammo_percent_parse; ((Component)child.GetChild(0)).GetComponent().color = Config.lowammo_unselected_slim_arrow_parse; ((Graphic)__instance.m_slim_archetypeName).color = Config.lowammo_unselected_slim_archetypeName_parse; ((Component)child.GetChild(5)).GetComponent().color = Config.lowammo_unselected_slim_bg_big_parse; } public static void recolor_selected_highammo_method(PUI_InventoryItem __instance) { //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_0047: 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_0069: Unknown result type (might be due to invalid IL or missing references) //IL_007a: 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_00b7: 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) Transform child = __instance.m_selected_root.transform.GetChild(0); ((Component)child.GetChild(0)).GetComponent().color = Config.selected_selected_bg_full_arrow_parse; ((Component)child.GetChild(1)).GetComponent().color = Config.selected_selected_bg_full_bg_full_parse; ((Graphic)__instance.m_selected_archetypeName).color = Config.selected_selected_info_content_archetypeName_parse; ((Graphic)__instance.m_selected_detailedName).color = Config.selected_selected_info_content_detailedname_parse; ((Graphic)__instance.m_selected_ammoClip).color = Config.selected_selected_info_content_ammoclip_parse; __instance.m_selected_icon.color = Config.selected_selected_info_content_icon_parse; ((Graphic)__instance.m_selected_infiniteAmmo.GetComponent()).color = Config.selected_selected_slim_infinite_parse; ((Component)__instance.m_selected_root.transform.GetChild(2).GetChild(0)).GetComponent().color = Config.selected_selected_slim_bg_slim_parse; ((Graphic)__instance.m_selected_ammoTotal).color = Config.selected_selected_slim_ammo_percent_parse; } public static void recolor_unselected_highammo_method(PUI_InventoryItem __instance) { //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_007e: 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_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: 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) Transform child = __instance.m_selected_root.transform.GetChild(0); ((Component)child.GetChild(0)).GetComponent().color = Config.selected_bg_full_arrow_parse; ((Renderer)((Component)child.GetChild(0)).GetComponent()).sortingOrder = -1; ((Component)child.GetChild(1)).GetComponent().color = Config.selected_bg_full_bg_full_parse; ((Renderer)((Component)child.GetChild(1)).GetComponent()).sortingOrder = -1; ((Graphic)__instance.m_selected_archetypeName).color = Config.selected_info_content_archetypeName_parse; ((Graphic)__instance.m_selected_detailedName).color = Config.selected_info_content_detailedname_parse; ((Graphic)__instance.m_selected_ammoClip).color = Config.selected_info_content_ammoclip_parse; __instance.m_selected_icon.color = Config.selected_info_content_icon_parse; ((Graphic)__instance.m_selected_infiniteAmmo.GetComponent()).color = Config.selected_slim_infinite_parse; ((Component)__instance.m_selected_root.transform.GetChild(2).GetChild(0)).GetComponent().color = Config.selected_slim_bg_slim_parse; ((Graphic)__instance.m_selected_ammoTotal).color = Config.selected_slim_ammo_percent_parse; } public static void recolor_highammo_slims_method(PUI_InventoryItem __instance) { //IL_001f: 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_0046: 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_006b: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: 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_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Unknown result type (might be due to invalid IL or missing references) Transform child = __instance.m_slim_root.transform.GetChild(0); ((Component)child.GetChild(2)).GetComponent().color = Config.slim_bg_small_parse; ((Graphic)__instance.m_slim_ammoTotal).color = Config.slim_ammo_percent_parse; __instance.m_slim_ammoTotal.transform.localPosition = Config.slim_slim_ammo_pos_parse; __instance.m_slim_ammoTotal.transform.localScale = Vector3.one * Config.slim_slim_ammo_scale.Value; ((Component)child.GetChild(0)).GetComponent().color = Config.slim_arrow_parse; ((Graphic)__instance.m_slim_infiniteAmmo.GetComponent()).color = Config.slim_infinite_parse; __instance.m_slim_infiniteAmmo.transform.localPosition = Config.slim_slim_ammo_pos_parse + new Vector3(-27.53f, 0f, 0f); __instance.m_slim_infiniteAmmo.transform.localScale = Vector3.one * Config.slim_slim_infinite_scale.Value; ((Graphic)__instance.m_slim_archetypeName).color = Config.slim_archetypeName_parse; ((Component)child.GetChild(5)).GetComponent().color = Config.slim_bg_big_parse; } public static void initial_setup(PUI_InventoryItem __instance) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_0109: 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) //IL_0122: 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_0142: 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_0180: Unknown result type (might be due to invalid IL or missing references) //IL_0197: Unknown result type (might be due to invalid IL or missing references) //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_01b5: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Unknown result type (might be due to invalid IL or missing references) Transform transform = __instance.m_selected_root.transform; Transform transform2 = __instance.m_empty_root.transform; recolor_highammo_slims_method(__instance); ((Renderer)((Component)__instance.m_slim_root.transform.GetChild(0).GetChild(2)).GetComponent()).sortingOrder = -1; ((TMP_Text)__instance.m_slim_archetypeName).rectTransform.sizeDelta = Config.confine_archetypename_parse; ((Renderer)((Component)transform.GetChild(0).GetChild(1)).GetComponent()).sortingOrder = -1; ((TMP_Text)__instance.m_selected_archetypeName).rectTransform.sizeDelta = Config.confine_archetypename_parse; ((Renderer)((Component)transform.GetChild(0).GetChild(1)).GetComponent()).sortingOrder = -1; ((Renderer)((Component)transform.GetChild(2).GetChild(0)).GetComponent()).sortingOrder = -1; Transform transform3 = __instance.m_selected_ammoTotal.transform; ((Component)transform3).transform.localPosition = Config.slim_ammo_pos_parse; ((Component)transform3).transform.localScale = Vector3.one * Config.slim_ammo_scale.Value; TextMeshPro component = __instance.m_selected_infiniteAmmo.GetComponent(); component.transform.localPosition = Config.slim_ammo_pos_parse + new Vector3(-29.5f, 0f, 0f); component.transform.localScale = Vector3.one * Config.slim_infinite_scale.Value; float num = 1f; if (Config.inventory_remove_empty.Value) { num = 0f; } ((Component)transform2.GetChild(0)).GetComponent().color = Config.empty_arrow_parse * num; ((Component)transform2.GetChild(1)).GetComponent().color = Config.empty_slim_bg_parse * num; ((Component)transform2.GetChild(2)).GetComponent().color = Config.empty_long_bg_parse * num; } public static void minimal_ui_changes(PUI_GameObjectives __instance, bool invert) { //IL_0118: 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_012e: Unknown result type (might be due to invalid IL or missing references) //IL_0148: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01b3: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_032f: Unknown result type (might be due to invalid IL or missing references) //IL_033b: 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_0361: Unknown result type (might be due to invalid IL or missing references) //IL_0240: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Unknown result type (might be due to invalid IL or missing references) //IL_0258: Unknown result type (might be due to invalid IL or missing references) //IL_0272: Unknown result type (might be due to invalid IL or missing references) if (((Object)((Component)__instance).transform.parent).name != "MovementRoot") { return; } float num = ((!invert) ? (1f / Config.minimal_ui_speed.Value) : (1f / (0f - Config.minimal_ui_speed_disable.Value))); List progressionObjectives = __instance.m_progressionObjectives; float num2 = num * Time.deltaTime; minimal_ui_current_alpha = Mathf.Clamp(minimal_ui_current_alpha + num2, 0f, 1f); for (int i = 0; i < progressionObjectives.Count; i++) { ((TMP_Text)progressionObjectives[i].m_text).alpha = minimal_ui_current_alpha * Config.obj_progression_subtext_text_parse.a; ((TMP_Text)progressionObjectives[i].m_header).alpha = minimal_ui_current_alpha * Config.obj_progression_header_text_parse.a; } ((TMP_Text)__instance.m_header).alpha = minimal_ui_current_alpha * Config.obj_header_text_parse.a; SpriteRenderer component = ((Component)__instance.m_headerHolder.transform.GetChild(1)).GetComponent(); component.color = new Color(component.color.r, component.color.g, component.color.b, minimal_ui_current_alpha * Config.obj_header_bg_parse.a); ((TMP_Text)((Component)__instance.m_itemsHeader.transform.GetChild(0)).GetComponent()).alpha = minimal_ui_current_alpha * Config.obj_header_text_parse.a; SpriteRenderer component2 = ((Component)__instance.m_itemsHeader.transform.GetChild(1)).GetComponent(); component2.color = new Color(component2.color.r, component2.color.g, component2.color.b, minimal_ui_current_alpha * Config.obj_item_bg_parse.a); ((TMP_Text)__instance.m_items).alpha = minimal_ui_current_alpha; Transform child = ((Component)__instance).transform.parent.GetChild(6).GetChild(0); for (int j = 0; j < child.childCount - 1; j++) { Transform child2 = child.GetChild(j); if (((Object)child2).name == "PUI_Compass_Line(Clone)") { SpriteRenderer component3 = ((Component)child2).gameObject.GetComponent(); component3.color = new Color(component3.color.r, component3.color.g, component3.color.b, minimal_ui_current_alpha * Config.compass_line_color_parse.a); } else if (((Object)child2).name == "PUI_Compass_Letter(Clone)") { ((TMP_Text)((Component)child2).gameObject.GetComponent()).alpha = minimal_ui_current_alpha * Config.compass_letter_color_parse.a; } else { ((TMP_Text)((Component)child2).gameObject.GetComponent()).alpha = minimal_ui_current_alpha * Config.compass_number_color_parse.a; } } SpriteRenderer component4 = ((Component)((Component)((Component)__instance).transform.parent.GetChild(6)).transform.FindChild("PUI_Compass_Arrow(Clone)").GetChild(1)).GetComponent(); component4.color = new Color(component4.color.r, component4.color.g, component4.color.b, minimal_ui_current_alpha * Config.compass_arrow_color_parse.a); } public static void nuke_helper(PUI_GameEventLog __instance) { ((TMP_Text)__instance.m_txtHelp).text = ""; } [HarmonyPatch(typeof(PUI_InventoryItem), "Setup")] [HarmonyPostfix] public static void MyOtherPatch(PUI_InventoryItem __instance) { if (((Component)__instance).transform.IsChildOf(((GuiLayer)GuiManager.PlayerLayer).CanvasTrans)) { initial_setup(__instance); recolor_unselected_highammo_method(__instance); if (Config.LowAmmo_patch.Value || Config.inventory_permaselect.Value) { __instance.m_meleeStaminaHeight = 0f; } } } [HarmonyPatch(typeof(PUI_Inventory), "SetMeleeStamina")] [HarmonyPrefix] public static void nuke_stam_updt2(ref bool __runOriginal, PUI_Inventory __instance) { if (Config.recolor_melee_infinite.Value) { __runOriginal = false; } } [HarmonyPatch(typeof(PUI_Inventory), "Setup", new Type[] { typeof(GuiLayer) })] [HarmonyPostfix] [HarmonyPriority(int.MinValue)] public static void flashlight_icon(PUI_Inventory __instance) { //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_005a: 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) if (((Component)__instance).transform.IsChildOf(((GuiLayer)GuiManager.PlayerLayer).CanvasTrans)) { Transform child = ((Component)__instance.m_iconDisplay).transform.GetChild(0).GetChild(0); ((Component)child.GetChild(0)).GetComponent().color = Config.light_enabled_parse; ((Component)child.GetChild(1)).GetComponent().color = Config.light_disabled_parse; ((Component)child.GetChild(2)).GetComponent().color = Config.light_bg_parse; } } [HarmonyPatch(typeof(GuiManager), "Setup")] [HarmonyPostfix] public static void move_all(GuiManager __instance) { //IL_0011: Unknown result type (might be due to invalid IL or missing references) ((Component)__instance.m_playerLayer.Inventory).transform.localPosition = Config.inventory_pos_parse; } [HarmonyPatch(typeof(PUI_InventoryItem), "SetState")] [HarmonyPrefix] public static void perma_select(PUI_InventoryItem __instance, ref ePUI_InventortyItemState state) { if (Config.inventory_permaselect.Value) { PUI_Inventory component = ((Component)((Component)__instance).transform.parent).GetComponent(); if (component != null && ((Il2CppObjectBase)component.m_baseLayer).TryCast() != null && (int)state == 1) { state = (ePUI_InventortyItemState)2; } } } [HarmonyPatch(typeof(PUI_Inventory), "UpdateInfoForItem")] [HarmonyPostfix] public static void state_manager(PUI_Inventory __instance, BackpackItem bpItem, InventorySlot selectedSlot) { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Invalid comparison between Unknown and I4 //IL_00ff: Unknown result type (might be due to invalid IL or missing references) if ((!Config.recolor_selected.Value && !Config.LowAmmo_patch.Value) || !__instance.m_inventorySlots.ContainsKey(bpItem.Instance.ItemDataBlock.inventorySlot)) { return; } PUI_InventoryItem val = __instance.m_inventorySlots[bpItem.Instance.ItemDataBlock.inventorySlot]; if (selectedSlot == bpItem.Instance.ItemDataBlock.inventorySlot && Config.recolor_selected.Value) { if (val.m_offsetX == 3f) { return; } val.m_offsetX = 1f; } else { if (val.m_offsetX == 2f) { return; } val.m_offsetX = 0f; } if ((int)bpItem.Instance.ItemDataBlock.inventorySlot == 10) { __instance.m_inventorySlots[bpItem.Instance.ItemDataBlock.inventorySlot].OnAmmoUpdated(); } } [HarmonyPatch(typeof(PUI_Inventory), "UpdateSlotPositions")] [HarmonyPrefix] [HarmonyPriority(int.MinValue)] public static void inventory_order(ref bool __runOriginal, PUI_Inventory __instance) { //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: 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_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_025a: Unknown result type (might be due to invalid IL or missing references) //IL_025f: 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_0080: 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_02a4: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_03a7: Unknown result type (might be due to invalid IL or missing references) //IL_03ac: Unknown result type (might be due to invalid IL or missing references) //IL_0340: Unknown result type (might be due to invalid IL or missing references) //IL_0350: 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_0382: Unknown result type (might be due to invalid IL or missing references) //IL_0387: Unknown result type (might be due to invalid IL or missing references) //IL_038c: Unknown result type (might be due to invalid IL or missing references) //IL_0399: Unknown result type (might be due to invalid IL or missing references) //IL_039e: Unknown result type (might be due to invalid IL or missing references) //IL_01e7: Unknown result type (might be due to invalid IL or missing references) //IL_01f3: 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_0443: Unknown result type (might be due to invalid IL or missing references) //IL_04ac: Unknown result type (might be due to invalid IL or missing references) //IL_04ae: Unknown result type (might be due to invalid IL or missing references) //IL_04b0: Unknown result type (might be due to invalid IL or missing references) //IL_04b5: Unknown result type (might be due to invalid IL or missing references) //IL_049d: Unknown result type (might be due to invalid IL or missing references) //IL_049f: Unknown result type (might be due to invalid IL or missing references) //IL_04a1: Unknown result type (might be due to invalid IL or missing references) //IL_04a6: Unknown result type (might be due to invalid IL or missing references) //IL_046b: Unknown result type (might be due to invalid IL or missing references) //IL_046d: Unknown result type (might be due to invalid IL or missing references) //IL_046f: Unknown result type (might be due to invalid IL or missing references) //IL_0474: Unknown result type (might be due to invalid IL or missing references) //IL_045c: Unknown result type (might be due to invalid IL or missing references) //IL_045e: Unknown result type (might be due to invalid IL or missing references) //IL_0460: Unknown result type (might be due to invalid IL or missing references) //IL_0465: Unknown result type (might be due to invalid IL or missing references) if (((Il2CppObjectBase)__instance.m_baseLayer).TryCast() == null) { return; } __runOriginal = false; if (Config.move_each_inventory_slot.Value) { for (int i = 0; (float)i < Mathf.Min((float)((Il2CppArrayBase)(object)__instance.m_slotGUIOrder).Length, 6f); i++) { InventorySlot val = ((Il2CppArrayBase)(object)__instance.m_slotGUIOrder)[i]; if (__instance.m_inventorySlots.ContainsKey(val)) { PUI_InventoryItem val2 = __instance.m_inventorySlots[val]; if (((Component)val2).gameObject.activeSelf) { ((RectTransformComp)val2).SetPosition(Vector2.op_Implicit(Config.move_weapons_parse[i])); } } } } else if (!Config.inventory_horizontal.Value) { float num = __instance.m_invSlotStartPos.y; __instance.m_invSlotStartOffsetY = Config.inventory_vertical_offset.Value; for (int num2 = ((Il2CppArrayBase)(object)__instance.m_slotGUIOrder).Length - 1; num2 >= 0; num2--) { InventorySlot val3 = ((!(Config.inventory_invert.Value ^ Config.inventory_invert_anchor.Value)) ? ((Il2CppArrayBase)(object)__instance.m_slotGUIOrder)[((Il2CppArrayBase)(object)__instance.m_slotGUIOrder).Length - 1 - num2] : ((Il2CppArrayBase)(object)__instance.m_slotGUIOrder)[num2]); if (__instance.m_inventorySlots.ContainsKey(val3)) { PUI_InventoryItem val4 = __instance.m_inventorySlots[val3]; if (((Component)val4).gameObject.activeSelf) { float num3 = (((int)val4.CurrentState != 0 || !Config.inventory_remove_empty.Value) ? 1f : 0f); if (Config.inventory_invert_anchor.Value) { num += (__instance.m_invSlotStartOffsetY + val4.CurrentHeight) * num3; } ((RectTransformComp)val4).SetPosition(new Vector2(__instance.m_invSlotStartPos.x, num)); if (!Config.inventory_invert_anchor.Value) { num -= (__instance.m_invSlotStartOffsetY + val4.CurrentHeight) * num3; } } } } if (Config.move_flashlight.Value) { ((RectTransformComp)__instance.m_iconDisplay).SetPosition(Vector2.op_Implicit(Config.move_flashlight_pos_parse)); } else { if (Config.inventory_invert_anchor.Value) { num += __instance.m_invSlotStartOffsetY + __instance.m_iconDisplay.Height * 2f; } ((RectTransformComp)__instance.m_iconDisplay).SetPosition(new Vector2(__instance.m_invSlotStartPos.x, num)); } } else { alt_inventory_fix(__instance); } if ((!accuracyshow_loaded && !damageindicator_loaded) || (!Config.aoiyuki_pos_override.Value && !Config.reset_aoiyuki_pos)) { return; } Transform child = ((Component)GuiManager.PlayerLayer.Inventory.m_iconDisplay).transform.GetChild(0).GetChild(0); if (child.GetChild(4) == null) { return; } Vector3 val5; if (Config.aoiyuki_pos_override.Value) { if (flashlight_pos_storage == ((Component)__instance.m_iconDisplay).transform.localPosition && !Config.reset_aoiyuki_pos) { return; } val5 = Config.accuracyshow_damageindicator_pos_parse - ((Component)__instance.m_iconDisplay).transform.localPosition; flashlight_pos_storage = ((Component)__instance.m_iconDisplay).transform.localPosition; } else { val5 = default_position_aoiyuki; } Config.reset_aoiyuki_pos = false; float num4 = 0f; float num5 = 0f; if (Config.aoiyuki_horizontal_build.Value) { num4 = 215f * Config.accuracyshow_scale.Value; } else { num5 = 35f * Config.accuracyshow_scale.Value; } Vector3 val6 = default(Vector3); ((Vector3)(ref val6))..ctor(num4, num5, 0f); for (int j = 4; j < All; j++) { if (Config.aoiyuki_inverse_order.Value ^ Config.aoiyuki_inverse_order_anchor.Value) { child.GetChild(All - j + 3).localPosition = val5; val5 = ((!Config.aoiyuki_inverse_order_anchor.Value) ? (val5 - val6) : (val5 + val6)); } else { child.GetChild(j).localPosition = val5; val5 = ((!Config.aoiyuki_inverse_order_anchor.Value) ? (val5 - val6) : (val5 + val6)); } } } public static void alt_inventory_fix(PUI_Inventory __instance) { //IL_008d: 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_006d: 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_0187: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Unknown result type (might be due to invalid IL or missing references) //IL_016a: 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_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Unknown result type (might be due to invalid IL or missing references) __instance.m_invSlotStartOffsetX = Config.inventory_horizontal_offset.Value; float num = 0f; float num2 = ((!Config.inventory_invert_anchor.Value) ? 1f : (-1f)); for (int num3 = ((Il2CppArrayBase)(object)__instance.m_slotGUIOrder).Length - 1; num3 >= 0; num3--) { InventorySlot val = ((!(Config.inventory_invert.Value ^ Config.inventory_invert_anchor.Value)) ? ((Il2CppArrayBase)(object)__instance.m_slotGUIOrder)[((Il2CppArrayBase)(object)__instance.m_slotGUIOrder).Length - 1 - num3] : ((Il2CppArrayBase)(object)__instance.m_slotGUIOrder)[num3]); if (__instance.m_inventorySlots.ContainsKey(val)) { PUI_InventoryItem val2 = __instance.m_inventorySlots[val]; if (((Component)val2).gameObject.activeSelf) { ((RectTransformComp)val2).SetPosition(new Vector2(num * num2, 0f)); int num4 = (((int)val2.CurrentState != 0 || !Config.inventory_remove_empty.Value) ? 1 : 0); num = ((!Config.inventory_invert.Value) ? (num + __instance.m_invSlotStartOffsetX * (float)num4) : (num - __instance.m_invSlotStartOffsetX * (float)num4)); } } } if (Config.move_flashlight.Value) { ((RectTransformComp)__instance.m_iconDisplay).SetPosition(Vector2.op_Implicit(Config.move_flashlight_pos_parse)); } else { ((RectTransformComp)__instance.m_iconDisplay).SetPosition(new Vector2(num * num2, 0f)); } } [HarmonyPatch(typeof(PlayerGuiLayer), "UpdateGUIElementsVisibility")] [HarmonyPostfix] public static void inv_scale(PlayerGuiLayer __instance) { ((RectTransformComp)__instance.Inventory).SetScaleFactor(CellSettingsManager.SettingsData.HUD.Inventory_scale.Value * 0.75f * Config.inventory_scale.Value); } [HarmonyPatch(typeof(PUI_LocalPlayerStatus), "UpdateHealth")] [HarmonyPostfix] [HarmonyAfter(new string[] { "Andocas.PreciseUI" })] public static void health_text(PUI_LocalPlayerStatus __instance) { if (Config.no_percent.Value) { ((TMP_Text)__instance.m_healthText).text = ((TMP_Text)__instance.m_healthText).text.Replace("%", ""); } } [HarmonyPatch(typeof(PUI_LocalPlayerStatus), "UpdateInfection")] [HarmonyPostfix] [HarmonyAfter(new string[] { "Andocas.PreciseUI" })] public static void infection_text(PUI_LocalPlayerStatus __instance) { if (Config.no_percent.Value) { ((TMP_Text)__instance.m_infectionText).text = ((TMP_Text)__instance.m_infectionText).text.Replace("%", ""); } } [HarmonyPatch(typeof(PUI_LocalPlayerStatus), "Start")] [HarmonyPostfix] public static void health_pos(PUI_LocalPlayerStatus __instance) { //IL_0007: 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_006b: 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_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: 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_0103: 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_011b: 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_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0153: Unknown result type (might be due to invalid IL or missing references) //IL_0162: 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_0189: 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_01a1: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01b9: Unknown result type (might be due to invalid IL or missing references) //IL_01c5: Unknown result type (might be due to invalid IL or missing references) //IL_01d1: 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_01fa: Unknown result type (might be due to invalid IL or missing references) //IL_0206: Unknown result type (might be due to invalid IL or missing references) //IL_0217: Unknown result type (might be due to invalid IL or missing references) //IL_0234: Unknown result type (might be due to invalid IL or missing references) //IL_0240: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Unknown result type (might be due to invalid IL or missing references) //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_0269: Unknown result type (might be due to invalid IL or missing references) //IL_0275: Unknown result type (might be due to invalid IL or missing references) //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_029c: Unknown result type (might be due to invalid IL or missing references) //IL_02b2: Unknown result type (might be due to invalid IL or missing references) //IL_02c8: Unknown result type (might be due to invalid IL or missing references) //IL_02d7: Unknown result type (might be due to invalid IL or missing references) //IL_02ef: 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_0307: 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_032b: Unknown result type (might be due to invalid IL or missing references) //IL_0337: Unknown result type (might be due to invalid IL or missing references) //IL_0343: Unknown result type (might be due to invalid IL or missing references) //IL_034f: 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_0367: Unknown result type (might be due to invalid IL or missing references) //IL_0373: Unknown result type (might be due to invalid IL or missing references) //IL_037f: Unknown result type (might be due to invalid IL or missing references) ((Component)__instance).transform.localPosition = Config.status_pos_parse; if (Config.booster_static.Value) { __instance.m_boosterIconActiveDisplayYPosInfection = __instance.m_boosterIconActiveDisplayYPosNoInfection; } ((Component)__instance.m_boosterIconActiveDisplay).transform.localPosition = Config.booster_pos_parse; ((Component)__instance.m_boosterIconActiveDisplay).gameObject.SetActive(!Config.no_booster.Value); ((Graphic)__instance.m_pulseText).color = Config.stamina_text_color_parse; __instance.m_pulseText.transform.localPosition = Config.stamina_pos_parse; __instance.m_pulseText.transform.localScale = Vector3.one * Config.stamina_scale.Value; ((Component)__instance.m_warning).transform.localPosition = Config.pulsing_warning_pos_parse; ((Component)__instance.m_warning).transform.localScale = Vector3.one * Config.pulsing_warning_scale.Value; ((TMP_Text)__instance.m_pulseText).alignment = Config.stamina_align_text.Value; __instance.m_staminaBad = Config.stamina_low_health_color_parse; __instance.m_staminaBadPulse = Config.stamina_low_health_color_parse; __instance.m_staminaWarningBright = Config.stamina_warning_bright_parse; __instance.m_staminaWarningDark = Config.stamina_warning_dark_parse; __instance.m_healthText.transform.localPosition = Config.health_text_pos_parse; __instance.m_healthText.transform.localScale = Vector3.one * Config.health_text_scale.Value; ((TMP_Text)__instance.m_healthText).alignment = Config.health_text_alignment.Value; ((Graphic)__instance.m_healthText).color = Config.health_good_parse; __instance.m_healthBad = Config.health_bad_parse; __instance.m_healthGood = Config.health_good_parse; __instance.m_healthMeleeBuff = Config.health_melee_buff_parse; __instance.m_healthBadPulse = Config.health_bad_pulse_parse; __instance.m_healthWarningBright = Config.health_warning_bright_parse; __instance.m_healthWarningDark = Config.health_warning_dark_parse; Transform parent = ((Component)__instance.m_health1).transform.parent; parent.localRotation = Config.right_health_rot_parse; parent.localPosition = Config.right_health_pos_parse; parent.localScale = Config.right_health_scale_parse; __instance.m_health1.color = Config.health_good_parse; Transform parent2 = ((Component)__instance.m_health2).transform.parent; parent2.localRotation = Config.left_health_rot_parse; parent2.localPosition = Config.left_health_pos_parse; parent2.localScale = Config.left_health_scale_parse; __instance.m_health2.color = Config.health_good_parse; __instance.m_infectionHigh = Config.infection_high_parse; __instance.m_infectionLow = Config.infection_low_parse; ((Graphic)__instance.m_infectionText).color = Config.infection_low_parse; ((TMP_Text)__instance.m_infectionText).alignment = Config.infection_text_alignment.Value; __instance.m_infectionText.transform.localPosition = Config.infection_text_pos_parse; __instance.m_infectionText.transform.localScale = Vector3.one * Config.infection_text_scale.Value; Transform transform = ((Component)__instance.m_infection1).transform; transform.localRotation = Config.right_infection_rot_parse; transform.localScale = Config.right_infection_scale_parse; transform.localPosition = Config.right_infection_pos_parse; Transform transform2 = ((Component)__instance.m_infection2).transform; transform2.localRotation = Config.left_infection_rot_parse; transform2.localScale = Config.left_infection_scale_parse; transform2.localPosition = Config.left_infection_pos_parse; __instance.m_BPMMinColorPulseLow = Config.pulse_low_parse; __instance.m_BPMMinColorPulseHigh = Config.pulse_low_parse; __instance.m_BPMMidColorPulseLow = Config.pulse_mid_parse; __instance.m_BPMMidColorPulseHigh = Config.pulse_mid_parse; __instance.m_BPMMaxColorPulseHigh = Config.pulse_high_parse; __instance.m_BPMMaxColorPulseHigh = Config.pulse_high_parse; } [HarmonyPatch(typeof(PUI_GameEventLog), "Update")] [HarmonyPostfix] [HarmonyAfter(new string[] { "Andocas.BetterTextChat" })] public static void helper_text_nuker_with_btc(PUI_GameEventLog __instance) { if (Config.remove_helper.Value) { nuke_helper(__instance); } } [HarmonyPatch(typeof(PUI_GameEventLog), "UpdateHelpText")] [HarmonyPostfix] public static void chat_helper(PUI_GameEventLog __instance) { if (Config.remove_helper.Value) { nuke_helper(__instance); } } [HarmonyPatch(typeof(PUI_Subtitles), "Awake")] [HarmonyPostfix] public static void subtitles(PUI_Subtitles __instance) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) ((Component)__instance).transform.localPosition = Config.subtitle_pos_parse; ((Graphic)((Component)((Component)__instance).transform.GetChild(0)).GetComponent()).color = Config.subtitle_color_parse; ((Graphic)((Component)((Component)__instance).transform.GetChild(1)).GetComponent()).color = Config.subtitle_color_parse; } [HarmonyPatch(typeof(PUI_GameObjectives), "Setup")] [HarmonyPostfix] public static void warden_objective(PUI_GameObjectives __instance) { //IL_0007: 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_0049: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) ((Graphic)__instance.m_header).color = Config.obj_header_text_parse; ((Component)__instance.m_headerHolder.transform.GetChild(1)).GetComponent().color = Config.obj_header_bg_parse; ((Component)__instance.m_itemsHeader.transform.GetChild(1)).GetComponent().color = Config.obj_item_text_parse; ((Graphic)__instance.m_items).color = Config.obj_item_bg_parse; } [HarmonyPatch(typeof(PUI_GameObjectives), "SetProgressionObjective")] [HarmonyPostfix] public static void warden_description(PUI_GameObjectives __instance) { //IL_009b: 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_0074: Unknown result type (might be due to invalid IL or missing references) List progressionObjectives = __instance.m_progressionObjectives; for (int i = 0; i < progressionObjectives.Count; i++) { if ((Object)(object)progressionObjectives[i] != (Object)null) { ((Graphic)progressionObjectives[i].m_text).color = Config.obj_progression_subtext_text_parse; ((TMP_Text)progressionObjectives[i].m_text).text = ((TMP_Text)progressionObjectives[i].m_text).text.Replace("", ""); ((Graphic)progressionObjectives[i].m_header).color = Config.obj_progression_header_text_parse; } } ((Component)__instance).transform.localPosition = Config.obj_pos_parse; if (Config.minimal_ui_enabled.Value) { minimal_ui_changes(__instance, invert: true); } } [HarmonyPatch(typeof(PUI_GameObjectives), "Update")] [HarmonyPostfix] public static void fading_obj(PUI_GameObjectives __instance) { //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) if (!Config.minimal_ui_enabled.Value) { return; } if (Input.GetKey(Config.minimal_ui_key.Value) && ((TMP_Text)__instance.m_header).alpha < 1f) { minimal_ui_changes(__instance, invert: false); return; } if (((TMP_Text)__instance.m_header).alpha >= 0f && !Input.GetKey(Config.minimal_ui_key.Value)) { minimal_ui_changes(__instance, invert: true); return; } if (((TMP_Text)((Component)__instance.m_itemsHeader.transform.GetChild(0)).GetComponent()).alpha > 0f && ((TMP_Text)__instance.m_header).alpha <= 0f) { ((TMP_Text)((Component)__instance.m_itemsHeader.transform.GetChild(0)).GetComponent()).alpha = 0f; } if (((TMP_Text)__instance.m_progressionObjectives[0].m_text).alpha > 0f && ((TMP_Text)__instance.m_header).alpha <= 0f) { List progressionObjectives = __instance.m_progressionObjectives; for (int i = 0; i < progressionObjectives.Count; i++) { ((TMP_Text)progressionObjectives[i].m_text).alpha = 0f; ((TMP_Text)progressionObjectives[i].m_header).alpha = 0f; } } } [HarmonyPatch(typeof(PUI_GameObjectives), "SetProgressionObjective")] [HarmonyPostfix] public static void fading_obj_extension(PUI_GameObjectives __instance, int ID) { ((TMP_Text)__instance.m_progressionObjectiveMap[ID].m_text).alpha = ((TMP_Text)__instance.m_progressionObjectives[0].m_text).alpha; ((TMP_Text)__instance.m_progressionObjectiveMap[ID].m_header).alpha = ((TMP_Text)__instance.m_progressionObjectives[0].m_header).alpha; } [HarmonyPatch(typeof(PUI_CommunicationMenu), "Setup")] [HarmonyPostfix] public static void q_menu(PUI_CommunicationMenu __instance) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0027: 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) ((Component)__instance).transform.localPosition = Config.comms_pos_parse; ((Component)__instance).transform.localScale = new Vector3(0.5f, 0.5f, 0.5f) * Config.comms_scale.Value; } [HarmonyPatch(typeof(PUI_Compass), "UpdateFontMaskSize")] [HarmonyPrefix] public static void compASS_mask_fix(ref bool __runOriginal, PUI_Compass __instance, float scaleX) { //IL_0040: Unknown result type (might be due to invalid IL or missing references) __runOriginal = false; float num = __instance.m_compassWidth * scaleX / 2f; __instance.m_fontMaterial.SetVector("_ClipRect", new Vector4(Config.compass_pos_parse.x - num, 500f, Config.compass_pos_parse.x + num, 500f)); } [HarmonyPatch(typeof(PUI_Compass), "Setup")] [HarmonyPostfix] public static void compASS(PUI_Compass __instance) { //IL_0007: 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_005c: 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_00b5: Unknown result type (might be due to invalid IL or missing references) ((Component)__instance).transform.localPosition = Config.compass_pos_parse; __instance.m_compassWidth = Config.compass_length.Value; Transform root = __instance.m_root; for (int i = 0; i < root.childCount - 1; i++) { Transform child = root.GetChild(i); if (((Object)child).name == "PUI_Compass_Line(Clone)") { ((Component)child).gameObject.GetComponent().color = Config.compass_line_color_parse; ((Component)child).gameObject.GetComponent().maskInteraction = (SpriteMaskInteraction)0; ((Renderer)((Component)child).gameObject.GetComponent()).material = __instance.m_fontMaterial; } else if (((Object)child).name == "PUI_Compass_Letter(Clone)") { ((Graphic)((Component)child).gameObject.GetComponent()).color = Config.compass_letter_color_parse; } else { ((Graphic)((Component)child).gameObject.GetComponent()).color = Config.compass_number_color_parse; } } ((Component)((Component)__instance).transform.FindChild("PUI_Compass_Arrow(Clone)").GetChild(1)).GetComponent().color = Config.compass_arrow_color_parse; bool __runOriginal = true; compASS_mask_fix(ref __runOriginal, __instance, CellSettingsManager.SettingsData.HUD.Compass_scale.Value * ((GuiLayer)GuiManager.PlayerLayer).GuiLayerBase.m_cellUICanvas.CanvasScale); } [HarmonyPatch(typeof(PUI_WardenIntel), "SetVisible")] [HarmonyPostfix] public static void warden_intel(PUI_WardenIntel __instance) { //IL_0007: 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_0087: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) ((Component)__instance).transform.localPosition = Config.wrdn_intel_pos_parse; ((Graphic)__instance.m_intelText).color = Config.wrdn_intel_color_parse; if (Config.wrdn_intel_override_red_text.Value) { ((TMP_Text)__instance.m_intelText).text = ((TMP_Text)__instance.m_intelText).text.Replace("", ""); } if (Config.no_whitebox_flash.Value) { __instance.m_whiteBox.GetComponent().color = new Color(1f, 1f, 1f, 0f); __instance.m_whiteBoxWide.GetComponent().color = new Color(1f, 1f, 1f, 0f); } } [HarmonyPatch(typeof(PUI_SkipText), "Setup")] [HarmonyPostfix] public static void skip_indicator(PUI_SkipText __instance) { //IL_0007: 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_0029: Unknown result type (might be due to invalid IL or missing references) ((Component)__instance).transform.localPosition = Config.skip_pos_parse; ((Graphic)__instance.m_intelText).color = Config.skip_text_color_parse; __instance.m_progressSprite.color = Config.skip_bg_color_parse; } [HarmonyPatch(typeof(PUI_ObjectiveTimer), "UpdateTimerText")] [HarmonyPostfix] public static void mission_timer(PUI_ObjectiveTimer __instance) { //IL_0007: 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) ((Graphic)__instance.m_titleText).color = Config.mission_timer_color_parse; ((Component)__instance).transform.localPosition = Config.mission_timer_pos_parse; } [HarmonyPatch(typeof(PUI_Watermark), "UpdateWatermark")] [HarmonyPostfix] [HarmonyPriority(int.MinValue)] public static void watermark(PUI_Watermark __instance) { //IL_0007: 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_0033: 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_005a: Unknown result type (might be due to invalid IL or missing references) ((Graphic)__instance.m_fpsText).color = Config.fps_color_parse; __instance.m_fpsText.transform.localPosition = Config.fps_pos_parse; __instance.m_fpsText.transform.localScale = Config.fps_scale_parse; ((Graphic)__instance.m_watermarkText).color = Config.watermark_color_parse; __instance.m_watermarkText.transform.localPosition = Config.watermark_pos_parse; } [HarmonyPatch(typeof(PUI_Watermark), "UpdateWatermark")] [HarmonyPostfix] [HarmonyPriority(int.MinValue)] public static void watermark_text(PUI_Watermark __instance) { if (Config.watermark_text.Value == "") { ((TMP_Text)__instance.m_watermarkText).text = Text.Format(35u, (Object[])(object)new Object[2] { Object.op_Implicit(__instance.m_rundownKey), Object.op_Implicit(__instance.m_revision) }); } else { ((TMP_Text)__instance.m_watermarkText).text = Config.watermark_text.Value; } } [HarmonyPatch(typeof(PUI_InteractionPrompt), "Setup")] [HarmonyPrefix] public static void interaction_button(PUI_InteractionPrompt __instance) { //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0027: 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) if ((Object)(object)__instance == (Object)(object)GuiManager.InteractionLayer.m_message) { ((Component)((Component)__instance).transform.GetChild(3)).GetComponent().size = Vector2.op_Implicit(Config.interaction_bar_scale_parse); } else { ((Component)((Component)__instance).transform.GetChild(3)).GetComponent().size = Vector2.op_Implicit(Config.bioscan_bar_scale_parse); } } [HarmonyPatch(typeof(PUI_InteractionPrompt), "Setup")] [HarmonyPostfix] public static void interaction(PUI_InteractionPrompt __instance) { //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_007a: 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_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: 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_00e3: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)__instance == (Object)(object)GuiManager.InteractionLayer.m_interactPrompt) { __instance.m_colTextBioscan = Config.bioscan_text_hex.Value; __instance.m_colTextBioscanAlarm = Config.bioscanalarm_text_hex.Value; __instance.m_colTextButtonPrompt = Config.buttonprompt_text_hex.Value; __instance.m_colTextMessage = Config.message_text_hex.Value; __instance.m_colorButtonPrompt = Config.interact_timer_fg_parse; ((Component)((Component)__instance).transform.GetChild(3)).GetComponent().color = Config.interact_timer_bg_parse; ((Component)__instance).transform.localRotation = Config.interact_rotation_parse; __instance.m_headerText.transform.localRotation = Config.interact_rotation_text_cancel_parse; ((TMP_Text)__instance.m_headerText).alignment = Config.interaction_vert_align.Value; ((TMP_Text)__instance.m_headerText).horizontalAlignment = Config.interaction_horizontal_align.Value; __instance.m_headerText.transform.localPosition = Config.interact_text_pos_parse; __instance.m_timerWidthMax = Config.interaction_bar_scale_parse.x; } } [HarmonyPatch(typeof(PUI_InteractionPrompt), "SetStyle")] [HarmonyPostfix] public static void interaction_move_all(PUI_InteractionPrompt __instance) { //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_001a: 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_0059: 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_0086: 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_00b2: 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_00de: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)__instance == (Object)(object)GuiManager.InteractionLayer.m_message) { __instance.m_colorBioscan = Config.bioscan_bioscan_color_parse; __instance.m_colorBioscanAlarm = Config.bioscan_bioscanalarm_color_parse; __instance.m_colTextBioscan = Config.bioscan_bioscan_text_hex.Value; __instance.m_colTextBioscanAlarm = Config.bioscan_bioscanalarm_text_hex.Value; ((Component)__instance).transform.localPosition = Config.bioscan_pos_parse; ((Component)((Component)__instance).transform.GetChild(3)).GetComponent().color = Config.bioscan_timer_bg_parse; ((Component)__instance).transform.localRotation = Config.bioscan_rotation_parse; __instance.m_headerText.transform.localRotation = Config.bioscan_rotation_text_cancel_parse; ((TMP_Text)__instance.m_headerText).alignment = Config.bioscan_vert_align.Value; ((TMP_Text)__instance.m_headerText).horizontalAlignment = Config.bioscan_horizontal_align.Value; __instance.m_headerText.transform.localPosition = Config.bioscan_text_pos_parse; __instance.m_timerWidthMax = Config.bioscan_bar_scale_parse.x; } else { ((Component)__instance).transform.localPosition = Config.interact_pos_parse; } } [HarmonyPatch(typeof(PUI_InteractionPrompt), "PlayIntro")] [HarmonyPrefix] public static void nuke_that_whitebox(ref bool __runOriginal) { if (Config.no_whitebox_flash.Value) { __runOriginal = false; } } [HarmonyPatch(typeof(PUI_GameEventLog), "ShowAndUpdateItemPositions")] [HarmonyPostfix] public static void reverse_chat(ref bool __runOriginal, PUI_GameEventLog __instance) { //IL_01a1: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_01ef: 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_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_016a: Unknown result type (might be due to invalid IL or missing references) if (!(((Object)((Component)__instance).transform.parent).name == "MovementRoot")) { return; } __runOriginal = false; float num = 0f; int num2 = 0; if (__instance.m_logItems.Count > 0) { Debug.Log(Object.op_Implicit("ran")); if (__instance.m_chatActiveRoot.activeSelf && !__instance.m_isYOffsetted) { __instance.m_itemAlign.localPosition = Config.chat_message_pos_parse; __instance.m_isYOffsetted = false; } else if (!__instance.m_chatActiveRoot.activeSelf && !__instance.m_isYOffsetted) { __instance.m_itemAlign.localPosition = Config.chat_message_pos_offset_parse; __instance.m_isYOffsetted = true; } for (int num3 = __instance.m_logItems.Count - 1; num3 >= 0; num3--) { num2 = ((!Config.inverse_chat_order.Value) ? num3 : (__instance.m_logItems.Count - 1 - num3)); ((Component)__instance.m_logItems[num2]).transform.localPosition = new Vector3(0f, num, 0f); num = ((!Config.inverse_chat_anchor.Value) ? (num + 20f) : (num - 20f)); ((TMP_Text)__instance.m_logItems[num2].m_text).m_HorizontalAlignment = Config.chat_logs_horizontal_align.Value; } } Transform child = __instance.m_chatActiveRoot.transform.GetChild(2); child.localPosition = Config.typing_box_pos_parse; child.localRotation = Config.typing_box_rotation_parse; ((TMP_Text)__instance.m_txtInput).m_HorizontalAlignment = Config.user_input_horizontal_align.Value; __instance.m_txtInput.transform.localPosition = Config.user_input_pos_parse; ((Component)child).gameObject.GetComponent().color = Config.typing_box_color_parse; } [HarmonyPatch(typeof(PUI_GameEventLog), "UpdateHeightOffset")] [HarmonyPrefix] public static void kaboom(ref bool __runOriginal, PUI_GameEventLog __instance) { __runOriginal = false; __instance.ShowAndUpdateItemPositions(); } [HarmonyPatch(typeof(PUI_GameEventLog), "Setup")] [HarmonyPostfix] public static void moving_chat(PUI_GameEventLog __instance) { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_006b: 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) if (((Object)((Component)__instance).transform.parent).name == "MovementRoot") { Transform child = __instance.m_chatActiveRoot.transform.GetChild(2); child.localPosition = Config.typing_box_pos_parse; child.localRotation = Config.typing_box_rotation_parse; ((TMP_Text)__instance.m_txtInput).m_HorizontalAlignment = Config.user_input_horizontal_align.Value; __instance.m_txtInput.transform.localPosition = Config.user_input_pos_parse; __instance.m_itemAlign.localPosition = Config.chat_message_pos_offset_parse; } } [HarmonyPatch(typeof(PUI_GameEventLog), "Update")] [HarmonyPrefix] public static void no_blink_chat_inactive_scale(PUI_GameEventLog __instance) { if (Config.remove_chat_underscore.Value) { __instance.m_blink = true; } if (!__instance.m_logHidden && Clock.Time > __instance.m_hideLogTimer) { for (int i = 0; i < __instance.m_logItems.Count; i++) { __instance.m_logItems[i].SetAlphaScale(Config.chat_hidden_alpha.Value); } __instance.m_logHidden = true; } } [HarmonyPatch(typeof(PUI_GameEventLog), "Update")] [HarmonyPostfix] public static void moving_chat_statebased(PUI_GameEventLog __instance) { //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Unknown result type (might be due to invalid IL or missing references) if (Config.move_chat_open.Value != Config.chat_message_vertical.Disabled) { if (((Object)((Component)__instance).transform.parent).name == "MovementRoot") { Debug.Log(Object.op_Implicit(__instance.m_isYOffsetted)); if (__instance.m_chatActiveRoot.activeSelf && __instance.m_isYOffsetted) { __instance.m_itemAlign.localPosition = Config.chat_message_pos_parse; __instance.m_isYOffsetted = false; } else if (!__instance.m_chatActiveRoot.activeSelf && !__instance.m_isYOffsetted) { __instance.m_itemAlign.localPosition = Config.chat_message_pos_offset_parse; __instance.m_isYOffsetted = true; } } } else if (__instance.m_isYOffsetted) { __instance.m_itemAlign.localPosition = Config.chat_message_pos_parse; __instance.m_isYOffsetted = false; } } [HarmonyPatch(typeof(PUI_InventoryItem), "OnAmmoUpdated")] [HarmonyPostfix] public static void low_ammo(PUI_InventoryItem __instance) { if ((Config.recolor_selected.Value || Config.LowAmmo_patch.Value) && ((Object)((Component)((Component)__instance).transform.parent.parent).gameObject).name == "MovementRoot") { bool ammoTotalVisible = __instance.m_ammoTotalVisible; if (Config.LowAmmo_patch.Value) { __instance.m_ammoTotalVisible = __instance.m_meleeStaminaHeight * Config.LowAmmo_treshold_multiplier >= (float)__instance.m_ammoClipAbsVal; } if (Config.recolor_selected.Value && Config.LowAmmo_patch.Value && __instance.m_showAmmoClip && ((__instance.m_offsetX == 1f && __instance.m_ammoTotalVisible) || (__instance.m_offsetX == 3f && !ammoTotalVisible && __instance.m_ammoTotalVisible))) { recolor_selected_lowammo_method(__instance); __instance.m_offsetX = 3f; } else if (Config.LowAmmo_patch.Value && __instance.m_showAmmoClip && __instance.m_showAmmoClip && ((__instance.m_offsetX == 0f && __instance.m_ammoTotalVisible) || (__instance.m_offsetX == 2f && !ammoTotalVisible && __instance.m_ammoTotalVisible))) { recolor_unselected_lowammo_method(__instance); recolor_lowammo_slims_method(__instance); __instance.m_offsetX = 2f; } else if (Config.recolor_selected.Value && (__instance.m_offsetX == 1f || (__instance.m_offsetX == 3f && ammoTotalVisible && !__instance.m_ammoTotalVisible))) { recolor_selected_highammo_method(__instance); __instance.m_offsetX = 3f; } else if (__instance.m_offsetX == 0f || (__instance.m_offsetX == 2f && ammoTotalVisible && !__instance.m_ammoTotalVisible)) { recolor_unselected_highammo_method(__instance); recolor_highammo_slims_method(__instance); __instance.m_offsetX = 2f; } } } public static void reset_ammo_states_low_ammo(PUI_InventoryItem __instance) { __instance.m_offsetX = 0f; __instance.m_ammoTotalVisible = false; } [HarmonyPatch(typeof(GameStateManager), "DoChangeState")] [HarmonyPostfix] public static void reset_ammo_max(GameStateManager __instance, eGameStateName nextState) { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Invalid comparison between Unknown and I4 //IL_00e3: 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) if (Config.LowAmmo_patch.Value && (int)nextState == 7) { for (int i = 0; i < ((Il2CppArrayBase)(object)PlayerBackpackManager.m_localPlayerBackpack.Slots).Length; i++) { if (Config.backpackitem_to_inventoryslot.ContainsKey(i)) { BackpackItem obj = ((Il2CppArrayBase)(object)PlayerBackpackManager.m_localPlayerBackpack.Slots)[i]; BulletWeapon val = ((obj != null) ? ((Il2CppObjectBase)obj.Instance).TryCast() : null); if (val != null && ((Il2CppArrayBase)(object)PlayerBackpackManager.m_localPlayerBackpack.Slots)[i].Instance.ItemDataBlock.GUIShowAmmoClip) { GuiManager.PlayerLayer.Inventory.m_inventorySlots[Config.backpackitem_to_inventoryslot[i]].m_meleeStaminaHeight = ((ItemEquippable)val).ClipSize; } } } } ((Component)GuiManager.PlayerLayer.m_compass).transform.localPosition = Config.compass_pos_parse; } [HarmonyPatch(typeof(PUI_LocalPlayerStatus), "Update")] [HarmonyPostfix] public static void move_archive_combatindicator(PUI_LocalPlayerStatus __instance) { //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_006c: 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_0093: Unknown result type (might be due to invalid IL or missing references) if (archive_loaded) { Transform val = ((Component)__instance).transform.FindChild("CombatIndicator"); if ((Object)(object)val != (Object)null && ((Object)val).GetHashCode() != combatindicator_hash) { val.localScale = Vector3.one * Config.archive_combatindicator_scale.Value; val.localPosition = Config.archive_combatindicator_pos_parse; TextMeshPro component = ((Component)val).GetComponent(); ((Graphic)component).color = Config.archive_combatindicator_color_parse; ((TMP_Text)component).alignment = Config.archive_combatindicator_align.Value; combatindicator_hash = ((Object)val).GetHashCode(); } } } [HarmonyPatch(typeof(CM_PageRundown_New), "PlaceRundown")] [HarmonyPostfix] [HarmonyPriority(int.MinValue)] public static void move_aoiyuki_plugins() { //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_015a: 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_011e: Unknown result type (might be due to invalid IL or missing references) //IL_016e: Unknown result type (might be due to invalid IL or missing references) //IL_017d: Unknown result type (might be due to invalid IL or missing references) //IL_0190: 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) if (AoiYukiSetup || (!accuracyshow_loaded && !damageindicator_loaded)) { return; } setup_aoiyuki_indexes(); Transform child = ((Component)GuiManager.PlayerLayer.Inventory.m_iconDisplay).transform.GetChild(0).GetChild(0); Debug.Log(Object.op_Implicit("1")); if (child.GetChild(4) == null) { return; } Debug.Log(Object.op_Implicit("2")); for (int i = 4; i < All; i++) { Debug.Log(Object.op_Implicit(i)); Transform child2 = child.GetChild(i); Debug.Log(Object.op_Implicit(i + "transform")); SpriteRenderer component = ((Component)child2).GetComponent(); Debug.Log(Object.op_Implicit(i + "sprite")); if (accuracyshow_loaded && i == 4) { component.color = Config.accuracyshow_bg_color_parse; ((Renderer)component).sortingOrder = -1; ((Graphic)((Component)child.GetChild(4).GetChild(0).GetChild(0)).GetComponent()).color = Config.accuracyshow_text_color_parse; } else { component.color = Config.damageindicator_bg_color_parse; ((Renderer)component).sortingOrder = -1; ((Graphic)((Component)child.GetChild(i).GetChild(0).GetChild(0)).GetComponent()).color = Config.damageindicator_text_color_parse; } child.GetChild(i).localScale = Vector3.one * Config.accuracyshow_scale.Value; Vector3 localScale = child.GetChild(i).localScale; Debug.Log(Object.op_Implicit(((object)(Vector3)(ref localScale)).ToString())); } AoiYukiSetup = true; } [HarmonyPatch(typeof(PlayerGuiLayer), "Update")] [HarmonyPostfix] public static void scream_cd_manager(PlayerGuiLayer __instance) { //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Invalid comparison between Unknown and I4 //IL_0153: Unknown result type (might be due to invalid IL or missing references) //IL_0168: Unknown result type (might be due to invalid IL or missing references) //IL_017d: Unknown result type (might be due to invalid IL or missing references) if (!Config.scream_cd_toggle.Value && !scream_cd_object_setup) { return; } if (!scream_cd_object_setup && Config.scream_cd_toggle.Value) { if (((Component)__instance.m_playerStatus.m_healthText).gameObject == null) { return; } scream_cd = Object.Instantiate(((Component)__instance.m_playerStatus.m_healthText).gameObject, ((Component)__instance.m_playerStatus).transform); scream_cd_text_component = ((Component)scream_cd.transform).GetComponent(); ((TMP_Text)scream_cd_text_component).text = ""; scream_cd_object_setup = true; scream_cd_config_change = true; } else if (scream_cd_object_setup && !Config.scream_cd_toggle.Value) { Object.Destroy((Object)(object)scream_cd); scream_cd_object_setup = false; return; } if (scream_cd_object_setup && (int)GameStateManager.Current.m_currentStateName == 10) { float num = MathF.Max(EB_InCombat.s_globalScreamTimer - Clock.Time, 0f); ((TMP_Text)scream_cd_text_component).text = string.Format(CultureInfo.InvariantCulture, "{0:F1}", num); } if (scream_cd_config_change && scream_cd_object_setup) { ((Graphic)scream_cd_text_component).color = Config.scream_cd_color_parse; scream_cd.transform.localPosition = Config.scream_cd_pos_parse; ((TMP_Text)scream_cd_text_component).alignment = Config.scream_cd_alignment.Value; scream_cd_config_change = false; } } } internal static class Parser { internal static readonly CultureInfo force_parse_america = new CultureInfo("en-US"); public static Vector3 ParseVector3(string text) { //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_010b: 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_0096: Unknown result type (might be due to invalid IL or missing references) try { text = text.Replace(",", " "); while (text.Contains(" ")) { text = text.Replace(" ", " "); } string[] array = text.Split(" "); List list = new List(); string[] array2 = array; foreach (string s in array2) { list.Add(float.Parse(s, force_parse_america)); } return new Vector3(list[0], list[1], list[2]); } catch (Exception value) { Debug.LogError(Object.op_Implicit($"ParseVector3: While parsing `{text}`, caught exception `{value}` \nUse Commas or Spaces and 2 Values")); return new Vector3(0f, 0f, 0f); } } public static Vector2 ParseVector2(string text) { //IL_010a: 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_0113: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Unknown result type (might be due to invalid IL or missing references) try { if (text.Contains(",")) { text = text.Replace(",", " "); } while (text.Contains(" ")) { text = text.Replace(" ", " "); } string[] array = text.Split(" "); List list = new List(); string[] array2 = array; foreach (string s in array2) { list.Add(float.Parse(s, force_parse_america)); } return new Vector2(list[0], list[1]); } catch (Exception value) { Debug.LogError(Object.op_Implicit($"ParseVector2: While parsing `{text}`, caught exception `{value}` \nUse Commas or Spaces and 2 Values")); return new Vector2(0f, 0f); } } public static Quaternion ParseQuaternionSingleValue(float value) { //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_0096: 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_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) try { value *= (float)Math.PI / 180f; Vector3 val = default(Vector3); ((Vector3)(ref val))..ctor(0f, 0f, value); return Quaternion.EulerAngles(val); } catch (Exception value2) { Debug.LogError(Object.op_Implicit($"ParseVector3: While parsing `{value}`, caught exception `{value2}`")); return new Quaternion(0f, 0f, 0f, 1f); } } public static Color ParseHex(string hexcode) { //IL_01b4: Unknown result type (might be due to invalid IL or missing references) //IL_01b9: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: 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) //IL_019f: Unknown result type (might be due to invalid IL or missing references) float[] array = new float[4] { 0f, 0f, 0f, -1f }; hexcode = Regex.Replace(hexcode, "[^A-Fa-f0-9]", "", RegexOptions.CultureInvariant, Regex.InfiniteMatchTimeout); if (hexcode.Length == 3) { string[] array2 = new string[3]; for (int i = 0; i < 3; i++) { array2[i] = hexcode.Substring(i, 1); } hexcode = array2[0] + array2[0] + array2[1] + array2[1] + array2[2] + array2[2] + "FF"; } else if (hexcode.Length == 6) { hexcode += "FF"; } else if (hexcode.Length == 4) { string[] array3 = new string[4]; for (int j = 0; j < 4; j++) { array3[j] = hexcode.Substring(j, 1); } hexcode = array3[0] + array3[0] + array3[1] + array3[1] + array3[2] + array3[2] + array3[3] + array3[3]; } if (hexcode.Length == 8) { for (int k = 0; k < 8; k += 2) { array[k / 2] = (float)int.Parse(hexcode.Substring(k, 2), NumberStyles.HexNumber) / 255f; } return new Color(array[0], array[1], array[2], array[3]); } Debug.LogError(Object.op_Implicit("Invalid Hex value, Defaulting to white")); return Color.white; } } internal static class Config { internal enum chat_message_vertical { Up, Disabled, Down } internal static bool __runOriginal; internal static readonly ConfigEntry lowammo_selected_selected_bg_full_arrow; internal static Color lowammo_selected_selected_bg_full_arrow_parse; internal static readonly ConfigEntry lowammo_selected_selected_bg_full_bg_full; internal static Color lowammo_selected_selected_bg_full_bg_full_parse; internal static readonly ConfigEntry lowammo_selected_selected_info_content_archetypeName; internal static Color lowammo_selected_selected_info_content_archetypeName_parse; internal static readonly ConfigEntry lowammo_selected_selected_info_content_detailedname; internal static Color lowammo_selected_selected_info_content_detailedname_parse; internal static readonly ConfigEntry lowammo_selected_selected_info_content_ammoclip; internal static Color lowammo_selected_selected_info_content_ammoclip_parse; internal static readonly ConfigEntry lowammo_selected_selected_info_content_icon; internal static Color lowammo_selected_selected_info_content_icon_parse; internal static readonly ConfigEntry lowammo_selected_selected_slim_bg_slim; internal static Color lowammo_selected_selected_slim_bg_slim_parse; internal static readonly ConfigEntry lowammo_selected_selected_slim_ammo_percent; internal static Color lowammo_selected_selected_slim_ammo_percent_parse; internal static readonly ConfigEntry lowammo_unselected_selected_bg_full_arrow; internal static Color lowammo_unselected_selected_bg_full_arrow_parse; internal static readonly ConfigEntry lowammo_unselected_selected_bg_full_bg_full; internal static Color lowammo_unselected_selected_bg_full_bg_full_parse; internal static readonly ConfigEntry lowammo_unselected_selected_info_content_archetypeName; internal static Color lowammo_unselected_selected_info_content_archetypeName_parse; internal static readonly ConfigEntry lowammo_unselected_selected_info_content_detailedname; internal static Color lowammo_unselected_selected_info_content_detailedname_parse; internal static readonly ConfigEntry lowammo_unselected_selected_info_content_ammoclip; internal static Color lowammo_unselected_selected_info_content_ammoclip_parse; internal static readonly ConfigEntry lowammo_unselected_selected_info_content_icon; internal static Color lowammo_unselected_selected_info_content_icon_parse; internal static readonly ConfigEntry lowammo_unselected_selected_slim_bg_slim; internal static Color lowammo_unselected_selected_slim_bg_slim_parse; internal static readonly ConfigEntry lowammo_unselected_selected_slim_ammo_percent; internal static Color lowammo_unselected_selected_slim_ammo_percent_parse; internal static readonly ConfigEntry lowammo_unselected_slim_bg_small; internal static Color lowammo_unselected_slim_bg_small_parse; internal static readonly ConfigEntry lowammo_unselected_slim_ammo_percent; internal static Color lowammo_unselected_slim_ammo_percent_parse; internal static readonly ConfigEntry lowammo_unselected_slim_arrow; internal static Color lowammo_unselected_slim_arrow_parse; internal static readonly ConfigEntry lowammo_unselected_slim_archetypeName; internal static Color lowammo_unselected_slim_archetypeName_parse; internal static readonly ConfigEntry lowammo_unselected_slim_bg_big; internal static Color lowammo_unselected_slim_bg_big_parse; internal static readonly ConfigEntry selected_selected_bg_full_arrow; internal static Color selected_selected_bg_full_arrow_parse; internal static readonly ConfigEntry selected_selected_bg_full_bg_full; internal static Color selected_selected_bg_full_bg_full_parse; internal static readonly ConfigEntry selected_selected_info_content_archetypeName; internal static Color selected_selected_info_content_archetypeName_parse; internal static readonly ConfigEntry selected_selected_info_content_detailedname; internal static Color selected_selected_info_content_detailedname_parse; internal static readonly ConfigEntry selected_selected_info_content_ammoclip; internal static Color selected_selected_info_content_ammoclip_parse; internal static readonly ConfigEntry selected_selected_info_content_icon; internal static Color selected_selected_info_content_icon_parse; internal static readonly ConfigEntry selected_selected_slim_infinite; internal static Color selected_selected_slim_infinite_parse; internal static readonly ConfigEntry selected_selected_slim_bg_slim; internal static Color selected_selected_slim_bg_slim_parse; internal static readonly ConfigEntry selected_selected_slim_ammo_percent; internal static Color selected_selected_slim_ammo_percent_parse; internal static readonly ConfigEntry selected_bg_full_arrow; internal static Color selected_bg_full_arrow_parse; internal static readonly ConfigEntry selected_bg_full_bg_full; internal static Color selected_bg_full_bg_full_parse; internal static readonly ConfigEntry selected_info_content_archetypeName; internal static Color selected_info_content_archetypeName_parse; internal static readonly ConfigEntry selected_info_content_detailedname; internal static Color selected_info_content_detailedname_parse; internal static readonly ConfigEntry selected_info_content_ammoclip; internal static Color selected_info_content_ammoclip_parse; internal static readonly ConfigEntry selected_info_content_icon; internal static Color selected_info_content_icon_parse; internal static readonly ConfigEntry selected_slim_bg_slim; internal static Color selected_slim_bg_slim_parse; internal static readonly ConfigEntry selected_slim_ammo_percent; internal static Color selected_slim_ammo_percent_parse; internal static readonly ConfigEntry selected_slim_infinite; internal static Color selected_slim_infinite_parse; internal static readonly ConfigEntry slim_bg_small; internal static Color slim_bg_small_parse; internal static readonly ConfigEntry slim_ammo_percent; internal static Color slim_ammo_percent_parse; internal static readonly ConfigEntry slim_arrow; internal static Color slim_arrow_parse; internal static readonly ConfigEntry slim_infinite; internal static Color slim_infinite_parse; internal static readonly ConfigEntry slim_archetypeName; internal static Color slim_archetypeName_parse; internal static readonly ConfigEntry slim_bg_big; internal static Color slim_bg_big_parse; internal static readonly ConfigEntry empty_arrow; internal static Color empty_arrow_parse; internal static readonly ConfigEntry empty_slim_bg; internal static Color empty_slim_bg_parse; internal static readonly ConfigEntry empty_long_bg; internal static Color empty_long_bg_parse; internal static readonly ConfigEntry light_enabled; internal static Color light_enabled_parse; internal static readonly ConfigEntry light_disabled; internal static Color light_disabled_parse; internal static readonly ConfigEntry light_bg; internal static Color light_bg_parse; internal static readonly ConfigEntry inventory_pos; internal static Vector3 inventory_pos_parse; internal static readonly ConfigEntry slim_ammo_pos; internal static Vector3 slim_ammo_pos_parse; internal static readonly ConfigEntry slim_ammo_scale; internal static readonly ConfigEntry slim_infinite_scale; internal static readonly ConfigEntry inventory_scale; internal static readonly ConfigEntry slim_slim_ammo_pos; internal static Vector3 slim_slim_ammo_pos_parse; internal static readonly ConfigEntry slim_slim_ammo_scale; internal static readonly ConfigEntry slim_slim_infinite_scale; internal static readonly ConfigEntry minimal_ui_enabled; internal static readonly ConfigEntry minimal_ui_key; internal static readonly ConfigEntry minimal_ui_speed; internal static readonly ConfigEntry minimal_ui_speed_disable; internal static float minimal_ui_speed_parse; internal static readonly ConfigEntry confine_archetypename; internal static Vector2 confine_archetypename_parse; internal static readonly ConfigEntry remove_helper; internal static readonly ConfigEntry LowAmmo_patch; internal static readonly ConfigEntry LowAmmo_treshold; internal static float LowAmmo_treshold_multiplier; internal static readonly ConfigEntry recolor_melee_infinite; internal static readonly ConfigEntry inventory_permaselect; internal static readonly ConfigEntry recolor_selected; internal static readonly ConfigEntry inventory_invert; internal static readonly ConfigEntry inventory_horizontal; internal static readonly ConfigEntry inventory_invert_anchor; internal static readonly ConfigEntry inventory_remove_empty; internal static readonly ConfigEntry inventory_vertical_offset; internal static readonly ConfigEntry inventory_horizontal_offset; internal static readonly ConfigEntry no_percent; internal static readonly ConfigEntry no_whitebox_flash; internal static readonly ConfigEntry inverse_chat_order; internal static readonly ConfigEntry inverse_chat_anchor; internal static readonly ConfigEntry remove_chat_underscore; internal static readonly ConfigEntry move_chat_open; internal static readonly ConfigEntry move_each_inventory_slot; internal static readonly ConfigEntry move_flashlight; internal static readonly ConfigEntry status_pos; internal static Vector3 status_pos_parse; internal static readonly ConfigEntry booster_static; internal static readonly ConfigEntry booster_pos; internal static Vector3 booster_pos_parse; internal static readonly ConfigEntry no_booster; internal static readonly ConfigEntry stamina_text_color; internal static Color stamina_text_color_parse; internal static readonly ConfigEntry stamina_pos; internal static Vector3 stamina_pos_parse; internal static readonly ConfigEntry stamina_scale; internal static readonly ConfigEntry pulsing_warning_pos; internal static Vector3 pulsing_warning_pos_parse; internal static readonly ConfigEntry pulsing_warning_scale; internal static readonly ConfigEntry stamina_align_text; internal static readonly ConfigEntry stamina_low_health_color; internal static Color stamina_low_health_color_parse; internal static readonly ConfigEntry stamina_warning_bright; internal static Color stamina_warning_bright_parse; internal static readonly ConfigEntry stamina_warning_dark; internal static Color stamina_warning_dark_parse; internal static readonly ConfigEntry health_text_pos; internal static Vector3 health_text_pos_parse; internal static readonly ConfigEntry health_text_scale; internal static readonly ConfigEntry health_good; internal static Color health_good_parse; internal static readonly ConfigEntry health_bad; internal static Color health_bad_parse; internal static readonly ConfigEntry health_melee_buff; internal static Color health_melee_buff_parse; internal static readonly ConfigEntry health_bad_pulse; internal static Color health_bad_pulse_parse; internal static readonly ConfigEntry health_warning_bright; internal static Color health_warning_bright_parse; internal static readonly ConfigEntry health_warning_dark; internal static Color health_warning_dark_parse; internal static readonly ConfigEntry right_health_rot; internal static Quaternion right_health_rot_parse; internal static readonly ConfigEntry right_health_pos; internal static Vector3 right_health_pos_parse; internal static readonly ConfigEntry right_health_scale; internal static Vector3 right_health_scale_parse; internal static readonly ConfigEntry left_health_rot; internal static Quaternion left_health_rot_parse; internal static readonly ConfigEntry left_health_pos; internal static Vector3 left_health_pos_parse; internal static readonly ConfigEntry left_health_scale; internal static Vector3 left_health_scale_parse; internal static readonly ConfigEntry health_text_alignment; internal static readonly ConfigEntry infection_text_pos; internal static Vector3 infection_text_pos_parse; internal static readonly ConfigEntry infection_text_scale; internal static readonly ConfigEntry infection_text_alignment; internal static readonly ConfigEntry infection_high; internal static Color infection_high_parse; internal static readonly ConfigEntry infection_low; internal static Color infection_low_parse; internal static readonly ConfigEntry right_infection_rot; internal static Quaternion right_infection_rot_parse; internal static readonly ConfigEntry right_infection_pos; internal static Vector3 right_infection_pos_parse; internal static readonly ConfigEntry right_infection_scale; internal static Vector3 right_infection_scale_parse; internal static readonly ConfigEntry left_infection_rot; internal static Quaternion left_infection_rot_parse; internal static readonly ConfigEntry left_infection_pos; internal static Vector3 left_infection_pos_parse; internal static readonly ConfigEntry left_infection_scale; internal static Vector3 left_infection_scale_parse; internal static readonly ConfigEntry pulse_low; internal static Color pulse_low_parse; internal static readonly ConfigEntry pulse_mid; internal static Color pulse_mid_parse; internal static readonly ConfigEntry pulse_high; internal static Color pulse_high_parse; internal static readonly ConfigEntry subtitle_pos; internal static Vector3 subtitle_pos_parse; internal static readonly ConfigEntry subtitle_color; internal static Color subtitle_color_parse; internal static readonly ConfigEntry obj_pos; internal static Vector3 obj_pos_parse; internal static readonly ConfigEntry obj_header_text; internal static Color obj_header_text_parse; internal static readonly ConfigEntry obj_header_bg; internal static Color obj_header_bg_parse; internal static readonly ConfigEntry obj_item_text; internal static Color obj_item_text_parse; internal static readonly ConfigEntry obj_item_bg; internal static Color obj_item_bg_parse; internal static readonly ConfigEntry obj_progression_header_text; internal static Color obj_progression_header_text_parse; internal static readonly ConfigEntry obj_progression_subtext_text; internal static Color obj_progression_subtext_text_parse; internal static readonly ConfigEntry comms_pos; internal static Vector3 comms_pos_parse; internal static readonly ConfigEntry comms_scale; internal static readonly ConfigEntry compass_pos; internal static Vector3 compass_pos_parse; internal static readonly ConfigEntry compass_length; internal static readonly ConfigEntry compass_line_color; internal static Color compass_line_color_parse; internal static readonly ConfigEntry compass_letter_color; internal static Color compass_letter_color_parse; internal static readonly ConfigEntry compass_number_color; internal static Color compass_number_color_parse; internal static readonly ConfigEntry compass_arrow_color; internal static Color compass_arrow_color_parse; internal static readonly ConfigEntry wrdn_intel_pos; internal static Vector3 wrdn_intel_pos_parse; internal static readonly ConfigEntry wrdn_intel_color; internal static Color wrdn_intel_color_parse; internal static readonly ConfigEntry wrdn_intel_override_red_text; internal static readonly ConfigEntry skip_pos; internal static Vector3 skip_pos_parse; internal static readonly ConfigEntry skip_text_color; internal static Color skip_text_color_parse; internal static readonly ConfigEntry skip_bg_color; internal static Color skip_bg_color_parse; internal static readonly ConfigEntry mission_timer_color; internal static Color mission_timer_color_parse; internal static readonly ConfigEntry mission_timer_pos; internal static Vector3 mission_timer_pos_parse; internal static readonly ConfigEntry fps_color; internal static Color fps_color_parse; internal static readonly ConfigEntry fps_pos; internal static Vector3 fps_pos_parse; internal static readonly ConfigEntry fps_scale; internal static Vector3 fps_scale_parse; internal static readonly ConfigEntry watermark_color; internal static Color watermark_color_parse; internal static readonly ConfigEntry watermark_pos; internal static Vector3 watermark_pos_parse; internal static readonly ConfigEntry watermark_text; internal static readonly ConfigEntry interaction_bar_scale; internal static Vector3 interaction_bar_scale_parse; internal static readonly ConfigEntry bioscan_text_hex; internal static readonly ConfigEntry bioscanalarm_text_hex; internal static readonly ConfigEntry buttonprompt_text_hex; internal static readonly ConfigEntry message_text_hex; internal static readonly ConfigEntry interact_timer_bg; internal static Color interact_timer_bg_parse; internal static readonly ConfigEntry interact_timer_fg; internal static Color interact_timer_fg_parse; internal static readonly ConfigEntry interact_rotation; internal static Quaternion interact_rotation_parse; internal static Quaternion interact_rotation_text_cancel_parse; internal static readonly ConfigEntry interaction_vert_align; internal static readonly ConfigEntry interaction_horizontal_align; internal static readonly ConfigEntry interact_text_pos; internal static Vector3 interact_text_pos_parse; internal static readonly ConfigEntry interact_pos; internal static Vector3 interact_pos_parse; internal static readonly ConfigEntry bioscan_bar_scale; internal static Vector3 bioscan_bar_scale_parse; internal static readonly ConfigEntry bioscan_bioscan_text_hex; internal static readonly ConfigEntry bioscan_bioscanalarm_text_hex; internal static readonly ConfigEntry bioscan_bioscanalarm_color; internal static Color bioscan_bioscanalarm_color_parse; internal static readonly ConfigEntry bioscan_bioscan_color; internal static Color bioscan_bioscan_color_parse; internal static readonly ConfigEntry bioscan_timer_bg; internal static Color bioscan_timer_bg_parse; internal static readonly ConfigEntry bioscan_rotation; internal static Quaternion bioscan_rotation_parse; internal static Quaternion bioscan_rotation_text_cancel_parse; internal static readonly ConfigEntry bioscan_vert_align; internal static readonly ConfigEntry bioscan_horizontal_align; internal static readonly ConfigEntry bioscan_text_pos; internal static Vector3 bioscan_text_pos_parse; internal static readonly ConfigEntry bioscan_pos; internal static Vector3 bioscan_pos_parse; internal static float players_aspect_ratio; internal static float inventory_scale_ratio; internal static float gameeventlog_scale_ratio; internal static float wardenintel_scale_ratio; internal static readonly ConfigEntry chat_logs_horizontal_align; internal static readonly ConfigEntry chat_message_pos; internal static Vector3 chat_message_pos_parse; internal static Vector3 chat_message_pos_offset_parse; internal static readonly ConfigEntry typing_box_pos; internal static Vector3 typing_box_pos_parse; internal static readonly ConfigEntry typing_box_rotation; internal static Quaternion typing_box_rotation_parse; internal static readonly ConfigEntry user_input_horizontal_align; internal static readonly ConfigEntry user_input_pos; internal static Vector3 user_input_pos_parse; internal static readonly ConfigEntry typing_box_color; internal static Color typing_box_color_parse; internal static readonly ConfigEntry chat_hidden_alpha; internal static readonly ConfigEntry manual_inventory_melee; internal static Vector3 manual_inventory_melee_parse; internal static readonly ConfigEntry manual_inventory_main; internal static Vector3 manual_inventory_main_parse; internal static readonly ConfigEntry manual_inventory_secondary; internal static Vector3 manual_inventory_secondary_parse; internal static readonly ConfigEntry manual_inventory_class; internal static Vector3 manual_inventory_class_parse; internal static readonly ConfigEntry manual_inventory_pack; internal static Vector3 manual_inventory_pack_parse; internal static readonly ConfigEntry manual_inventory_consumable; internal static Vector3 manual_inventory_consumable_parse; internal static Vector3[] move_weapons_parse; internal static readonly ConfigEntry move_flashlight_pos; internal static Vector3 move_flashlight_pos_parse; internal static readonly ConfigEntry archive_combatindicator_align; internal static readonly ConfigEntry archive_combatindicator_scale; internal static readonly ConfigEntry archive_combatindicator_pos; internal static Vector3 archive_combatindicator_pos_parse; internal static readonly ConfigEntry archive_combatindicator_color; internal static Color archive_combatindicator_color_parse; internal static readonly ConfigEntry aoiyuki_pos_override; internal static readonly ConfigEntry accuracyshow_scale; internal static readonly ConfigEntry damageindicator_scale; internal static readonly ConfigEntry accuracyshow_damageindicator_pos; internal static Vector3 accuracyshow_damageindicator_pos_parse; internal static readonly ConfigEntry accuracyshow_bg_color; internal static Color accuracyshow_bg_color_parse; internal static readonly ConfigEntry damageindicator_bg_color; internal static Color damageindicator_bg_color_parse; internal static readonly ConfigEntry accuracyshow_text_color; internal static Color accuracyshow_text_color_parse; internal static readonly ConfigEntry damageindicator_text_color; internal static Color damageindicator_text_color_parse; internal static readonly ConfigEntry aoiyuki_inverse_order; internal static readonly ConfigEntry aoiyuki_inverse_order_anchor; internal static readonly ConfigEntry aoiyuki_horizontal_build; internal static bool reset_aoiyuki_pos; internal static readonly ConfigEntry scream_cd_toggle; internal static readonly ConfigEntry scream_cd_pos; internal static Vector3 scream_cd_pos_parse; internal static readonly ConfigEntry scream_cd_color; internal static Color scream_cd_color_parse; internal static readonly ConfigEntry scream_cd_alignment; internal static readonly Dictionary backpackitem_to_inventoryslot; static Config() { //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Expected O, but got Unknown //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Expected O, but got Unknown //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown //IL_00f8: Unknown result type (might be due to invalid IL or missing references) //IL_0102: Expected O, but got Unknown //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Expected O, but got Unknown //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_0138: Expected O, but got Unknown //IL_0147: 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_1fd8: Unknown result type (might be due to invalid IL or missing references) //IL_1fe2: Expected O, but got Unknown //IL_2012: Unknown result type (might be due to invalid IL or missing references) //IL_201c: Expected O, but got Unknown //IL_204c: Unknown result type (might be due to invalid IL or missing references) //IL_2056: Expected O, but got Unknown //IL_2088: Unknown result type (might be due to invalid IL or missing references) //IL_2092: Expected O, but got Unknown //IL_20c4: Unknown result type (might be due to invalid IL or missing references) //IL_20ce: Expected O, but got Unknown //IL_2100: Unknown result type (might be due to invalid IL or missing references) //IL_210a: Expected O, but got Unknown //IL_213c: Unknown result type (might be due to invalid IL or missing references) //IL_2146: Expected O, but got Unknown //IL_2178: Unknown result type (might be due to invalid IL or missing references) //IL_2182: Expected O, but got Unknown __runOriginal = true; move_weapons_parse = (Vector3[])(object)new Vector3[0]; reset_aoiyuki_pos = false; backpackitem_to_inventoryslot = new Dictionary { [1] = (InventorySlot)1, [2] = (InventorySlot)2, [3] = (InventorySlot)3, [4] = (InventorySlot)4, [5] = (InventorySlot)5, [10] = (InventorySlot)10 }; ConfigFile configInventory = new ConfigFile(Path.Combine(Paths.ConfigPath, "CustomUI.Inventory.cfg"), true); ConfigFile configHealth = new ConfigFile(Path.Combine(Paths.ConfigPath, "CustomUI.Health.cfg"), true); ConfigFile configInteraction = new ConfigFile(Path.Combine(Paths.ConfigPath, "CustomUI.Interaction.cfg"), true); ConfigFile configObjective = new ConfigFile(Path.Combine(Paths.ConfigPath, "CustomUI.Objective.cfg"), true); ConfigFile configCommunication = new ConfigFile(Path.Combine(Paths.ConfigPath, "CustomUI.Communication.cfg"), true); ConfigFile configFeatures = new ConfigFile(Path.Combine(Paths.ConfigPath, "CustomUI.Features.cfg"), true); ConfigFile configMisc = new ConfigFile(Path.Combine(Paths.ConfigPath, "CustomUI.Misc.cfg"), true); ConfigFile configMods = new ConfigFile(Path.Combine(Paths.ConfigPath, "CustomUI.Mods.cfg"), true); players_aspect_ratio = CellSettingsManager.SettingsData.Video.Resolution.Value.x / CellSettingsManager.SettingsData.Video.Resolution.Value.y; inventory_scale_ratio = 530f + 540f * (players_aspect_ratio - 1f); gameeventlog_scale_ratio = 0f - inventory_scale_ratio; wardenintel_scale_ratio = -370f - 540f * (players_aspect_ratio - 1f); inventory_pos = configInventory.Bind("Inventory", "Inventory Position", "950, 530", "Moves the entire inventory"); inventory_scale = configInventory.Bind("Inventory", "Inventory Scale", 1f, "Further scaling than what the game does (takes into account your inventory scaling in settings)"); slim_ammo_pos = configInventory.Bind("Selected Inventory", "Ammo Percent Position", "197.7, -5", "The position of the ammo percent and infinite ammo"); slim_ammo_scale = configInventory.Bind("Selected Inventory", "Ammo Percent Size", 1f, "The size multiplier of the ammo percent"); slim_infinite_scale = configInventory.Bind("Selected Inventory", "Infinite Ammo Size", 1f, "The size multiplier of the infinite ammo symbol"); slim_bg_small = configInventory.Bind("Slim Inventory", "Small Rectangle", "6F6F6F1F", "The small rectangle rendered on the weapon’s UI when the UI element is small"); slim_ammo_percent = configInventory.Bind("Slim Inventory", "Ammo Percent", "B8B8B84F", "The ammo percent on the weapon’s UI when the UI element is small"); slim_arrow = configInventory.Bind("Slim Inventory", "Arrow UI", "000000C4", "The triangle rendered on the weapon on the UI when the UI element is small"); slim_infinite = configInventory.Bind("Slim Inventory", "Infinite Symbol", "B8B8B84F", "The infinite ammo symbol rendered on the weapon on the UI when the UI element is small"); slim_archetypeName = configInventory.Bind("Slim Inventory", "Simple Name", "B8B8B84F", "The simple name of the weapon on the UI when the UI element is small"); slim_bg_big = configInventory.Bind("Slim Inventory", "Big Rectangle", "6F6F6F1F", "The rectangle on the weapon on the UI when the UI element is small"); slim_slim_ammo_pos = configInventory.Bind("Slim Inventory", "Ammo Percent Position", "-4.4, -15", "The position of the ammo percent and infinite ammo"); slim_slim_ammo_scale = configInventory.Bind("Slim Inventory", "Ammo Percent Size", 1f, "The size multiplier of the ammo percent"); slim_slim_infinite_scale = configInventory.Bind("Slim Inventory", "Infinite Ammo Size", 1f, "The size multiplier of the infinite ammo symbol"); selected_bg_full_arrow = configInventory.Bind("Selected Inventory", "Equipped Arrow UI", "6F6F6F1F", "The triangle rendered on the weapon on the UI"); selected_bg_full_bg_full = configInventory.Bind("Selected Inventory", "Equipped Big Rectangle", "6F6F6F1F", "The rectangle on the weapon on the UI"); selected_info_content_archetypeName = configInventory.Bind("Selected Inventory", "Equipped Simple Name", "B8B8B84F", "The simple name of the weapon on the UI"); selected_info_content_detailedname = configInventory.Bind("Selected Inventory", "Equipped Detailed Name", "B8B8B84F", "The detailed name of the weapon on the UI"); selected_info_content_ammoclip = configInventory.Bind("Selected Inventory", "Equipped Mag And Clip", "B8B8B84F", "The ammo of the weapon on the UI"); selected_info_content_icon = configInventory.Bind("Selected Inventory", "Equipped Icon", "B8B8B84F", "The icon of the weapon on the UI (a compatibility with Weapon Icon mods)"); selected_info_content_ammoclip = configInventory.Bind("Selected Inventory", "Equipped Mag And Clip", "B8B8B84F", "The ammo of the weapon on the UI"); selected_slim_infinite = configInventory.Bind("Selected Inventory", "Equipped Infinite Symbol", "B8B8B84F", "The Infinite Ammo Symbol on the right of the weapon on the UI"); selected_slim_bg_slim = configInventory.Bind("Selected Inventory", "Equipped Small Rectangle", "6F6F6F1F", "The small rectangle on the right of the weapon on the UI"); selected_slim_ammo_percent = configInventory.Bind("Selected Inventory", "Equipped Ammo Percentage", "B8B8B84F", "The percentage in the small rectangle on the right of the weapon on the UI"); empty_arrow = configInventory.Bind("Empty Inventory", "Arrow", "000000C4", "The arrow in the small rectangle when the slot is empty"); empty_slim_bg = configInventory.Bind("Empty Inventory", "Small Rectangle", "6F6F6F1F", "The small rectangle on the right when the slot is empty"); empty_long_bg = configInventory.Bind("Empty Inventory", "Big Rectangle", "6F6F6F1F", "The big rectangle on the left when the slot is empty"); light_enabled = configInventory.Bind("Flashlight", "Flashlight On", "B8B8B84F", "The icon color of the flashlight being enabled"); light_disabled = configInventory.Bind("Flashlight", "Flashlight Off", "B8B8B84F", "The icon color of the flashlight being disabled"); light_bg = configInventory.Bind("Flashlight", "Background", "6F6F6F1F", "The square encapsulating the flashlight icon"); status_pos = configHealth.Bind("Player Healthbar", "Player Status Position", "0, -500", "The position of the Player Health, Infection..."); health_text_pos = configHealth.Bind("Player Healthbar", "Health Text Position", "0, 0", "The position of the text for the player's health"); health_text_scale = configHealth.Bind("Player Healthbar", "Health Text Scale", 1f, "The size multiplier of the player's health text"); health_text_alignment = configHealth.Bind("Player Healthbar", "Health Text Alignment", (TextAlignmentOptions)514, "The text alignment of the health text"); health_good = configHealth.Bind("Player Healthbar", "Health Good Color", "FFFFFF33", "The color of health elements when high health"); health_bad = configHealth.Bind("Player Healthbar", "Health Bad Color", "FF0000B3", "The color of health elements when low health"); health_bad_pulse = configHealth.Bind("Player Healthbar", "Health Bad Color Pulse", "FF0000FF", "The color of health elements when the the player is under 14% hp (cycles between this one and Health Bad Color)"); health_melee_buff = configHealth.Bind("Player Healthbar", "Health Melee Buffed Color", "DBBD31BA", "The color of health elements when the melee buff is active"); right_health_rot = configHealth.Bind("Player Healthbar", "Right Healthbar Rotation", 0f, "The Rotation of the right healthbar element"); right_health_pos = configHealth.Bind("Player Healthbar", "Right Healthbar Position", "15, 0", "The position of the right healthbar element"); right_health_scale = configHealth.Bind("Player Healthbar", "Right Healthbar Scale", "1, 1", "The size multiplier of the length and height of the Right healthbar element"); left_health_rot = configHealth.Bind("Player Healthbar", "left Healthbar Rotation", 180f, "The Rotation of the left healthbar element"); left_health_pos = configHealth.Bind("Player Healthbar", "left Healthbar Position", "-15, 0", "The position of the left healthbar element"); left_health_scale = configHealth.Bind("Player Healthbar", "left Healthbar Scale", "1, 1", "The size multiplier of the length and height of the left healthbar element"); pulsing_warning_pos = configHealth.Bind("Warning Flash", "Pulsing Warning Position", "0, -1.13", "The position of the Flashing / Pulsing on the healthbar when the player is out of stamina, health or too infected"); pulsing_warning_scale = configHealth.Bind("Warning Flash", "Pulsing Warning Scale", 1f, "The size multiplier of the flash on the healthbar when the player is out of stamina, health or too infected"); health_warning_bright = configHealth.Bind("Warning Flash", "Low Health Color Bright", "C84B070D", "The color of the flash on the healthbar when the player is under 14% hp (or above 86% infect) (cycles between this one and dark)"); health_warning_dark = configHealth.Bind("Warning Flash", "Low Health Color Dark", "00000000", "The color of the flash on the healthbar when the player is under 14% hp (or above 86% infect) (cycles between this one and bright)"); stamina_warning_bright = configHealth.Bind("Warning Flash", "Low Stam Color Bright", "C8980D0D", "The color of the flash on the healthbar when the player is under 10% stamina (cycles between this one and dark)"); stamina_warning_dark = configHealth.Bind("Warning Flash", "Low Stam Color Dark", "00000000", "The color of the flash on the healthbar when the player is under 10% stamina (cycles between this one and bright)"); stamina_text_color = configHealth.Bind("Stamina", "Stamina Text Color", "FFFFFF33", "The color of the text on the UI for Stamina / BPM"); stamina_pos = configHealth.Bind("Stamina", "Stamina Position", "0.4, -5.86", "The position of the text on the UI for Stamina / BPM"); stamina_scale = configHealth.Bind("Stamina", "Stamina Scale", 1f, "The size multiplier of the text on the UI for Stamina / BPM"); stamina_align_text = configHealth.Bind("Stamina", "Stamina Text Alignment", (TextAlignmentOptions)513, "The text alignment of the stamina text"); stamina_low_health_color = configHealth.Bind("Stamina", "Health Color Low Stam", "FFBF00B5", "The color of the healthbars when stamina is low"); pulse_low = configHealth.Bind("Stamina", "Heart Low Pulse Color", "81EABB66", "The color of the heart on the UI when high stamina"); pulse_mid = configHealth.Bind("Stamina", "Heart Mid Pulse Color", "FFA40466", "The color of the heart on the UI when half stamina"); pulse_high = configHealth.Bind("Stamina", "Heart High Pulse Color", "DD302966", "The color of the heart on the UI when low stamina"); infection_text_pos = configHealth.Bind("Infection", "Infection Text Position", "0, 0", "The position of the text for the player's infection"); infection_text_scale = configHealth.Bind("Infection", "Infection Text Scale", 1f, "The size multiplier of the player's infection text"); infection_high = configHealth.Bind("Infection", "High Infection Color", "00FFA8D6", "The color of infection elements when highly infected"); infection_low = configHealth.Bind("Infection", "Low Infection Color", "7FA4A085", "The color of infection elements when slightly infected"); infection_text_alignment = configHealth.Bind("Infection", "infection Text Alignment", (TextAlignmentOptions)514, "The text alignment of the infection text"); right_infection_rot = configHealth.Bind("Infection", "Right infectionbar Rotation", 0f, "The Rotation of the right infectionbar element"); right_infection_pos = configHealth.Bind("Infection", "Right infectionbar Position", "25, 0", "The position of the right infectionbar element"); right_infection_scale = configHealth.Bind("Infection", "Right infectionbar Scale", "1, 1", "The size multiplier of the length and height of the Right infectionbar element"); left_infection_rot = configHealth.Bind("Infection", "left infectionbar Rotation", 180f, "The Rotation of the left infectionbar element"); left_infection_pos = configHealth.Bind("Infection", "left infectionbar Position", "-25, 0", "The position of the left infectionbar element"); left_infection_scale = configHealth.Bind("Infection", "left infectionbar Scale", "1, 1", "The size multiplier of the length and height of the left infectionbar element"); booster_pos = configHealth.Bind("Boosters", "Booster Position", "0, 19.37", "The position of the boosters"); no_booster = configHealth.Bind("Boosters", "No Boosters", false, "Removes Booster In game UI Element"); booster_static = configHealth.Bind("Boosters", "Static Boosters", false, "Prevents the boosters from moving when too infected"); interact_pos = configInteraction.Bind("Interaction", "Interact Position", "0, -300", "The position of the interact elements"); bioscan_text_hex = configInteraction.Bind("Interaction", "Bioscan Text Color", "1DA9C5", "The color of the text in the interaction text describing a bioscan with no alarm"); bioscanalarm_text_hex = configInteraction.Bind("Interaction", "Bioscan Alarm Text Color", "FF0000", "The color of the text in the interaction text describing a bioscan with an alarm"); buttonprompt_text_hex = configInteraction.Bind("Interaction", "Normal Text Color", "B2A151", "The color of the normal text in the interaction text"); message_text_hex = configInteraction.Bind("Interaction", "Message Text Color", "D0670F", "Unused, kept in case a modded rundown uses it"); interaction_bar_scale = configInteraction.Bind("Interaction", "Interact Bar Size", "650, 3", "The length and height of the interaction bar"); interact_timer_fg = configInteraction.Bind("Interaction", "Interact Bar Fill Color", "B2A151B5", "The color of interaction bar that fills when interacting"); interact_timer_bg = configInteraction.Bind("Interaction", "Interact Bar Background Color", "3E3E3E78", "The color of the interaction bar in the background"); interact_rotation = configInteraction.Bind("Interaction", "Interact Bar Rotation", 0f, "The Rotation of the Interaction bar"); interaction_vert_align = configInteraction.Bind("Interaction", "Text Vertical Align", (TextAlignmentOptions)258, "Where the interact text should be vertically aligned"); interaction_horizontal_align = configInteraction.Bind("Interaction", "Text Horizontal Align", (HorizontalAlignmentOptions)2, "where the interact text should be horizontally aligned"); interact_text_pos = configInteraction.Bind("Interaction", "Text Position", "0, -45", "The position of the interact text on the hud"); bioscan_pos = configInteraction.Bind("Bioscan", "Bioscan Position", "0, 300", "The position of the bioscan elements"); bioscan_bioscan_text_hex = configInteraction.Bind("Bioscan", "Bioscan Text Color", "1DA9C5", "The color of the text in the bioscan text describing a bioscan with no alarm"); bioscan_bioscan_color = configInteraction.Bind("Bioscan", "Bioscan Bar Fill Color", "1DA9C5B3", "The color of bioscan bar that fills when scanning"); bioscan_bioscanalarm_text_hex = configInteraction.Bind("Bioscan", "Bioscan Alarm Text Color", "FF0000", "The color of the text in the bioscan text describing a bioscan with an alarm"); bioscan_bioscanalarm_color = configInteraction.Bind("Bioscan", "Bioscan Alarm Bar Fill Color", "FF0000FF", "The color of bioscan bar that fills when scanning in an alarm scan"); bioscan_bar_scale = configInteraction.Bind("Bioscan", "Bioscan Bar Size", "650, 3", "The length and height of the bioscan bar"); bioscan_timer_bg = configInteraction.Bind("Bioscan", "Bioscan Bar Background Color", "3E3E3E78", "The color of the bioscan bar in the background"); bioscan_rotation = configInteraction.Bind("Bioscan", "Bioscan Bar Rotation", 0f, "The Rotation of the bioscan bar"); bioscan_vert_align = configInteraction.Bind("Bioscan", "Text Vertical Align", (TextAlignmentOptions)258, "Where the bioscan text should be vertically aligned"); bioscan_horizontal_align = configInteraction.Bind("Bioscan", "Text Horizontal Align", (HorizontalAlignmentOptions)2, "where the bioscan text should be horizontally aligned"); bioscan_text_pos = configInteraction.Bind("Bioscan", "Text Position", "0, -45", "The position of the bioscan text on the hud"); obj_pos = configObjective.Bind("Objective", "Objective Position", gameeventlog_scale_ratio + ", 530", "The position of the objective"); obj_header_text = configObjective.Bind("Objective", "Map Name Text Color", "CACACA96", "The color of the non color tagged text for the rundown and mission name"); obj_header_bg = configObjective.Bind("Objective", "Map Name Background Color", "8C8C8C29", "The color of the text's background for the rundown and mission name"); obj_progression_header_text = configObjective.Bind("Objective", "Progression Header Color", "FFFFFFA6", "The color of the non color tagged text for progression header"); obj_progression_subtext_text = configObjective.Bind("Objective", "Progression Subtext Color", "FFFFFFA6", "The color of the text's background for progression subtext"); obj_item_text = configObjective.Bind("Objective Item", "Obj Item Text Color", "CACACA96", "The color of the non color tagged text for the Objective Items"); obj_item_bg = configObjective.Bind("Objective Item", "Obj Item Background Color", "8C8C8C29", "The color of the text's background for the Objective Items"); wrdn_intel_pos = configObjective.Bind("Warden Intel", "Warden Intel Position", wardenintel_scale_ratio + ", 0", "The position of the warden intel"); wrdn_intel_color = configObjective.Bind("Warden Intel", "Warden Intel Color", "ABABABFF", "The color of the non color coded text for the Warden Intel"); wrdn_intel_override_red_text = configObjective.Bind("Warden Intel", "Override Color Code", false, "Removes the color code that forces the warden intel to be red"); chat_message_pos = configCommunication.Bind("Chat", "Chat Position", "4, 25.1", "The position of the chat element"); chat_logs_horizontal_align = configCommunication.Bind("Chat", "Chat Logs Alignment", (HorizontalAlignmentOptions)1, "The text alignment of the messages sent in chat"); user_input_horizontal_align = configCommunication.Bind("Chat", "User Input Alignment", (HorizontalAlignmentOptions)1, "The text alignment of the text the user is typing"); user_input_pos = configCommunication.Bind("Chat", "User Input Position", "3, 20", "The position of the text the user is typing"); typing_box_color = configCommunication.Bind("Chat", "ChatBox Color", "FF0D0014", "The color of the Chatbox when the user is typing"); typing_box_pos = configCommunication.Bind("Chat", "ChatBox Position", "0, 10", "The position of the red Chatbox"); typing_box_rotation = configCommunication.Bind("Chat", "ChatBox Rotation", 180f, "The Rotation of the Chatbox"); chat_hidden_alpha = configCommunication.Bind("Chat", "Chat Timeout Alpha", 0.2f, "The Alpha (visibility 0-1) of the Chat once inactive"); comms_pos = configCommunication.Bind("Communication Menu", "Communication Menu Position", "400, 0", "The position of the communication menu"); comms_scale = configCommunication.Bind("Communication Menu", "Communication Menu Scale", 1f, "The size multiplier of the communication menu"); subtitle_pos = configCommunication.Bind("Subtitle", "Subtitle Position", "0, -410", "The position of the boosters"); subtitle_color = configCommunication.Bind("Subtitle", "Subtitle Color", "FFFFFFFF", "The position of the left infectionbar element"); compass_pos = configMisc.Bind("Compass", "Compass Position", "0, 530", "The position of the compass"); compass_length = configMisc.Bind("Compass", "Compass Length", 700f, "The length of the compass"); compass_line_color = configMisc.Bind("Compass", "Compass Lines Color", "FFFFFF99", "The color of the lines above the numbers on the compass"); compass_letter_color = configMisc.Bind("Compass", "Compass Letters Color", "E74E004F", "The color of the letters on the compass"); compass_number_color = configMisc.Bind("Compass", "Compass Numbers Color", "FFFFFF4F", "The color of the numbers on the compass"); compass_arrow_color = configMisc.Bind("Compass", "Compass Arrow Color", "FFFFFF4F", "The color of the arrow/bottom line on the compass"); mission_timer_pos = configMisc.Bind("Mission Timer Countdown", "Mission Timer Position", "0, 460", "The position of the Mission Timer and Text"); mission_timer_color = configMisc.Bind("Mission Timer Countdown", "Mission Timer Title Color", "FFFFFFAC", "The color of the Mission Timer's non color coded text"); skip_pos = configMisc.Bind("SkipText", "SkipText Position", inventory_scale_ratio + ", -490", "The position of the cutscene skip element"); skip_text_color = configMisc.Bind("SkipText", "SkipText Text Color", "FFFFFF66", "The color of the text of the skip element"); skip_bg_color = configMisc.Bind("SkipText", "SkipText Progression Color", "4848481C", "The color of the progress background of the skip element"); fps_pos = configMisc.Bind("FPS", "FPS Position", "0, 35.6", "The position of the FPS counter"); fps_color = configMisc.Bind("FPS", "FPS Color", "B4B4B478", "The color of the FPS counter"); fps_scale = configMisc.Bind("FPS", "FPS Scale", 1f, "The size multiplier of the FPS counter"); watermark_pos = configMisc.Bind("Watermark", "Watermark Position", "0, 0", "The position of the watermark"); watermark_color = configMisc.Bind("Watermark", "Watermark Color", "B4B4B478", "The color of the watermark"); watermark_text = configMisc.Bind("Watermark", "Watermark Text", "", "Can type almost anything you want as your watermark (vanilla if blank)"); recolor_melee_infinite = configFeatures.Bind("Inventory", "Recolor Melee’s Infinite", false, "This feature overrides the constantly changing color of the melee’s infinite symbol to make it a static color"); inventory_invert = configFeatures.Bind("Inventory", "Invert Inventory Order", false, "Makes the inventory build from bottom to top"); inventory_horizontal = configFeatures.Bind("Inventory", "Build Inventory Horizontally", false, "Makes the inventory build horizontally from right to left"); inventory_invert_anchor = configFeatures.Bind("Inventory", "Invert Inventory Direction", false, "Makes the inventory build from the bottom left instead of from the top right"); inventory_remove_empty = configFeatures.Bind("Inventory", "Remove Empty Box", false, "Makes the empty inventory slot not show up and not affect inventory building"); inventory_horizontal_offset = configFeatures.Bind("Inventory", "Inventory Horizontal Spacing", 240f, "How spaced each Inventory element are spaced out in the horizontal inventory"); inventory_vertical_offset = configFeatures.Bind("Inventory", "Inventory Vertical Spacing", 0f, "How spaced each Inventory element are spaced out in the normal inventory"); move_each_inventory_slot = configFeatures.Bind("Manual Inventory", "Manually Move Inventory Slots", false, "Allows the user to move each inventory element instead of having it build together "); move_flashlight = configFeatures.Bind("Manual Inventory", "Manually Move Flashlight", false, "Allows the user to move the Flashlight element "); manual_inventory_melee = configFeatures.Bind("Manual Inventory", "Melee Position", "0, 0", "The position of the melee hud element when Manually Move Inventory Slots is on"); manual_inventory_main = configFeatures.Bind("Manual Inventory", "Main Weapon Position", "0, -130", "The position of the main hud element when Manually Move Inventory Slots is on"); manual_inventory_secondary = configFeatures.Bind("Manual Inventory", "Secondary Weapon Position", "0, -260", "The position of the secondary hud element when Manually Move Inventory Slots is on"); manual_inventory_class = configFeatures.Bind("Manual Inventory", "Tool Position", "0, -390", "The position of the class hud element when Manually Move Inventory Slots is on"); manual_inventory_pack = configFeatures.Bind("Manual Inventory", "Ressource Pack Position", "0, -520", "The position of the pack hud element when Manually Move Inventory Slots is on"); manual_inventory_consumable = configFeatures.Bind("Manual Inventory", "Consumable Position", "0, -650", "The position of the consumable hud element when Manually Move Inventory Slots is on"); move_flashlight_pos = configFeatures.Bind("Manual Inventory", "Flashlight Position", "0, -780", "The position of the flashlight hud element when Manually Move Flashlight is on"); inventory_permaselect = configFeatures.Bind("Perma-Select", "Perma-Selected Toggle", false, "All Inventory Items will be in the selected state (Clip and Mag will always be shown)"); recolor_selected = configFeatures.Bind("Perma-Select", "Recolor Selected Weapon", false, "Recolors the gear that is currently equipped (meant to be used with Perma-Selected)"); selected_selected_bg_full_arrow = configFeatures.Bind("Perma-Select", "Equipped Arrow UI", "7DF9FF10", "The triangle rendered on the selected weapon on the UI"); selected_selected_bg_full_bg_full = configFeatures.Bind("Perma-Select", "Equipped Big Rectangle", "7DF9FF10", "The rectangle on the selected weapon on the UI"); selected_selected_info_content_archetypeName = configFeatures.Bind("Perma-Select", "Equipped Simple Name", "7DF9FF8F", "The simple name of the selected weapon on the UI"); selected_selected_info_content_detailedname = configFeatures.Bind("Perma-Select", "Equipped Detailed Name", "7DF9FF8F", "The detailed name of the selected weapon on the UI"); selected_selected_info_content_ammoclip = configFeatures.Bind("Perma-Select", "Equipped Mag And Clip", "7DF9FF8F", "The ammo of the selected weapon on the UI"); selected_selected_info_content_icon = configFeatures.Bind("Perma-Select", "Equipped Icon", "7DF9FF10", "The icon of the selected weapon on the UI (a compatibility with Weapon Icon mods)"); selected_selected_slim_infinite = configFeatures.Bind("Perma-Select", "Equipped Infinite Symbol", "7DF9FF8F", "The Infinite Ammo Symbol on the right of the selected weapon on the UI"); selected_selected_slim_bg_slim = configFeatures.Bind("Perma-Select", "Equipped Small Rectangle", "7DF9FF10", "The small rectangle on the right of the selected weapon on the UI"); selected_selected_slim_ammo_percent = configFeatures.Bind("Perma-Select", "Equipped Ammo Percentage", "7DF9FF8F", "The percentage in the small rectangle on the right of the selected weapon on the UI"); LowAmmo_patch = configFeatures.Bind("LowAmmo", "Enable LowAmmo", false, "This feature makes the UI elements change color once the weapon is under a certain amount of ammo in the clip"); LowAmmo_treshold = configFeatures.Bind("LowAmmo", "LowAmmo Treshold", 35f, "What Percent of ammo left in the clip should trigger LowAmmo Colors"); lowammo_unselected_slim_bg_small = configFeatures.Bind("LowAmmo", "Slim Small Rectangle", "FF000010", "The small rectangle rendered on the weapon’s UI when the UI element is small and low on ammo"); lowammo_unselected_slim_ammo_percent = configFeatures.Bind("LowAmmo", "Slim Ammo Percent", "FFAAAA8F", "The ammo percent on the weapon’s UI when the UI element is small and low on ammo"); lowammo_unselected_slim_arrow = configFeatures.Bind("LowAmmo", "Slim Arrow UI", "FF000010", "The triangle rendered on the weapon on the UI when the UI element is small and low on ammo"); lowammo_unselected_slim_archetypeName = configFeatures.Bind("LowAmmo", "Slim Simple Name", "FFAAAA8F", "The simple name of the weapon on the UI when the UI element is small and low on ammo"); lowammo_unselected_slim_bg_big = configFeatures.Bind("LowAmmo", "Slim Big Rectangle", "FF000010", "The rectangle on the weapon on the UI when the UI element is small and low on ammo"); lowammo_unselected_selected_bg_full_arrow = configFeatures.Bind("LowAmmo", "Equipped Arrow UI", "FF000010", "The triangle rendered on the weapon on the UI when low on ammo"); lowammo_unselected_selected_bg_full_bg_full = configFeatures.Bind("LowAmmo", "Equipped Big Rectangle", "FF000010", "The rectangle on the weapon on the UI when low on ammo"); lowammo_unselected_selected_info_content_archetypeName = configFeatures.Bind("LowAmmo", "Equipped Simple Name", "FFAAAA8F", "The simple name of the weapon on the UI when low on ammo"); lowammo_unselected_selected_info_content_detailedname = configFeatures.Bind("LowAmmo", "Equipped Detailed Name", "FFAAAA8F", "The detailed name of the weapon on the UI when low on ammo"); lowammo_unselected_selected_info_content_ammoclip = configFeatures.Bind("LowAmmo", "Equipped Mag And Clip", "FFAAAA8F", "The ammo of the weapon on the UI when low on ammo"); lowammo_unselected_selected_info_content_icon = configFeatures.Bind("LowAmmo", "Equipped Icon", "FF000010", "The icon of the weapon on the UI when low on ammo (a compatibility with Weapon Icon mods)"); lowammo_unselected_selected_slim_bg_slim = configFeatures.Bind("LowAmmo", "Equipped Small Rectangle", "FF000010", "The small rectangle on the right of the weapon on the UI when low on ammo"); lowammo_unselected_selected_slim_ammo_percent = configFeatures.Bind("LowAmmo", "Equipped Ammo Percentage", "FFAAAA8F", "The percentage in the small rectangle on the right of the weapon on the UI when low on ammo"); lowammo_selected_selected_bg_full_arrow = configFeatures.Bind("LowAmmo and Perma-Select", "Equipped Arrow UI", "6F0000FF", "The triangle rendered on the selected weapon on the UI when low on ammo"); lowammo_selected_selected_bg_full_bg_full = configFeatures.Bind("LowAmmo and Perma-Select", "Equipped Big Rectangle", "6F0000FF", "The rectangle on the selected weapon on the UI when low on ammo"); lowammo_selected_selected_info_content_archetypeName = configFeatures.Bind("LowAmmo and Perma-Select", "Equipped Simple Name", "FFAAAA8F", "The simple name of the selected weapon on the UI when low on ammo"); lowammo_selected_selected_info_content_detailedname = configFeatures.Bind("LowAmmo and Perma-Select", "Equipped Detailed Name", "FFAAAA8F", "The detailed name of the selected weapon on the UI when low on ammo"); lowammo_selected_selected_info_content_ammoclip = configFeatures.Bind("LowAmmo and Perma-Select", "Equipped Mag And Clip", "FFAAAA8F", "The ammo of the selected weapon on the UI when low on ammo"); lowammo_selected_selected_info_content_icon = configFeatures.Bind("LowAmmo and Perma-Select", "Equipped Icon", "6F0000FF", "The icon of the selected weapon on the UI when low on ammo (a compatibility with Weapon Icon mods)"); lowammo_selected_selected_slim_bg_slim = configFeatures.Bind("LowAmmo and Perma-Select", "Equipped Small Rectangle", "6F0000FF", "The small rectangle on the right of the selected weapon on the UI when low on ammo"); lowammo_selected_selected_slim_ammo_percent = configFeatures.Bind("LowAmmo and Perma-Select", "Equipped Ammo Percentage", "FFAAAA8F", "The percentage in the small rectangle on the right of the selected weapon on the UI when low on ammo"); remove_helper = configFeatures.Bind("Chat", "Remove Chat Helper", false, "Removes the bottom text of the chat element with the keybinds"); move_chat_open = configFeatures.Bind("Chat", "Move Chat When Closed", chat_message_vertical.Disabled, "This feature makes the chat logs go down when not typing (more compact)"); inverse_chat_order = configFeatures.Bind("Chat", "Inverse Chat Order", false, "This feature makes the chat logs go from oldest -> most recent to most recent -> oldest"); inverse_chat_anchor = configFeatures.Bind("Chat", "Inverse Chat Anchor", false, "This feature makes the chat logs build from top to bottom (intended for putting the chat at the top)"); remove_chat_underscore = configFeatures.Bind("Chat", "Remove Chat Underscore", false, "Removes the blinking underscore when typing"); confine_archetypename = configFeatures.Bind("Misc", "Confine Inventory ArchetypeName", false, "This feature makes the archetypeName’s text size stay within the left rectangle’s box"); no_percent = configFeatures.Bind("Misc", "Remove Health Percent", false, "Removes the Health and Infection Percent symbols"); no_whitebox_flash = configFeatures.Bind("Misc", "Remove White Box Flash", false, "Removes the white box that flashes on scan or warden intel apparition"); minimal_ui_enabled = configFeatures.Bind("Misc", "Enable Minimal UI", false, "This feature makes the objective and compass dissapear if the user is not pressing the button to make them appear"); minimal_ui_key = configFeatures.Bind("Misc", "Minimal UI KeyBind", (KeyCode)9, "The Key to press (not physical keys for those who know)"); minimal_ui_speed = configFeatures.Bind("Misc", "Fade In Time", 1f, "How long until the objective and compass elements appear fully"); minimal_ui_speed_disable = configFeatures.Bind("Misc", "Fade Out Time", 1f, "How long until the objective and compass elements disappear fully"); scream_cd_toggle = configFeatures.Bind("Scream Cooldown", "Scream Cooldown Enabled", false, "Adds a scream cooldown text on the UI"); scream_cd_pos = configFeatures.Bind("Scream Cooldown", "Position", "300, -5", "The text's position on the HUD"); scream_cd_alignment = configFeatures.Bind("Scream Cooldown", "Alignment", (TextAlignmentOptions)516, "The text's alignment of the scream cd"); scream_cd_color = configFeatures.Bind("Scream Cooldown", "Color", "B8B8B84F", "The text's color"); archive_combatindicator_pos = configMods.Bind("Archive Combat Indicator", "Position", "245, 27.5", "The position of the combat indicator of archive"); archive_combatindicator_color = configMods.Bind("Archive Combat Indicator", "Text Color", "FFFFFF33", "The position of the combat indicator of archive"); archive_combatindicator_scale = configMods.Bind("Archive Combat Indicator", "Text Scale", 0.625f, "The position of the combat indicator of archive"); archive_combatindicator_align = configMods.Bind("Archive Combat Indicator", "Text Alignment", (TextAlignmentOptions)516, "The position of the combat indicator of archive"); aoiyuki_pos_override = configMods.Bind("AoiYuki Indicators", "Override Indicator Positions", false, "Allows the user to override the position of AccuracyShow and DamageIndicator"); aoiyuki_inverse_order = configMods.Bind("AoiYuki Indicators", "Inverse Indicator Order", false, "Allows the user to invert the position of AccuracyShow and DamageIndicator"); aoiyuki_inverse_order_anchor = configMods.Bind("AoiYuki Indicators", "Inverse Indicator Anchor", false, "Allows the user to invert the anchor of AccuracyShow and DamageIndicator"); aoiyuki_horizontal_build = configMods.Bind("AoiYuki Indicators", "Horizontal Indicators", false, "Makes the HUD elements for AccuracyShow and DamageIndicator build horizontally"); accuracyshow_damageindicator_pos = configMods.Bind("AoiYuki Indicators", "Indicator Custom Position", "0, 0", "The position of the indicators of AccuracyShow and or DamageIndicator"); accuracyshow_scale = configMods.Bind("AoiYuki Indicators", "Indicator Scale", 1f, "The size multiplier of the indicators of AccuracyShow and DamageIndicator"); accuracyshow_bg_color = configMods.Bind("AoiYuki Indicators", "AccuracyShow BG Color", "6F6F6F1F", "The background rectangle's color of the accuracy indicator of AccuracyShow"); accuracyshow_text_color = configMods.Bind("AoiYuki Indicators", "AccuracyShow Text Color", "B8B8B84F", "The texts color of the accuracy indicator of AccuracyShow"); damageindicator_bg_color = configMods.Bind("AoiYuki Indicators", "DamageIndicator BG Color", "6F6F6F1F", "The background rectangle's color of the damage indicator of DamageIndicator"); damageindicator_text_color = configMods.Bind("AoiYuki Indicators", "DamageIndicator Text Color", "B8B8B84F", "The texts color of the damage indicator of DamageIndicator"); ParseConfigEntriesInventory(); ParseConfigEntriesHealth(); ParseConfigEntriesObjectives(); ParseConfigEntriesCommunication(); ParseConfigEntriesInteract(); ParseConfigEntriesMisc(); ParseConfigEntriesFeatures(); ParseConfigEntriesMods(); LiveEditListener val = LiveEdit.CreateListener(Path.GetDirectoryName(configInventory.ConfigFilePath), Path.GetFileName(configInventory.ConfigFilePath), false); val.FileChanged += (LiveEditEventHandler)delegate { try { configInventory.Reload(); } catch (IOException) { configInventory.Reload(); } ParseConfigEntriesInventory(); PlayerGuiLayer playerLayer5 = GuiManager.PlayerLayer; PUI_Inventory inventory2 = playerLayer5.Inventory; Patch.move_all(GuiManager.Current); Patch.inventory_order(ref __runOriginal, inventory2); Patch.inv_scale(GuiManager.PlayerLayer); Patch.flashlight_icon(inventory2); Enumerator enumerator4 = inventory2.m_inventorySlots.Values.GetEnumerator(); while (enumerator4.MoveNext()) { PUI_InventoryItem current4 = enumerator4.Current; Patch.MyOtherPatch(current4); if (recolor_selected.Value || LowAmmo_patch.Value) { Patch.low_ammo(current4); } } if (LowAmmo_patch.Value) { Patch.reset_ammo_max(GameStateManager.Current, (eGameStateName)7); } }; LiveEditListener val2 = LiveEdit.CreateListener(Path.GetDirectoryName(configHealth.ConfigFilePath), Path.GetFileName(configHealth.ConfigFilePath), false); val2.FileChanged += (LiveEditEventHandler)delegate { try { configHealth.Reload(); } catch (IOException) { configHealth.Reload(); } ParseConfigEntriesHealth(); PlayerGuiLayer playerLayer4 = GuiManager.PlayerLayer; PUI_LocalPlayerStatus playerStatus2 = playerLayer4.m_playerStatus; Patch.health_text(playerStatus2); Patch.infection_text(playerStatus2); Patch.health_pos(playerStatus2); Patch.lerp_fixes(playerStatus2); }; LiveEditListener val3 = LiveEdit.CreateListener(Path.GetDirectoryName(configInteraction.ConfigFilePath), Path.GetFileName(configInteraction.ConfigFilePath), false); val3.FileChanged += (LiveEditEventHandler)delegate { try { configInteraction.Reload(); } catch (IOException) { configInteraction.Reload(); } ParseConfigEntriesInteract(); PUI_InteractionPrompt interactPrompt = GuiManager.InteractionLayer.m_interactPrompt; PUI_InteractionPrompt message = GuiManager.InteractionLayer.m_message; Patch.interaction_button(interactPrompt); Patch.interaction_button(message); Patch.interaction(interactPrompt); Patch.interaction_move_all(interactPrompt); Patch.interaction_move_all(message); }; LiveEditListener val4 = LiveEdit.CreateListener(Path.GetDirectoryName(configObjective.ConfigFilePath), Path.GetFileName(configObjective.ConfigFilePath), false); val4.FileChanged += (LiveEditEventHandler)delegate { try { configObjective.Reload(); } catch (IOException) { configObjective.Reload(); } ParseConfigEntriesObjectives(); PUI_GameObjectives wardenObjective2 = GuiManager.PlayerLayer.m_wardenObjective; Patch.warden_objective(wardenObjective2); Patch.warden_description(wardenObjective2); Patch.warden_intel(GuiManager.PlayerLayer.m_wardenIntel); }; LiveEditListener val5 = LiveEdit.CreateListener(Path.GetDirectoryName(configCommunication.ConfigFilePath), Path.GetFileName(configCommunication.ConfigFilePath), false); val5.FileChanged += (LiveEditEventHandler)delegate { try { configCommunication.Reload(); } catch (IOException) { configCommunication.Reload(); } ParseConfigEntriesCommunication(); PlayerGuiLayer playerLayer3 = GuiManager.PlayerLayer; PUI_GameEventLog gameEventLog2 = playerLayer3.m_gameEventLog; Patch.chat_helper(gameEventLog2); Patch.reverse_chat(ref __runOriginal, gameEventLog2); Patch.moving_chat(gameEventLog2); Patch.subtitles(playerLayer3.m_subtitles); Patch.q_menu(((Component)((GuiLayer)playerLayer3).CustomComponentRoot.FindChild("PUI_CommunicationMenu(Clone)")).GetComponent()); }; LiveEditListener val6 = LiveEdit.CreateListener(Path.GetDirectoryName(configMisc.ConfigFilePath), Path.GetFileName(configMisc.ConfigFilePath), false); val6.FileChanged += (LiveEditEventHandler)delegate { try { configMisc.Reload(); } catch (IOException) { configMisc.Reload(); } ParseConfigEntriesMisc(); PlayerGuiLayer playerLayer2 = GuiManager.PlayerLayer; Patch.compASS(playerLayer2.m_compass); Patch.skip_indicator(playerLayer2.m_skipText); Patch.mission_timer(playerLayer2.m_objectiveTimer); PUI_Watermark watermark = GuiManager.WatermarkLayer.m_watermark; Patch.watermark(watermark); Patch.watermark_text(watermark); }; LiveEditListener val7 = LiveEdit.CreateListener(Path.GetDirectoryName(configFeatures.ConfigFilePath), Path.GetFileName(configFeatures.ConfigFilePath), false); val7.FileChanged += (LiveEditEventHandler)delegate { try { configFeatures.Reload(); } catch (IOException) { configFeatures.Reload(); } ParseConfigEntriesFeatures(); PlayerGuiLayer playerLayer = GuiManager.PlayerLayer; PUI_Inventory inventory = playerLayer.Inventory; Patch.move_all(GuiManager.Current); Patch.inventory_order(ref __runOriginal, inventory); Patch.inv_scale(GuiManager.PlayerLayer); Patch.flashlight_icon(inventory); Enumerator enumerator = inventory.m_inventorySlots.Values.GetEnumerator(); while (enumerator.MoveNext()) { PUI_InventoryItem current = enumerator.Current; Patch.MyOtherPatch(current); if (recolor_selected.Value || LowAmmo_patch.Value) { Patch.low_ammo(current); } } PUI_LocalPlayerStatus playerStatus = playerLayer.m_playerStatus; Patch.health_text(playerStatus); Patch.infection_text(playerStatus); Patch.compASS(playerLayer.m_compass); PUI_GameEventLog gameEventLog = playerLayer.m_gameEventLog; Patch.chat_helper(gameEventLog); Patch.reverse_chat(ref __runOriginal, gameEventLog); Patch.moving_chat(gameEventLog); gameEventLog.UpdateHelpText(false, (SNet_Player)null); PUI_GameObjectives wardenObjective = GuiManager.PlayerLayer.m_wardenObjective; Patch.warden_objective(wardenObjective); Patch.warden_description(wardenObjective); if (LowAmmo_patch.Value) { Enumerator enumerator2 = inventory.m_inventorySlots.Values.GetEnumerator(); while (enumerator2.MoveNext()) { PUI_InventoryItem current2 = enumerator2.Current; Patch.reset_ammo_states_low_ammo(current2); } Patch.reset_ammo_max(GameStateManager.Current, (eGameStateName)7); Enumerator enumerator3 = inventory.m_inventorySlots.Values.GetEnumerator(); while (enumerator3.MoveNext()) { PUI_InventoryItem current3 = enumerator3.Current; Patch.low_ammo(current3); } } Patch.scream_cd_config_change = true; Patch.scream_cd_manager(playerLayer); }; LiveEditListener val8 = LiveEdit.CreateListener(Path.GetDirectoryName(configMods.ConfigFilePath), Path.GetFileName(configMods.ConfigFilePath), false); val8.FileChanged += (LiveEditEventHandler)delegate { //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) try { configMods.Reload(); } catch (IOException) { configMods.Reload(); } ParseConfigEntriesMods(); Patch.combatindicator_hash = null; Patch.move_archive_combatindicator(GuiManager.PlayerLayer.m_playerStatus); Patch.AoiYukiSetup = false; reset_aoiyuki_pos = true; Patch.flashlight_pos_storage = Vector3.one; Patch.move_aoiyuki_plugins(); Patch.inventory_order(ref __runOriginal, GuiManager.PlayerLayer.Inventory); }; } internal static void ParseConfigEntriesInventory() { //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_001f: 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_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //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_005b: 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_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_008d: 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_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: 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_00c9: 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_00dd: 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_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: 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_010a: Unknown result type (might be due to invalid IL or missing references) //IL_0119: 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_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0132: 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_0155: Unknown result type (might be due to invalid IL or missing references) //IL_015a: 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_016e: Unknown result type (might be due to invalid IL or missing references) //IL_017d: Unknown result type (might be due to invalid IL or missing references) //IL_0182: Unknown result type (might be due to invalid IL or missing references) //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_01a5: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01b9: Unknown result type (might be due to invalid IL or missing references) //IL_01be: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Unknown result type (might be due to invalid IL or missing references) //IL_0209: Unknown result type (might be due to invalid IL or missing references) //IL_020e: Unknown result type (might be due to invalid IL or missing references) slim_bg_small_parse = Parser.ParseHex(slim_bg_small.Value); slim_ammo_percent_parse = Parser.ParseHex(slim_ammo_percent.Value); slim_arrow_parse = Parser.ParseHex(slim_arrow.Value); slim_infinite_parse = Parser.ParseHex(slim_infinite.Value); slim_archetypeName_parse = Parser.ParseHex(slim_archetypeName.Value); slim_bg_big_parse = Parser.ParseHex(slim_bg_big.Value); slim_slim_ammo_pos_parse = Parser.ParseVector3(slim_slim_ammo_pos.Value + ", 0"); selected_bg_full_arrow_parse = Parser.ParseHex(selected_bg_full_arrow.Value); selected_bg_full_bg_full_parse = Parser.ParseHex(selected_bg_full_bg_full.Value); selected_info_content_archetypeName_parse = Parser.ParseHex(selected_info_content_archetypeName.Value); selected_info_content_detailedname_parse = Parser.ParseHex(selected_info_content_detailedname.Value); selected_info_content_ammoclip_parse = Parser.ParseHex(selected_info_content_ammoclip.Value); selected_info_content_icon_parse = Parser.ParseHex(selected_info_content_icon.Value); selected_info_content_ammoclip_parse = Parser.ParseHex(selected_info_content_ammoclip.Value); selected_slim_infinite_parse = Parser.ParseHex(selected_slim_infinite.Value); selected_slim_bg_slim_parse = Parser.ParseHex(selected_slim_bg_slim.Value); selected_slim_ammo_percent_parse = Parser.ParseHex(selected_slim_ammo_percent.Value); empty_arrow_parse = Parser.ParseHex(empty_arrow.Value); empty_slim_bg_parse = Parser.ParseHex(empty_slim_bg.Value); empty_long_bg_parse = Parser.ParseHex(empty_long_bg.Value); light_enabled_parse = Parser.ParseHex(light_enabled.Value); light_disabled_parse = Parser.ParseHex(light_disabled.Value); light_bg_parse = Parser.ParseHex(light_bg.Value); inventory_pos_parse = Parser.ParseVector3(inventory_pos.Value + ", 0"); slim_ammo_pos_parse = Parser.ParseVector3(slim_ammo_pos.Value + ", 0"); } internal static void ParseConfigEntriesHealth() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //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_005b: 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_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0097: 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_00b5: 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_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: 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_00ec: 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_010a: 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_0128: 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_0155: Unknown result type (might be due to invalid IL or missing references) //IL_015a: 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_016e: Unknown result type (might be due to invalid IL or missing references) //IL_017d: Unknown result type (might be due to invalid IL or missing references) //IL_0182: Unknown result type (might be due to invalid IL or missing references) //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_01a5: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01c8: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Unknown result type (might be due to invalid IL or missing references) //IL_01dc: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Unknown result type (might be due to invalid IL or missing references) //IL_01ff: Unknown result type (might be due to invalid IL or missing references) //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_0213: Unknown result type (might be due to invalid IL or missing references) //IL_0218: Unknown result type (might be due to invalid IL or missing references) //IL_0231: Unknown result type (might be due to invalid IL or missing references) //IL_0236: Unknown result type (might be due to invalid IL or missing references) //IL_0245: Unknown result type (might be due to invalid IL or missing references) //IL_024a: Unknown result type (might be due to invalid IL or missing references) //IL_0259: Unknown result type (might be due to invalid IL or missing references) //IL_025e: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_0272: Unknown result type (might be due to invalid IL or missing references) //IL_028b: Unknown result type (might be due to invalid IL or missing references) //IL_0290: Unknown result type (might be due to invalid IL or missing references) //IL_02a9: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: 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_02db: Unknown result type (might be due to invalid IL or missing references) //IL_02e0: Unknown result type (might be due to invalid IL or missing references) //IL_02f9: Unknown result type (might be due to invalid IL or missing references) //IL_02fe: Unknown result type (might be due to invalid IL or missing references) //IL_0317: Unknown result type (might be due to invalid IL or missing references) //IL_031c: Unknown result type (might be due to invalid IL or missing references) status_pos_parse = Parser.ParseVector3(status_pos.Value + ", 0"); health_text_pos_parse = Parser.ParseVector3(health_text_pos.Value + ", 0"); health_good_parse = Parser.ParseHex(health_good.Value); health_bad_parse = Parser.ParseHex(health_bad.Value); health_bad_pulse_parse = Parser.ParseHex(health_bad_pulse.Value); health_melee_buff_parse = Parser.ParseHex(health_melee_buff.Value); right_health_rot_parse = Parser.ParseQuaternionSingleValue(right_health_rot.Value); right_health_pos_parse = Parser.ParseVector3(right_health_pos.Value + ", 0"); right_health_scale_parse = Parser.ParseVector3(right_health_scale.Value + ", 1"); left_health_rot_parse = Parser.ParseQuaternionSingleValue(left_health_rot.Value); left_health_pos_parse = Parser.ParseVector3(left_health_pos.Value + ", 0"); left_health_scale_parse = Parser.ParseVector3(left_health_scale.Value + ", 1"); pulsing_warning_pos_parse = Parser.ParseVector3(pulsing_warning_pos.Value + ", 0"); health_warning_bright_parse = Parser.ParseHex(health_warning_bright.Value); health_warning_dark_parse = Parser.ParseHex(health_warning_dark.Value); stamina_warning_bright_parse = Parser.ParseHex(stamina_warning_bright.Value); stamina_warning_dark_parse = Parser.ParseHex(stamina_warning_dark.Value); stamina_text_color_parse = Parser.ParseHex(stamina_text_color.Value); stamina_pos_parse = Parser.ParseVector3(stamina_pos.Value + ", 0"); stamina_low_health_color_parse = Parser.ParseHex(stamina_low_health_color.Value); pulse_low_parse = Parser.ParseHex(pulse_low.Value); pulse_mid_parse = Parser.ParseHex(pulse_mid.Value); pulse_high_parse = Parser.ParseHex(pulse_high.Value); infection_text_pos_parse = Parser.ParseVector3(infection_text_pos.Value + ", 0"); infection_high_parse = Parser.ParseHex(infection_high.Value); infection_low_parse = Parser.ParseHex(infection_low.Value); right_infection_rot_parse = Parser.ParseQuaternionSingleValue(right_infection_rot.Value); right_infection_pos_parse = Parser.ParseVector3(right_infection_pos.Value + ", 0"); right_infection_scale_parse = Parser.ParseVector3(right_infection_scale.Value + ", 1"); left_infection_rot_parse = Parser.ParseQuaternionSingleValue(left_infection_rot.Value); left_infection_pos_parse = Parser.ParseVector3(left_infection_pos.Value + ", 0"); left_infection_scale_parse = Parser.ParseVector3(left_infection_scale.Value + ", 1"); booster_pos_parse = Parser.ParseVector3(booster_pos.Value + ", 0"); } internal static void ParseConfigEntriesInteract() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_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_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007e: 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_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: 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_00c9: 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_00dd: 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_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_010a: 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_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_0128: 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_0132: Unknown result type (might be due to invalid IL or missing references) //IL_014b: 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) interact_pos_parse = Parser.ParseVector3(interact_pos.Value + ", 0"); interaction_bar_scale_parse = Vector2.op_Implicit(Parser.ParseVector2(interaction_bar_scale.Value)); interact_timer_fg_parse = Parser.ParseHex(interact_timer_fg.Value); interact_timer_bg_parse = Parser.ParseHex(interact_timer_bg.Value); interact_rotation_parse = Parser.ParseQuaternionSingleValue(interact_rotation.Value); interact_rotation_text_cancel_parse = Quaternion.Inverse(interact_rotation_parse); interact_text_pos_parse = Parser.ParseVector3(interact_text_pos.Value + ", 0"); bioscan_pos_parse = Parser.ParseVector3(bioscan_pos.Value + ", 0"); bioscan_bioscan_color_parse = Parser.ParseHex(bioscan_bioscan_color.Value); bioscan_bioscanalarm_color_parse = Parser.ParseHex(bioscan_bioscanalarm_color.Value); bioscan_bar_scale_parse = Vector2.op_Implicit(Parser.ParseVector2(bioscan_bar_scale.Value)); bioscan_timer_bg_parse = Parser.ParseHex(bioscan_timer_bg.Value); bioscan_rotation_parse = Parser.ParseQuaternionSingleValue(bioscan_rotation.Value); bioscan_rotation_text_cancel_parse = Quaternion.Inverse(bioscan_rotation_parse); bioscan_text_pos_parse = Parser.ParseVector3(bioscan_text_pos.Value + ", 0"); } internal static void ParseConfigEntriesObjectives() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002e: 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_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_008d: 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_00ab: 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_00bf: 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) obj_pos_parse = Parser.ParseVector3(obj_pos.Value + ", 0"); obj_header_text_parse = Parser.ParseHex(obj_header_text.Value); obj_header_bg_parse = Parser.ParseHex(obj_header_bg.Value); obj_progression_header_text_parse = Parser.ParseHex(obj_progression_header_text.Value); obj_progression_subtext_text_parse = Parser.ParseHex(obj_progression_subtext_text.Value); obj_item_text_parse = Parser.ParseHex(obj_item_text.Value); obj_item_bg_parse = Parser.ParseHex(obj_item_bg.Value); wrdn_intel_pos_parse = Parser.ParseVector3(wrdn_intel_pos.Value + ", 0"); wrdn_intel_color_parse = Parser.ParseHex(wrdn_intel_color.Value); } internal static void ParseConfigEntriesCommunication() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //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_0065: 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_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007e: 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_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: 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_00c9: 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) chat_message_pos_parse = Parser.ParseVector3(chat_message_pos.Value + ", 0"); user_input_pos_parse = Parser.ParseVector3(user_input_pos.Value + ", 0"); typing_box_color_parse = Parser.ParseHex(typing_box_color.Value); typing_box_pos_parse = Parser.ParseVector3(typing_box_pos.Value + ", 0"); typing_box_rotation_parse = Parser.ParseQuaternionSingleValue(typing_box_rotation.Value); comms_pos_parse = Parser.ParseVector3(comms_pos.Value + ", 0"); subtitle_pos_parse = Parser.ParseVector3(subtitle_pos.Value + ", 0"); subtitle_color_parse = Parser.ParseHex(subtitle_color.Value); } internal static void ParseConfigEntriesMisc() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002e: 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_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0097: 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_00b5: 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_00c9: 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_00dd: 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_00fb: 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_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Unknown result type (might be due to invalid IL or missing references) //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0155: Unknown result type (might be due to invalid IL or missing references) //IL_015a: 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_016e: Unknown result type (might be due to invalid IL or missing references) compass_pos_parse = Parser.ParseVector3(compass_pos.Value + ", 0"); compass_line_color_parse = Parser.ParseHex(compass_line_color.Value); compass_letter_color_parse = Parser.ParseHex(compass_letter_color.Value); compass_number_color_parse = Parser.ParseHex(compass_number_color.Value); compass_arrow_color_parse = Parser.ParseHex(compass_arrow_color.Value); mission_timer_pos_parse = Parser.ParseVector3(mission_timer_pos.Value + ", 0"); mission_timer_color_parse = Parser.ParseHex(mission_timer_color.Value); skip_pos_parse = Parser.ParseVector3(skip_pos.Value + ", 0"); skip_text_color_parse = Parser.ParseHex(skip_text_color.Value); skip_bg_color_parse = Parser.ParseHex(skip_bg_color.Value); fps_pos_parse = Parser.ParseVector3(fps_pos.Value + ", 0"); fps_color_parse = Parser.ParseHex(fps_color.Value); fps_scale_parse = new Vector3(1f, 1f, 1f) * fps_scale.Value; watermark_pos_parse = Parser.ParseVector3(watermark_pos.Value + ", 0"); watermark_color_parse = Parser.ParseHex(watermark_color.Value); } internal static void ParseConfigEntriesFeatures() { //IL_002a: 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_0048: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006b: 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_0089: 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_00a7: 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_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: 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_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: 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_010e: 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_0131: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_015f: Unknown result type (might be due to invalid IL or missing references) //IL_016e: Unknown result type (might be due to invalid IL or missing references) //IL_0173: 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_0187: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01af: Unknown result type (might be due to invalid IL or missing references) //IL_01be: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Unknown result type (might be due to invalid IL or missing references) //IL_01e6: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Unknown result type (might be due to invalid IL or missing references) //IL_01fa: Unknown result type (might be due to invalid IL or missing references) //IL_01ff: Unknown result type (might be due to invalid IL or missing references) //IL_020e: Unknown result type (might be due to invalid IL or missing references) //IL_0213: 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_0236: Unknown result type (might be due to invalid IL or missing references) //IL_023b: Unknown result type (might be due to invalid IL or missing references) //IL_024a: Unknown result type (might be due to invalid IL or missing references) //IL_024f: Unknown result type (might be due to invalid IL or missing references) //IL_025e: Unknown result type (might be due to invalid IL or missing references) //IL_0263: Unknown result type (might be due to invalid IL or missing references) //IL_0272: 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_0286: Unknown result type (might be due to invalid IL or missing references) //IL_028b: 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_029f: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: Unknown result type (might be due to invalid IL or missing references) //IL_02b3: Unknown result type (might be due to invalid IL or missing references) //IL_02c2: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Unknown result type (might be due to invalid IL or missing references) //IL_02d6: Unknown result type (might be due to invalid IL or missing references) //IL_02db: Unknown result type (might be due to invalid IL or missing references) //IL_02ea: Unknown result type (might be due to invalid IL or missing references) //IL_02ef: Unknown result type (might be due to invalid IL or missing references) //IL_02fe: Unknown result type (might be due to invalid IL or missing references) //IL_0303: Unknown result type (might be due to invalid IL or missing references) //IL_0312: Unknown result type (might be due to invalid IL or missing references) //IL_0317: Unknown result type (might be due to invalid IL or missing references) //IL_0326: Unknown result type (might be due to invalid IL or missing references) //IL_032b: Unknown result type (might be due to invalid IL or missing references) //IL_033a: Unknown result type (might be due to invalid IL or missing references) //IL_033f: Unknown result type (might be due to invalid IL or missing references) //IL_034e: Unknown result type (might be due to invalid IL or missing references) //IL_0353: Unknown result type (might be due to invalid IL or missing references) //IL_0362: Unknown result type (might be due to invalid IL or missing references) //IL_0367: Unknown result type (might be due to invalid IL or missing references) //IL_0376: Unknown result type (might be due to invalid IL or missing references) //IL_037b: Unknown result type (might be due to invalid IL or missing references) //IL_038a: 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_039e: Unknown result type (might be due to invalid IL or missing references) //IL_03a3: Unknown result type (might be due to invalid IL or missing references) //IL_03bc: Unknown result type (might be due to invalid IL or missing references) //IL_03c1: 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_03d5: Unknown result type (might be due to invalid IL or missing references) //IL_040b: Unknown result type (might be due to invalid IL or missing references) //IL_0410: Unknown result type (might be due to invalid IL or missing references) //IL_03f3: Unknown result type (might be due to invalid IL or missing references) //IL_03f8: Unknown result type (might be due to invalid IL or missing references) //IL_0428: Unknown result type (might be due to invalid IL or missing references) //IL_043c: Unknown result type (might be due to invalid IL or missing references) //IL_0441: Unknown result type (might be due to invalid IL or missing references) //IL_0446: Unknown result type (might be due to invalid IL or missing references) //IL_0487: Unknown result type (might be due to invalid IL or missing references) //IL_048c: Unknown result type (might be due to invalid IL or missing references) //IL_0460: Unknown result type (might be due to invalid IL or missing references) //IL_0474: Unknown result type (might be due to invalid IL or missing references) //IL_0479: Unknown result type (might be due to invalid IL or missing references) //IL_047e: Unknown result type (might be due to invalid IL or missing references) minimal_ui_speed_parse = 1f / minimal_ui_speed.Value; manual_inventory_melee_parse = Parser.ParseVector3(manual_inventory_melee.Value + ", 0"); manual_inventory_main_parse = Parser.ParseVector3(manual_inventory_main.Value + ", 0"); manual_inventory_secondary_parse = Parser.ParseVector3(manual_inventory_secondary.Value + ", 0"); manual_inventory_class_parse = Parser.ParseVector3(manual_inventory_class.Value + ", 0"); manual_inventory_pack_parse = Parser.ParseVector3(manual_inventory_pack.Value + ", 0"); manual_inventory_consumable_parse = Parser.ParseVector3(manual_inventory_consumable.Value + ", 0"); move_weapons_parse = (Vector3[])(object)new Vector3[6] { manual_inventory_melee_parse, manual_inventory_main_parse, manual_inventory_secondary_parse, manual_inventory_class_parse, manual_inventory_pack_parse, manual_inventory_consumable_parse }; move_flashlight_pos_parse = Parser.ParseVector3(move_flashlight_pos.Value + ", 0"); LowAmmo_treshold_multiplier = LowAmmo_treshold.Value * 0.01f; lowammo_unselected_slim_bg_small_parse = Parser.ParseHex(lowammo_unselected_slim_bg_small.Value); lowammo_unselected_slim_ammo_percent_parse = Parser.ParseHex(lowammo_unselected_slim_ammo_percent.Value); lowammo_unselected_slim_arrow_parse = Parser.ParseHex(lowammo_unselected_slim_arrow.Value); lowammo_unselected_slim_archetypeName_parse = Parser.ParseHex(lowammo_unselected_slim_archetypeName.Value); lowammo_unselected_slim_bg_big_parse = Parser.ParseHex(lowammo_unselected_slim_bg_big.Value); lowammo_unselected_selected_bg_full_arrow_parse = Parser.ParseHex(lowammo_unselected_selected_bg_full_arrow.Value); lowammo_unselected_selected_bg_full_bg_full_parse = Parser.ParseHex(lowammo_unselected_selected_bg_full_bg_full.Value); lowammo_unselected_selected_info_content_archetypeName_parse = Parser.ParseHex(lowammo_unselected_selected_info_content_archetypeName.Value); lowammo_unselected_selected_info_content_detailedname_parse = Parser.ParseHex(lowammo_unselected_selected_info_content_detailedname.Value); lowammo_unselected_selected_info_content_ammoclip_parse = Parser.ParseHex(lowammo_unselected_selected_info_content_ammoclip.Value); lowammo_unselected_selected_info_content_icon_parse = Parser.ParseHex(lowammo_unselected_selected_info_content_icon.Value); lowammo_unselected_selected_slim_bg_slim_parse = Parser.ParseHex(lowammo_unselected_selected_slim_bg_slim.Value); lowammo_unselected_selected_slim_ammo_percent_parse = Parser.ParseHex(lowammo_unselected_selected_slim_ammo_percent.Value); selected_selected_bg_full_arrow_parse = Parser.ParseHex(selected_selected_bg_full_arrow.Value); selected_selected_bg_full_bg_full_parse = Parser.ParseHex(selected_selected_bg_full_bg_full.Value); selected_selected_info_content_archetypeName_parse = Parser.ParseHex(selected_selected_info_content_archetypeName.Value); selected_selected_info_content_detailedname_parse = Parser.ParseHex(selected_selected_info_content_detailedname.Value); selected_selected_info_content_ammoclip_parse = Parser.ParseHex(selected_selected_info_content_ammoclip.Value); selected_selected_info_content_icon_parse = Parser.ParseHex(selected_selected_info_content_icon.Value); selected_selected_slim_infinite_parse = Parser.ParseHex(selected_selected_slim_infinite.Value); selected_selected_slim_bg_slim_parse = Parser.ParseHex(selected_selected_slim_bg_slim.Value); selected_selected_slim_ammo_percent_parse = Parser.ParseHex(selected_selected_slim_ammo_percent.Value); lowammo_selected_selected_bg_full_arrow_parse = Parser.ParseHex(lowammo_selected_selected_bg_full_arrow.Value); lowammo_selected_selected_bg_full_bg_full_parse = Parser.ParseHex(lowammo_selected_selected_bg_full_bg_full.Value); lowammo_selected_selected_info_content_archetypeName_parse = Parser.ParseHex(lowammo_selected_selected_info_content_archetypeName.Value); lowammo_selected_selected_info_content_detailedname_parse = Parser.ParseHex(lowammo_selected_selected_info_content_detailedname.Value); lowammo_selected_selected_info_content_ammoclip_parse = Parser.ParseHex(lowammo_selected_selected_info_content_ammoclip.Value); lowammo_selected_selected_info_content_icon_parse = Parser.ParseHex(lowammo_selected_selected_info_content_icon.Value); lowammo_selected_selected_slim_bg_slim_parse = Parser.ParseHex(lowammo_selected_selected_slim_bg_slim.Value); lowammo_selected_selected_slim_ammo_percent_parse = Parser.ParseHex(lowammo_selected_selected_slim_ammo_percent.Value); scream_cd_pos_parse = Parser.ParseVector3(scream_cd_pos.Value + ", 0"); scream_cd_color_parse = Parser.ParseHex(scream_cd_color.Value); if (confine_archetypename.Value) { confine_archetypename_parse = new Vector2(200f, 25f); } else { confine_archetypename_parse = new Vector2(500f, 25f); } if (move_chat_open.Value == chat_message_vertical.Up) { chat_message_pos_offset_parse = chat_message_pos_parse + new Vector3(0f, 25f, 0f); } else if (move_chat_open.Value == chat_message_vertical.Down) { chat_message_pos_offset_parse = chat_message_pos_parse - new Vector3(0f, 25f, 0f); } else { chat_message_pos_offset_parse = chat_message_pos_parse; } } internal static void ParseConfigEntriesMods() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002e: 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_0051: 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_0065: 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_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_008d: 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_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) archive_combatindicator_pos_parse = Parser.ParseVector3(archive_combatindicator_pos.Value + ", 0"); archive_combatindicator_color_parse = Parser.ParseHex(archive_combatindicator_color.Value); accuracyshow_damageindicator_pos_parse = Parser.ParseVector3(accuracyshow_damageindicator_pos.Value + ", 0") - inventory_pos_parse; accuracyshow_bg_color_parse = Parser.ParseHex(accuracyshow_bg_color.Value); accuracyshow_text_color_parse = Parser.ParseHex(accuracyshow_text_color.Value); damageindicator_bg_color_parse = Parser.ParseHex(damageindicator_bg_color.Value); damageindicator_text_color_parse = Parser.ParseHex(damageindicator_text_color.Value); } } }