public void showMenu() { continua = new TextButton("CONTINUA", Assets.getInstance().getButtonStyle()); continua.setPosition(100, 400); toMenu = new TextButton("MENIU", Assets.getInstance().getButtonStyle()); group = new Group(); group.setSize(100, 100); group.addActor(continua); group.addActor(toMenu); group.setPosition(100, 400); Table table = new Table(); table.add(continua); table.setPosition(100, 400); // stage.addActor(table); // stage.addActor(continua); }
@Override public void show() { logger = new FPSLogger(); batch = new SpriteBatch(); // playButton = new Sprite(new Texture(Gdx.files.internal("ui/play.png"))); // pauseButton = new Sprite(new Texture(Gdx.files.internal("ui/pause.png"))); font = Assets.getInstance().getFont(); tweenFont = Assets.getInstance().getFont(); tweenFont.setColor(Color.GREEN); tweenFont.setX(300); tweenFont.setY(780); manager = new TweenManager(); stage = new Scena(this); matriceLitere = Assets.getInstance().getMatriceLitere(); camera = new OrthographicCamera(); camera.position.set(480 / 2, 800 / 2, 0); camera.update(); shapeRend = new ShapeRenderer(); viewPort = new StretchViewport(480, 800); viewPort.setCamera(camera); stage.setViewport(viewPort); for (int i = 10; i >= 0; i--) { for (int j = 0; j < 7; j++) { stage.addActor(matriceLitere[i][j]); } } Gdx.input.setInputProcessor(stage); stage.unfocusAll(); }