Allow for swapping items in inventory. #52

Closed
opened 2025-07-01 19:01:28 +00:00 by zedshaw · 0 comments
zedshaw commented 2025-07-01 19:01:28 +00:00 (Migrated from lcthw.dev)

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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: games/raycaster#52
No description provided.