|
|
|
@ -107,6 +107,10 @@ public class StatsAppState extends AbstractAppState { |
|
|
|
|
showFps = show; |
|
|
|
|
if (fpsText != null) { |
|
|
|
|
fpsText.setCullHint(show ? CullHint.Never : CullHint.Always); |
|
|
|
|
if (darkenFps != null) { |
|
|
|
|
darkenFps.setCullHint(showFps && darkenBehind ? CullHint.Never : CullHint.Always); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -115,6 +119,9 @@ public class StatsAppState extends AbstractAppState { |
|
|
|
|
if (statsView != null ) { |
|
|
|
|
statsView.setEnabled(show); |
|
|
|
|
statsView.setCullHint(show ? CullHint.Never : CullHint.Always); |
|
|
|
|
if (darkenStats != null) { |
|
|
|
|
darkenStats.setCullHint(showStats && darkenBehind ? CullHint.Never : CullHint.Always); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -134,11 +141,13 @@ public class StatsAppState extends AbstractAppState { |
|
|
|
|
|
|
|
|
|
if (app instanceof SimpleApplication) { |
|
|
|
|
SimpleApplication simpleApp = (SimpleApplication)app; |
|
|
|
|
if (guiNode == null) |
|
|
|
|
if (guiNode == null) { |
|
|
|
|
guiNode = simpleApp.guiNode; |
|
|
|
|
if (guiFont == null ) |
|
|
|
|
} |
|
|
|
|
if (guiFont == null ) { |
|
|
|
|
guiFont = simpleApp.guiFont; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (guiNode == null) { |
|
|
|
|
throw new RuntimeException( "No guiNode specific and cannot be automatically determined." ); |
|
|
|
|