I wanna created D&D mechanic for inventory. How can i make it? using CPP?

sa1lim.RAM
Fri, 11 Aug 2023 19:28:17 +0000
C++

I created inventory and adding items to inventory into CPP. Now i have problem. player has 2 types of inventory. The 1st is inventory, witch includes using weapons, i mean weapons, witch Player can change by spinning the mouse wheel. The 2nd - inventory, witch includes weapons? that was taken by player and isn’t used by him. I wanna to make mechanic, that make items, if LMB pressed on them, to attach to the cursor and if LMB doesn’t pressed on them? items checked? is under them another grid, and is under them slot-place? they set on this slot. I heard it must be made by Drag & Drop, but i didn’t find normal tutorial about this mechanic . Can u explain to me, how can i do it using CPP, or give me a course? that includes this themeб or vidio, or any article? thank se for response

2 posts - 2 participants