I made a library for organizing all my various game stages, menus, etc… I give you UI-Stack!!!
Why would you even want to use this?
- Every UI has it’s own
- Only one UI can be active at a time. You can’t display one UI over another.
- As it the title, it’s a UI-Stack, so you can add things to the stack, but also remove layers, revealing the ones lower in the stack.
- Bonus: 8kb(
111lines of code) jarfile
Please tell me if this is already in jme and I reinvented the wheel again…
How I used it:
I used to have a really convoluted system for this… Submenus inside the main menu, Attatching everything to a static reference of the root & gui nodes, and ad displays that showed up in the middle of the game (Good way to loose players ), So I spent ~an hour last night making this! It’s actually quite easy to implement into an existing game, and I’ll be sure to use it in my next one.
If you’re sold(horray for sales pitching XD ), here’s a download & github link.