I’m messing around with the tutorial for Nifty and the Nifty Gui Demo project.
I want to turn off those annoying logger messages so I can see my printouts (Or lack thereof, I am having another issue that I’m trying to debug) but it’s not turning off when I use
Logger.getLogger(“de.lessvoid.nifty”).setLevel(Level.SEVERE);
Logger.getLogger(“NiftyInputEventHandlingLog”).setLevel(Level.SEVERE);
Here’s the whole simpleInitApp()
[java]@Override
public void simpleInitApp() {
setDisplayFps(false);
setDisplayStatView(false);
/**
* Just some simple JME content to show it's really a JME app:
*/
Box b = new Box(Vector3f.ZERO, 1, 1, 1);
Geometry geom = new Geometry("Box", b);
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
mat.setColor("Color", ColorRGBA.Blue);
geom.setMaterial(mat);
rootNode.attachChild(geom);
startScreen = new MyStartScreen();
stateManager.attach(startScreen);
/**
* Åctivate the Nifty-JME integration:
*/
NiftyJmeDisplay niftyDisplay = new NiftyJmeDisplay(
assetManager, inputManager, audioRenderer, guiViewPort);
Nifty nifty = niftyDisplay.getNifty();
guiViewPort.addProcessor(niftyDisplay);
nifty.fromXml("Interface/tutorial/screen3.xml", "start", startScreen);
//nifty.setDebugOptionPanelColors(true);
flyCam.setDragToRotate(true); // you need the mouse for clicking now
Logger.getLogger("de.lessvoid.nifty").setLevel(Level.SEVERE);
Logger.getLogger("NiftyInputEventHandlingLog").setLevel(Level.SEVERE);
}[/java]
Is there some other place I need to be doing it? Because the tutorial just says put them after you add nifty, which it seems has been done by that point?