/** Calls {@link #update(int, int, boolean)} with false. */ public final void update (int screenWidth, int screenHeight) { update(screenWidth, screenHeight, false); }
public void resize (int width, int height) { System.out.println(name); viewport.update(width, height); } }
@Override public void resize (int width, int height) { ui.getViewport().update(width, height, true); } }
public void resize (int width, int height) { stage.getViewport().update(width, height, true); // Gdx.gl.glViewport(100, 100, width - 200, height - 200); // stage.setViewport(800, 600, false, 100, 100, width - 200, height - 200); }
@Override public void resize (int width, int height) { stage.getViewport().update(width, height, true); } }
@Override public void resize (int width, int height) { stage.getViewport().update(width, height, true); // root.width = width; // root.height = height; // root.invalidate(); }
@Override public void resize (int width, int height) { hud.getViewport().update(width, height, true); }
@Override public void resize (int width, int height) { stage.getViewport().update(width, height, true); } }
public void resize (int width, int height) { stage.getViewport().update(width, height, true); // Gdx.gl.glViewport(100, 100, width - 200, height - 200); // stage.setViewport(800, 600, false, 100, 100, width - 200, height - 200); }
/** Creates a stage with the specified viewport and batch. This can be used to avoid creating a new batch (which can be * somewhat slow) if multiple stages are used during an application's life time. * @param batch Will not be disposed if {@link #dispose()} is called, handle disposal yourself. */ public Stage (Viewport viewport, Batch batch) { if (viewport == null) throw new IllegalArgumentException("viewport cannot be null."); if (batch == null) throw new IllegalArgumentException("batch cannot be null."); this.viewport = viewport; this.batch = batch; root = new Group(); root.setStage(this); viewport.update(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), true); }
public void resize (int width, int height) { ui.getViewport().update(width, height, true); container.setSize(width, height); if (test != null) { test.resize(width, height); } }
@Override public void resize (int width, int height) { stage.getViewport().update(width, height, true); batch.getProjectionMatrix().setToOrtho2D(0, 0, width, height); } }
@Override public void resize (int width, int height) { ui.setSize(width, height); ui.invalidate(); stage.getViewport().update(width, height, true); }
@Override public void resize (int width, int height) { super.resize(width, height); ui.getViewport().setWorldSize(width, height); ui.getViewport().update(width, height, true); }
@Override public void resize (int width, int height) { super.resize(width, height); hud.getViewport().update(width, height, true); hudWidth = hud.getWidth(); hudHeight = hud.getHeight(); }
public void resize (int width, int height) { spriteBatch.getProjectionMatrix().setToOrtho2D(0, 0, width, height); renderer.setProjectionMatrix(spriteBatch.getProjectionMatrix()); stage.getViewport().update(width, height, true); }
public void resize (int width, int height) { stage.getViewport().update(width, height, true); table.invalidateHierarchy(); renderer.setProjectionMatrix(stage.getViewport().getCamera().combined); graphSize = 0.75f * Math.min(stage.getViewport().getWorldWidth(), stage.getViewport().getWorldHeight()); steps = graphSize * 0.5f; }
@Override public void resize (int width, int height) { Gdx.input.setInputProcessor(new InputMultiplexer(ui, cameraInputController)); Gdx.gl.glViewport(0, 0, width, height); worldCamera.viewportWidth = width; worldCamera.viewportHeight = height; worldCamera.update(); ui.getViewport().setWorldSize(width, height); ui.getViewport().update(width, height, true); }
@Override public void resize (int width, int height) { Gdx.input.setInputProcessor(new InputMultiplexer(ui, cameraInputController)); Gdx.gl.glViewport(0, 0, width, height); worldCamera.viewportWidth = width; worldCamera.viewportHeight = height; worldCamera.update(); ui.getViewport().setWorldSize(width, height); ui.getViewport().update(width, height, true); }