mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 14:59:23 +00:00
[Stickers] Fixed scrolling cycling selected sticker slot despite not being in placement mode
This commit is contained in:
parent
f99a22499c
commit
a9cebb85e9
1 changed files with 8 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue