Tuesday, 20 August 2013

Elegant way to code drag and drop

Elegant way to code drag and drop

I have a game in which I want all the windows and the items in the
inventory window to be drag and droppable. However the event handling is
event driven. I have it working to a point, but it's getting convoluted
fast. I was trying to find information on coding guis bottom up in a
canvas, or at least a less convoluted way to do window input (such as drag
and drop), but I can't figure out how to Google these things efficiently.
This is in java by the way.

No comments:

Post a Comment