setDisplayStatView(false) doesn’t work

Hey JME people

So I wanted to apply some changes to the settings of SimpleApplication. This is what I have in my main

[java] AppSettings appSettings = new AppSettings(true);

appSettings.setTitle("Infected Zone");

appSettings.setResolution(1440, 900);

appSettings.setFullscreen(true);

Application3D app = new Application3D();

app.setSettings(appSettings);

app.setShowSettings(false);

app.start();

app.setDisplayStatView(false);[/java]

But the stats are still appearing when I run my game. Can someone give me a solution for this?

You are setting it to true… so of course the above code turns stats on.



Is it a typo in translation or is the code accurately reflecting your real code?

My bad, it was a typo. I corrected my first post.

If it still fails with set false… then it may have to be done in simpleInitApp or whatever.

1 Like

Thank you very much. That did the trick :D.

said: CuraheeQ



AppSettings appSettings = new AppSettings(true);

appSettings.setTitle(“Infected Zone”);

appSettings.setResolution(1440, 900);

appSettings.setFullscreen(true);

Application3D app = new Application3D();

app.setSettings(appSettings);

app.setShowSettings(false);

app.start();

app.setDisplayStatView(false);



why if i put the code app.setDisplayStatView(false); error was found???

what is my mistake??

What error?



Are you running alpha 4 or beta?



Does Appliction3D extend SimpleApplication?

Just put this in simpleInitApp:

setDisplayStatsView(false);

I still point out that it actually is: “setDisplayStatView(false)” and not “stats”. The method is improperly named in my opinion but not much to do about it now. :wink:

jinjie said:
said: CuraheeQ

AppSettings appSettings = new AppSettings(true);
appSettings.setTitle("Infected Zone");
appSettings.setResolution(1440, 900);
appSettings.setFullscreen(true);
Application3D app = new Application3D();
app.setSettings(appSettings);
app.setShowSettings(false);
app.start();
app.setDisplayStatView(false);

why if i put the code app.setDisplayStatView(false); error was found???
what is my mistake??

what i said in the other thread...


pspeed said:
I still point out that it actually is: "setDisplayStatView(false)" and not "stats". The method is improperly named in my opinion but not much to do about it now. ;)

erf.....a typo after beta...we're doomed