Allow for swapping items in inventory. #52

Closed
opened 2 weeks ago by zedshaw · 0 comments
Owner

Right now if you drag an item to a slot in the same inventory::Model, but that target drop is already occupied, then it fails silently. To fix this temporarily I did a swap, but it'd be better to allow them to grab the next item and drag it to somewhere. Problem is I don't really hae enough information to do that. I think I need to put the slot names into all grab and drop sources, or something like that.

Right now if you drag an item to a slot in the same inventory::Model, but that target drop is already occupied, then it fails silently. To fix this temporarily I did a swap, but it'd be better to allow them to grab the next item and drag it to somewhere. Problem is I don't really hae enough information to do that. I think I need to put the slot names into all grab and drop sources, or something like that.
zedshaw self-assigned this 2 weeks ago
zedshaw closed this issue 2 weeks ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: learn-code-the-hard-way/raycaster#52
Loading…
There is no content yet.