LibGDX - how to make a popup window

Just like the title says, I want to have a “popup” window to display the players inventory in my game. It looks like using a stage (or multiple stages) might accomplish this, but I am not using stages in my game. I really don’t want to have to redo the entire game engine so I am curious how this might be accomplished.

I would prefer something that would allow the level to be paused so to speak and the inventory window would then be displayed over the top of the level. Any ideas?

You can make a window class that draw a black square with some transparency and a border and over it every item you need to show in that window. The same as if you were drawing the HUD, but inside that square. I do this in my last game for the options and some windows I need inside the game and works great.

@Endos that sounds great I guess I’m more interested in the logic of how it would work. Specifically pausing the underlying level. I appreciate the suggestion, maybe I will start there and just see where it takes me.

That depends on how your engine works. If you has separate update and draw methods, you can simply ignore any update to pause everything while showing the popup.

You can easily use scene2d.Dialog for popup windows. If you don’t use a stage for the rest of the game, you can just make a stage specifically for HUD/ui and draw that after you draw your game, so it shows up on top. For pause libgdx already has a pause method in ApplicationListener/Game, you can invoke that.