Skip to content

Add drag-and-drop ordering for command buttons - #143

Open
snkrz wants to merge 4 commits into
MSDNicrosoft:masterfrom
snkrz:feature/drag-drop-button-order
Open

Add drag-and-drop ordering for command buttons#143
snkrz wants to merge 4 commits into
MSDNicrosoft:masterfrom
snkrz:feature/drag-drop-button-order

Conversation

@snkrz

@snkrz snkrz commented Aug 30, 2026

Copy link
Copy Markdown

Summary

  • add a drag-aware LibGui button with a small movement threshold
  • reorder command items directly in the backing config list
  • persist the new order when the button is dropped
  • suppress command execution after a drag while preserving normal clicks
  • support the input APIs used across all preprocessed Minecraft targets

Testing

  • ./gradlew.bat build --no-daemon
  • successful for all 12 supported targets from Minecraft 1.16.5 through 1.21.11

snkrz added 4 commits August 30, 2026 12:54
Allow command buttons to be reordered by dragging while preserving normal click behavior.
Move the backing config list entry to the grid cell under the dragged button.
Use the drag-aware button implementation in command destinations.
Detect intentional drag gestures across supported LibGui input APIs and suppress accidental clicks after a drop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant