many rpg type of games have nice UIs that benefit the player through out the game; Usually with a drag and drop functionality. Before I try dabbling with it myself, what would be the most effective way to create UIs like this?
I was thinking of making them dragable by setting its velocity to the mouses’ velocity when clicked and have the items in the drop slots keep its’ coordinates based off of where the UI box is dragged. I drew an example:
http://i.imgur.com/FYqQvnI.png?1
I forgot what you call fake code that’s used for an example, but hope this clears the point.
Another idea I had was to use undecorated JFrames instead of an Image UI so the player can move it out of the screen. I could then give that frame a nice UI layout and use the Java API to for the dragging and dropping.