Skip to content
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

[Feature Request] on_drag_modulate property for CtrlInventoryGrid #270

Open
etherealxx opened this issue Jan 21, 2025 · 0 comments
Open

Comments

@etherealxx
Copy link

etherealxx commented Jan 21, 2025

Currently, when an item is being dragged (still being held), the item (visually) exist both on the grid and on user's mouse.
Image
Would be nice if we have an option to adjust the color of the item on the grid. Kinda like modulate property on CanvasItem. So user could either adjust the transparency of the grid item by adjusting the alpha slider (like most games, where the item on the grid is either transparent or disappear when the item is in the middle of dragging/being held), or maybe recoloring it into other color whatever the user like.

(I just noticed there is no signal to detect if an object is being dragged. Maybe add that one as well? The available signal currently are the one that detect the click (inventory_item_selected) and the drop (item_dropped). Nothing that detect the drag)

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

No branches or pull requests

1 participant