Skip to content

Conversation

@Arufonsu
Copy link
Contributor

Fixes #2793

Prevent Gwen's default drop handler from reparenting the dragged icon into the hovered control, which could place the icon into the wrong slot/container. Draggable now forwards DragAndDrop_HandleDrop to its SlotItem parent, and the drag package stores the source SlotItem in Package.UserData to make slot handlers deterministic.

2025-12-31.12-32-57.mp4

Fixes #2793

Prevent Gwen's default drop handler from reparenting the dragged icon into the hovered control, which could place the icon into the wrong slot/container. Draggable now forwards DragAndDrop_HandleDrop to its SlotItem parent, and the drag package stores the source SlotItem in Package.UserData to make slot handlers deterministic.
@naziozeno
Copy link

Done a lot of testing for hours and the bug of stacking skills and items in the same slot has been fixed, thank you.
8 players tested for more than 4 hours and gave positive feedback for the fix

Stop restoring dragged icon visibility at the end of a successful drag-drop operation, since the item may have moved (e.g., inventory ↔ bank  // inventory ↔ drop item) and the server-driven slot update will refresh the correct icon state. This fixes a 1-frame flash where the source slot icon briefly reappears before disappearing again.
@Arufonsu
Copy link
Contributor Author

Arufonsu commented Jan 1, 2026

fix: spell/item icon flicker after successful drag-drop
Stop restoring dragged icon visibility at the end of a successful drag-drop operation, since the item may have moved (e.g., inventory ↔ bank // inventory ↔ drop item) and the server-driven slot update will refresh the correct icon state. This fixes a 1-frame flash where the source slot icon briefly reappears before disappearing again.

7419e0c

2026-01-01.16-37-34.mp4

@Arufonsu Arufonsu added bug Something isn't working enhancement Minor feature addition or quality of life change labels Jan 1, 2026
@naziozeno
Copy link

fix: spell/item icon flicker after successful drag-drop Stop restoring dragged icon visibility at the end of a successful drag-drop operation, since the item may have moved (e.g., inventory ↔ bank // inventory ↔ drop item) and the server-driven slot update will refresh the correct icon state. This fixes a 1-frame flash where the source slot icon briefly reappears before disappearing again.

7419e0c

2026-01-01.16-37-34.mp4

Working as it should, I tested it for a few minutes together with some players on the test server and it didn't show any failures.

@Arufonsu Arufonsu marked this pull request as draft January 1, 2026 23:56
- Ensures all item drops go through TryDropItem, restoring the safety prompt that asks which item and how many to drop.
- Fixes a bug introduced with DragAndDrop_HandleDrop returning an incorrect boolean when bypassing the drop prompt, which caused undroppable items to have their icons hidden.
@Arufonsu Arufonsu marked this pull request as ready for review January 2, 2026 00:22
Signed-off-by: Arufonsu <17498701+Arufonsu@users.noreply.github.com>
@Arufonsu Arufonsu requested a review from WeylonSantana January 3, 2026 04:34
@Arufonsu Arufonsu marked this pull request as draft January 3, 2026 05:01
@Arufonsu Arufonsu marked this pull request as ready for review January 3, 2026 05:59
@Arufonsu Arufonsu marked this pull request as draft January 3, 2026 06:01
@Arufonsu Arufonsu force-pushed the fix/2793 branch 2 times, most recently from 73da252 to c68a947 Compare January 3, 2026 06:37
@Arufonsu Arufonsu marked this pull request as ready for review January 3, 2026 06:38
@Arufonsu Arufonsu marked this pull request as draft January 3, 2026 13:15
@Arufonsu Arufonsu force-pushed the fix/2793 branch 2 times, most recently from c361198 to 847d551 Compare January 3, 2026 14:12
@Arufonsu Arufonsu marked this pull request as ready for review January 3, 2026 14:12
@Arufonsu Arufonsu force-pushed the fix/2793 branch 2 times, most recently from c76c8e5 to 75de5e1 Compare January 3, 2026 21:44
- Required logic update after fixes for item's icon handling.
- hotkeys and bags handling for DragAndDrop_HandleDrop
- (bags seriously need a big refactor): replaced direct packet store (buggy) and slider (never been coded properly) for at least, a simple and functional YesNo Prompt that stores whole item stacks from inventory.
- HotbarItem case returns false (required so items don't go invisible when placing them to hotbars).
- SpellItem to Hotbar case returns false (required so spells don't go invisible when placing them to hotbars).
- fixes quantityLabels logic
- visually functional bags and bank items when moving them around
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement Minor feature addition or quality of life change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Spells and items being at same slot when dragged.

4 participants