using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using FishNet.Object; using HarmonyLib; using UnityEngine; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("HTF")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("HTF")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("5208ed49-769e-472d-8164-a43d8313e78b")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace HTF_ColorfulPoint; [BepInPlugin("HTF.kr.ColorfulPoint", "ColorfulPoint", "1.0.0")] public class ModBehaviour : BaseUnityPlugin { [HarmonyPatch(typeof(CloseItemsUI))] public class CloseItemsUI_path { private static bool My_ShouldHideItem(Item item) { return !Object.op_Implicit((Object)(object)item) || Object.op_Implicit((Object)(object)item.Holder) || ((NetworkBehaviour)item).IsDeinitializing || (Object.op_Implicit((Object)(object)item.Bird) && !((Creature)item.Bird).IsDead) || item.IgnoredByCloseDots; } [HarmonyPostfix] [HarmonyPatch("LateUpdate")] private static void LateUpdate_Postfix(CloseItemsUI __instance, ref List ____closeItemsDots, Item[] ____closestItems, bool ____dotsEnabled) { //IL_007d: 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_0087: 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_0063: 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_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_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_014e: 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_0168: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Unknown result type (might be due to invalid IL or missing references) //IL_018d: Unknown result type (might be due to invalid IL or missing references) //IL_0140: Unknown result type (might be due to invalid IL or missing references) //IL_0139: Unknown result type (might be due to invalid IL or missing references) if (!Object.op_Implicit((Object)(object)Player.LocalPlayer) || !Object.op_Implicit((Object)(object)GameInfo.CurCamera) || !____dotsEnabled) { return; } Camera curCamera = GameInfo.CurCamera; int num = Mathf.Min(____closeItemsDots.Count, ____closestItems.Length); for (int i = 0; i < num; i++) { Item val = ____closestItems[i]; if (My_ShouldHideItem(val)) { ((Graphic)____closeItemsDots[i]).color = Color.clear; continue; } Vector3 val2 = curCamera.WorldToScreenPoint(((Component)val).transform.position); bool flag = val2.z > 0f && val2.x >= 0f && val2.x <= (float)curCamera.pixelWidth && val2.y >= 0f && val2.y <= (float)curCamera.pixelHeight; Color val3 = ((Object.op_Implicit((Object)(object)val.Creature) && !val.Creature.IsDead) ? Color.indianRed : (Object.op_Implicit((Object)(object)val.DeadPlayer) ? Color.red : ((Object.op_Implicit((Object)(object)val.Weapon) || Object.op_Implicit((Object)(object)val.Melee)) ? Color.red : (Object.op_Implicit((Object)(object)val.Creature) ? Color.white : Color.blue)))); ((Graphic)____closeItemsDots[i]).color = (flag ? val3 : Color.clear); if (flag) { ((Component)____closeItemsDots[i]).transform.position = val2; } } for (int j = num; j < ____closeItemsDots.Count; j++) { ((Graphic)____closeItemsDots[j]).color = Color.clear; } } } private Harmony harmony; private static ManualLogSource Log; private void Awake() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown harmony = new Harmony("HTF.kr.ColorfulPoint"); harmony.PatchAll(); Log = ((BaseUnityPlugin)this).Logger; Log.LogInfo((object)"ColorfulPoint enble"); } }