I have made an inventory that uses globalDict to store the items.
items are stored into categories that you can define for each object.
This will make it easier to implement a crafting system, sorting object, or what ever you like.
What can you do?
- grab items and place it in an inventory - show/close inventory - drop items on the ground - drag the inventory around - see what item you have dropped/picked up - stack items - create categories inventory will restore to last known position on opening
What options can you set?
global: - amount of slots - stack size - max slots allowed a row - border size - text positions of the items - notification time - some minor things
Here is a video to see it in action:
And here is the .blend:
inventory_by_cotax.blend (909 KB)
I hope you like it as much as i do.