expressobits / inventory-system

Modular inventory system for godot 4 with nodes, compatible with multiplayer, separate logic from the UI, Using items as separate resources.
MIT License
459 stars 31 forks source link

Different skins in UI demo for different types of craft stations #42

Open scriptsengineer opened 1 year ago

zdbq commented 9 months ago

Hello, I would like to ask if the drag and drop function has not been implemented yet. I have created the equipment grid according to the documentation. It’s so cool! ! I just need to adjust the position. If I want to add grids, I can add them to the node at any time. However, I searched for the documentation and did not see any tutorials on the functions of dragging and exchanging items. Is this function not implemented yet? I am going to do it first. Try to get the picture of the current grid and use mouse events to customize an item exchange function first. I can directly use the function of your customized node, which is also very convenient for my development. Thank you! !

scriptsengineer commented 9 months ago

Hello, I would like to ask if the drag and drop function has not been implemented yet. I have created the equipment grid according to the documentation. It’s so cool! ! I just need to adjust the position. If I want to add grids, I can add them to the node at any time. However, I searched for the documentation and did not see any tutorials on the functions of dragging and exchanging items. Is this function not implemented yet? I am going to do it first. Try to get the picture of the current grid and use mouse events to customize an item exchange function first. I can directly use the function of your customized node, which is also very convenient for my development. Thank you! !

There are two functions for dragging, to_transaction, transaction_to in inventory_handler.gd they basically understand that something that is dragging is something that is in the current "transaction".

scriptsengineer commented 9 months ago

As soon as I close 1.0 I intend to make complete documentation

zdbq commented 9 months ago

It turned out to be in inventory_handler, thank you

zdbq commented 9 months ago

Looking forward to your documentation :)