From c72eacc7a2e57324bdaa5fe3065e68fcbf824ed9 Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Sat, 3 Jan 2026 18:54:57 -0600 Subject: [PATCH] Fix options scroll with screen shake --- MiraAPI/Patches/Options/GameOptionsMenuPatch.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs b/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs index 218c6a5..fd6704e 100644 --- a/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs +++ b/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs @@ -17,6 +17,19 @@ namespace MiraAPI.Patches.Options; [HarmonyPatch(typeof(GameOptionsMenu))] internal static class GameOptionsMenuPatch { + [HarmonyPostfix] + [HarmonyPatch(nameof(GameOptionsMenu.OnEnable))] + public static void OpenPatch(GameOptionsMenu __instance) + { + HudManager.Instance.PlayerCam.OverrideScreenShakeEnabled = false; + } + [HarmonyPostfix] + [HarmonyPatch(nameof(GameOptionsMenu.OnDisable))] + public static void ClosePatch(GameOptionsMenu __instance) + { + HudManager.Instance.PlayerCam.OverrideScreenShakeEnabled = true; + } + [HarmonyPostfix] [HarmonyPatch(nameof(GameOptionsMenu.Update))] // ReSharper disable once InconsistentNaming