Stickers: scrollwheel to switch selected sticker

This commit is contained in:
NotAKidoS 2024-08-25 15:19:45 -05:00
parent 9638e22daf
commit 852520973c
2 changed files with 10 additions and 1 deletions

View file

@ -38,7 +38,7 @@ public partial class StickerSystem
get => _selectedStickerSlot;
set
{
_selectedStickerSlot = Mathf.Clamp(value, 0, ModSettings.MaxStickerSlots - 1);
_selectedStickerSlot = value < 0 ? ModSettings.MaxStickerSlots - 1 : value % ModSettings.MaxStickerSlots;
IsInStickerMode = IsInStickerMode; // refresh sticker mode
}
}