-
Notifications
You must be signed in to change notification settings - Fork 8
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
Item Drag Drop sample #15
Comments
Unfortunately MGUI doesn't provide a drag+drop framework, so you'd have to subscribe and react to mouse events yourself to implement the desired behavior. I've added a simple example of this to the FF7Inventory dialog. You can now drag an item from the inventory and drop it onto a party member in the list on the left to use the item on the party member. In the sample, drag+drop is mainly implemented by doing the following:
If a party member is hovered, while an inventory item is currently pressed but not released, we render an additional transparent yellow overlay onto the party member (line #234). When the left-mouse button is released, we prioritize using the pressed inventory item instead of the selected inventory item (line #213) |
Awesome, thank you for the sample. I wanted to ask as well if MGUI is compatible with Android Touch Input ? I have seen only things related to mouse/keyboard in the documentation. If it's not, could you suggest a good starting point for implementing it ? Also does MGUI work with visual studio's intellisense for autocomplete ? |
No, I've never worked with VS intellisense should work as long as you set the default namespace to |
I think it would be amazing if you could provide a few items that can be moved around in the inventory demo.
Any maybe an example on how we can drag items from inventory to the skillbar in the HUD.
The text was updated successfully, but these errors were encountered: