From d4469153ab658925c4c00ac209a1e3d50efb4d72 Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Sat, 3 Jan 2026 19:00:46 -0600 Subject: [PATCH] Improve scrolling in roles menu --- MiraAPI/Patches/Options/GameOptionsMenuPatch.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs b/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs index fd6704e..e32b307 100644 --- a/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs +++ b/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs @@ -19,13 +19,15 @@ internal static class GameOptionsMenuPatch { [HarmonyPostfix] [HarmonyPatch(nameof(GameOptionsMenu.OnEnable))] - public static void OpenPatch(GameOptionsMenu __instance) + [HarmonyPatch(nameof(RolesSettingsMenu.OnEnable))] + public static void OpenPatch() { HudManager.Instance.PlayerCam.OverrideScreenShakeEnabled = false; } [HarmonyPostfix] [HarmonyPatch(nameof(GameOptionsMenu.OnDisable))] - public static void ClosePatch(GameOptionsMenu __instance) + [HarmonyPatch(nameof(RolesSettingsMenu.OnDisable))] + public static void ClosePatch() { HudManager.Instance.PlayerCam.OverrideScreenShakeEnabled = true; }