You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
123...789
Shift + R
Shift + T
For reference here is the code for transferring a item.
// Sprite graphic reached its destination, lets show the other inventory slot item now
// For the love of god I have no fucking idea why I need a
// null check here. I spent 2 hours trying to figure out
// why InventoryItem becomes null. And with the null check
// earlier it was just hiding items. But now it all magically
// works all of a sudden wtf?
// Please just stay working okay?
// Thank you code
// I love you code
otherInvSlot.InventoryItem?.Show();
CurrentlyAnimating=false;
otherInvSlot.CurrentlyAnimating =false;
Graphic.QueueFree();
}));
}
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)
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.
Inventory/Scripts/Inventory/InventorySlot.cs
Lines 224 to 325 in 14fd440
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)
Inventory/Scripts/Chest.cs
Lines 31 to 50 in 14fd440
The text was updated successfully, but these errors were encountered: