Improve scrolling in roles menu

This commit is contained in:
Atony committed 2026-01-03 19:00:46 -06:00
1 parent ab67c233d8
commit d4469153ab
1 file changed
+4 -2
@@ -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;
}