mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-04 23:39:22 +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)
|
if (StickerSystem.Instance == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (StickerSystem.Instance.IsInStickerMode)
|
||||||
|
{
|
||||||
if (Input.mouseScrollDelta.y != 0f
|
if (Input.mouseScrollDelta.y != 0f
|
||||||
&& Cursor.lockState == CursorLockMode.Locked // prevent scrolling while in menus
|
&& Cursor.lockState == CursorLockMode.Locked // prevent scrolling while in menus
|
||||||
&& !CVRInputManager.Instance.zoom) // prevent scrolling while using scroll zoom
|
&& !CVRInputManager.Instance.zoom) // prevent scrolling while using scroll zoom
|
||||||
StickerSystem.Instance.SelectedStickerSlot += (int)Input.mouseScrollDelta.y;
|
StickerSystem.Instance.SelectedStickerSlot += (int)Input.mouseScrollDelta.y;
|
||||||
|
|
||||||
StickerSystem.Instance.UpdateStickerPreview(); // flashy flash
|
StickerSystem.Instance.UpdateStickerPreview(); // flashy flash
|
||||||
|
}
|
||||||
|
|
||||||
if (!ModSettings.Entry_UsePlaceBinding.Value)
|
if (!ModSettings.Entry_UsePlaceBinding.Value)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue