Nifty GUI - Create an inventory

Hey guys,

I just wanted to gather some input from you guys what you think is the best way to create an inventory (just the GUI). My current game uses NiftyGUI for nearly all the HUD-Elements, so I was looking for an drag and drop example in Nifty, unfortunately I couldn’t find any example code or an tutorial.

Anyone has a link to a tutorial or something similiar what maybe explains the basics of an inventory?

Cheers!

Idk anything about NiftyGUI, but in java swing, you just paint swing components over your game canvas and do everything normally. You can imitate an inventory with JInternalPane, JTabbedPane, and JList.

Hey there,

thanks for the reply.
That sounds evident. I guess I have to figure it out by myself somehow and just use a generic inventory concept.