setDialogBehaviour for StandardGame

Hi,



First of all I am a real noob, I just starded with jme 2 days ago.



I so far I have been programming with SimpleGame and going through the toturials I have learned that StandardGame is away better than SimpleGame.



Is there a possibilty to use the SimpleGame.setDialogBehaviour() method in combination with StandardGame?



My attempt was somthing like this:



StandardGame sg =new StandardGame("Standard");

sg.setDialogBehaviour(2,file+"Worldbuilder.jpg");

GameSettingsPanel.prompt(sg.getSettings());

sg.start();



So how do I have to change the code, so that setDialogBehaviour works?



betlor5

That isn't supported in StandardGame.  There is a new way to display a dialog for settings:


      // Instantiate StandardGame
      StandardGame game = new StandardGame("A Simple Test");
      // Show settings screen
      GameSettingsPanel.prompt(game.getSettings());
      // Start StandardGame, it will block until it has initialized successfully, then return
      game.start();



That code is taken from TestStandardGame.  I would recommend looking at it for some further details.