-
Notifications
You must be signed in to change notification settings - Fork 30
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
Dragging item from ItemSlot off centre. v2.4.3 #167
Comments
@peter-kish I also found this bug where your item just vanishes. Not sure what causes it. Seems like it happens dragging and dropping into the same slot that is equipped; when dragging and dropping onto the corner of the item slot (in the top right). Its pretty easy to make it happen. Untitled.mp4 |
Seems like the |
I'm afraid I'll need some more information on most of these issues... Apart from the 2nd one (dragable default icon), I wasn't really able to reproduce them. Here's the minimal project I was playing around with: |
I reproduced number 1; it is to do with the scale of the control being less than 1. Number 3 is present in your example/minimal project; when dragging your item from slot to slot, or back to the inventory grid I think the size of the item should be what is set (width and height) in the protoset (.i.e the same as when dragging item from the inventory grid). Not sure about the vanishing inventory. I need to look into it more when have time. |
vanishing_inventory_reproduced.zip Okay figured out the case of the vanishing inventory you just need to swap between inventory slots and then drop the item onto the current CtrlItemSlot you switched to: 2024-02-28.03-17-43.mp4I don't think this is related to the other bugs. |
@peter-kish Yeah fair enough, Looks good to me! |
Hey just updated to 2.4.3; nice work on the icon resizing options!
I found a
couplethruple of bugs.When dragging an item from the ItemSlot the image is off centre (probably same issue as this but for item slot rather than inventory grid: (DrapItem position #160)
The actual item slots default item icon seems to be draggable.
The size of the item dragged from the item slot is not the same as when dragged from the inventory grid (its way bigger.)
Video:
2024-02-25.22-00-08.mp4
P.S
4. Also dropping your item on-top off the ItemSlot makes the default icon dissapear, whereas I think it should probably draw on-top of it.Nevermind using a StyleBoxTexture in Slot style solves this.The text was updated successfully, but these errors were encountered: