Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Abstract item animations to every item movement #6

Open
1 of 9 tasks
valkyrienyanko opened this issue Feb 10, 2023 · 0 comments
Open
1 of 9 tasks

Abstract item animations to every item movement #6

valkyrienyanko opened this issue Feb 10, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@valkyrienyanko
Copy link
Contributor

valkyrienyanko commented Feb 10, 2023

Currently item animations are only implemented for when Shift + Clicking to transfer items from one inventory to another. This should eventually be abstracted to all inventory manipulations.

Item animations done so far

  • Shift + Click
  • Double Click
  • Left Click
  • Right Click
  • Hold + Left Click
  • Hold + Right Click
  • 1 2 3 ... 7 8 9
  • Shift + R
  • Shift + T

For reference here is the code for transferring a item.

https://github.com/Valks-Games/Inventory/blob/14fd440a65586f6f3181f972601c82c7bc21bf67/Scripts/Inventory/InventorySlot.cs#L224-L325

And here is the code a chest calls when it is closed. (relevant because the chest cancels all the animations on closing the chest -- perhaps this code should be moved else where)

https://github.com/Valks-Games/Inventory/blob/14fd440a65586f6f3181f972601c82c7bc21bf67/Scripts/Chest.cs#L31-L50

@valkyrienyanko valkyrienyanko added the help wanted Extra attention is needed label Feb 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant