Im using the following code to attach my own custom game state and then a StatisticsGameState.
The problem is, after the FPS details no other stats are showing - example "FPS: 200 - null"
StandardGame game = new StandardGame("Game");
try {
GameSettingsPanel.prompt(game.getSettings());
} catch(InterruptedException e) {
e.printStackTrace();
System.exit(0);
}
game.setBackgroundColor(ColorRGBA.black);
game.start();
customState = new CustomState();
customState .setActive(true);
GameStateManager.getInstance().attachChild(customState );
StatisticsGameState stats = new StatisticsGameState();
stats.setActive(true);
GameStateManager.getInstance().attachChild(stats);
Also while im here, would be nice if someone setLookAndFeel from the UI object (forget which) on the GameSettingsPanel so it doesnt use Java's default (rubbish) appearance.