-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: items in refslots dont swap #171
Comments
Yeah, this is intentional, though I'm also unsure if it was the right decision. It would definitely be useful to be able to swap items (not only in slots, but also in an |
Item swapping inside inventories and item slots is implemented in v2.4.6, but that still does not cover I might replace them at some point with some sort of an "item drop area" control where the user can drop items and connect to some signals to define what happens to them. That would still allow for some custom slots without introducing complex classes with unclear purpose. |
Hmmm, Other than Deus Ex, I can't really think of any other game that does the ItemRef thing for inventory. (doesn't mean they don't exist though) |
You can override another refslot with the item from another refslot; which isn't the problem its that they don't swap.
Video:
https://github.com/peter-kish/gloot/assets/49783296/17515b3e-be52-4506-b8da-0d581407e636
I'm not sure what use case you would need a one to many relationship, but possibly there is (maybe in a hotbar)?
I don't really know what exactly what the behavior should be. However, I guess if you had ring slots you should be able to switch the items in the refSlots. 🤔
Note: I'm not using refSlot; so I'm not worried about this issue; was just experimenting and found it.
The text was updated successfully, but these errors were encountered: