From 887688d7aa8b92543f75e9738aa67f3be0a8e90c Mon Sep 17 00:00:00 2001 From: Tyfon <29051038+tyfon7@users.noreply.github.com> Date: Fri, 26 Jul 2024 00:44:51 -0700 Subject: [PATCH] Expand dropdowns by a smaller amount --- Patches/FixFleaPatches.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Patches/FixFleaPatches.cs b/Patches/FixFleaPatches.cs index 1590249..5190e59 100644 --- a/Patches/FixFleaPatches.cs +++ b/Patches/FixFleaPatches.cs @@ -141,15 +141,15 @@ public static class FixFleaPatches { protected override MethodBase GetTargetMethod() { - return AccessTools.DeclaredMethod(typeof(DropDownBox), nameof(DropDownBox.Init)); + return AccessTools.DeclaredMethod(typeof(DropDownBox), nameof(DropDownBox.Show)); } [PatchPostfix] - public static void Postfix(ref float ____maxVisibleHeight) + public static void Postfix(DropDownBox __instance, ref float ____maxVisibleHeight) { if (____maxVisibleHeight == 120f) { - ____maxVisibleHeight = 240f; + ____maxVisibleHeight = 150f; } } }