[Stickers] Fixed scrolling cycling selected sticker slot despite not being in placement mode

This commit is contained in:
NotAKidoS 2025-04-03 04:04:14 -05:00
parent f99a22499c
commit a9cebb85e9

View file

@ -39,12 +39,15 @@ public class StickerMod : MelonMod
if (StickerSystem.Instance == null)
return;
if (Input.mouseScrollDelta.y != 0f
&& Cursor.lockState == CursorLockMode.Locked // prevent scrolling while in menus
&& !CVRInputManager.Instance.zoom) // prevent scrolling while using scroll zoom
StickerSystem.Instance.SelectedStickerSlot += (int)Input.mouseScrollDelta.y;
if (StickerSystem.Instance.IsInStickerMode)
{
if (Input.mouseScrollDelta.y != 0f
&& Cursor.lockState == CursorLockMode.Locked // prevent scrolling while in menus
&& !CVRInputManager.Instance.zoom) // prevent scrolling while using scroll zoom
StickerSystem.Instance.SelectedStickerSlot += (int)Input.mouseScrollDelta.y;
StickerSystem.Instance.UpdateStickerPreview(); // flashy flash
StickerSystem.Instance.UpdateStickerPreview(); // flashy flash
}
if (!ModSettings.Entry_UsePlaceBinding.Value)
return;