public void windowClosed (WindowEvent event) { //System.exit(0); Gdx.app.exit(); } });
public void windowClosed (WindowEvent event) { //System.exit(0); Gdx.app.exit(); } });
@Override public void render () { if (Gdx.input.justTouched()) Gdx.app.exit(); }
@Override public void create () { TiledMapPacker packer = new TiledMapPacker(packerSettings); if (!inputDir.exists()) { System.out.println(inputDir.getAbsolutePath()); throw new RuntimeException("Input directory does not exist: " + inputDir); } try { packer.processInputDir(texturePackerSettings); } catch (IOException e) { throw new RuntimeException("Error processing map: " + e.getMessage()); } System.out.println("Finished processing."); Gdx.app.exit(); } }, config);
@Override public void create () { TiledMapPacker packer = new TiledMapPacker(packerSettings); if (!inputDir.exists()) { System.out.println(inputDir.getAbsolutePath()); throw new RuntimeException("Input directory does not exist: " + inputDir); } try { packer.processInputDir(texturePackerSettings); } catch (IOException e) { throw new RuntimeException("Error processing map: " + e.getMessage()); } System.out.println("Finished processing."); Gdx.app.exit(); } }, config);
@Signature public PGdxGame exit() { Gdx.app.exit(); return this; }
@Override public void render () { Gdx.gl.glClearColor(0, 0, 0, 1f); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); viewport.apply(); mapRenderer.setView(cam); mapRenderer.render(); if (Gdx.input.isKeyPressed(Keys.ESCAPE)) { if (DELETE_DELETEME_FOLDER_ON_EXIT) { FileHandle deleteMeHandle = Gdx.files.local(MAP_PATH); deleteMeHandle.deleteDirectory(); } dispose(); Gdx.app.exit(); } }
@Override public void render () { Gdx.gl.glClearColor(0, 0, 0, 1f); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); viewport.apply(); mapRenderer.setView(cam); mapRenderer.render(); if (Gdx.input.isKeyPressed(Keys.ESCAPE)) { if (DELETE_DELETEME_FOLDER_ON_EXIT) { FileHandle deleteMeHandle = Gdx.files.local(MAP_PATH); deleteMeHandle.deleteDirectory(); } dispose(); Gdx.app.exit(); } }
Gdx.app.exit();
Gdx.app.exit();
if (shader.isCompiled() == false) { Gdx.app.log("ShaderTest", shader.getLog()); Gdx.app.exit();
if (shader.isCompiled() == false) { Gdx.app.log("ShaderTest", shader.getLog()); Gdx.app.exit();
@Override public void clicked(InputEvent event, float x, float y) { Gdx.app.exit(); } });
public void windowClosed (WindowEvent event) { //System.exit(0); Gdx.app.exit(); } });
@Override public void create() { init(args); Gdx.app.exit(); }
@Override public void clicked(InputEvent event, float x, float y) { Gdx.app.log(TAG, "Dialog, Exit"); Gdx.app.exit(); }; });
@Override public void clicked(InputEvent event, float x, float y) { Gdx.app.log(TAG, "EXIT"); Gdx.app.exit(); }; });
/** * Called when the {@link com.badlogic.gdx.Application} is destroyed. Preceded by a call to {@link #pause()}. */ @Override public void dispose() { nifty.exit(); // Quit Nifty and dispose of all Nifty's resources. assetManager.dispose(); // Dispose all assets (resources) in the AssetManager and stop all asynchronous loading. Gdx.app.exit(); // Schedule an exit from the LibGDX application. } }
@Override public void clicked(InputEvent event, float x, float y) { if (world.getCurrentScene() == null) try { world.load(); } catch (Exception e) { Gdx.app.exit(); } ui.setCurrentScreen(Screens.SCENE_SCREEN); } });
public void setTextManagerUI(Actor a) { if (a instanceof ITextManagerUI) { textManagerUI.remove(); textManagerUI = a; stage.addActor(textManagerUI); } else { EngineLogger.error("ERROR setTextManagerUI: actor is not a ITextManagerUI"); dispose(); Gdx.app.exit(); } }