I’m changing the way that inventory works in my game again and I liked the look of t0neg0d’s test app inventory system. However when I moved all of the code from Main.java to GUI.java I started having some issues. I’ve already checked into all of the managers that SimpleApplication includes. I have no compiler errors, but at runtime I’m getting this error. Here is GUI.java
When do you instantiate your GUI class?
EDIT: I think I figured it out. I’m trying to use TextureAtlas and never enable it. Thanks for the point in the right direction!
EDIT2: Yup that was the error. Game loads fine now. Hopefully I can get it to show up on the screen now
In simpleInitApp()
@Override
public void simpleInitApp() {
setDisplayFps(false);
setDisplayStatView(false);
flyCam.setEnabled(false);
guiNode.detachAllChildren();
gui = new GUI(this, settings, assetManager);
gui.getScreen().initialize();
gui.getScreen().setUseCustomCursors(true);
gui.getScreen().setUseToolTips(true);
gui.getScreen().setUse3DSceneSupport(true);
guiNode.addControl(gui.getScreen());
...
}