Package com.badlogic.gdx.scenes.scene2d.ui

Examples of com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle


    super();
    text = "Game Over";
    font = Configuration.bonzai32;
   
    LabelStyle ls = new LabelStyle(font,Color.WHITE);
    label = new Label(text, ls);
    label.setAlignment(Align.center);
  }
View Full Code Here


    this.text = message;
    this.font = font;
    this.id = id;
   
    LabelStyle ls = new LabelStyle(this.font,Color.WHITE);
    label = new Label(text, ls);
    label.setFontScale(1*Configuration.gameScale/20);
    label.setAlignment(Align.center);
  }
 
View Full Code Here

    });

   
 
    LabelStyle ls = new LabelStyle(bonzai,Color.WHITE);
    label = new Label("Test Game", ls);
    label.setX(0);
   
    label.setY(Gdx.graphics.getHeight()/2+100);
    label.setWidth(width);
    label.setAlignment(Align.center);
View Full Code Here

        game.setScreen(new GameScreen(game));
      }
    });
   
    LabelStyle ls = new LabelStyle(white, Color.WHITE);
    label = new Label("Angry Masons", ls);
    label.setX(0);
    label.setY(Gdx.graphics.getHeight() / 2 + 100);
    label.setWidth(width);
    label.setAlignment(Align.center);
View Full Code Here

        Table table = new Table(game.getSkin());
        table.setFillParent(true);
        table.center();

        Label title = new Label("JUMPER2DX", game.getSkin());
        title.setFontScale(2.5f);

        TextButton quickButton = new TextButton("RESUME", game.getSkin());
        quickButton.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
                dispose();
View Full Code Here

        Table table = new Table(game.getSkin());
        table.setFillParent(true);
        table.center();

        Label title = new Label("JUMPER2DX\nMAIN MENU", game.getSkin());
        title.setFontScale(2.5f);

        TextButton playButton = new TextButton("PLAY GAME", game.getSkin());
        playButton.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
                //dispose();
                game.setScreen(new GameScreen(game));
            }
        });
        TextButton optionsButton = new TextButton("OPTIONS", game.getSkin());
        optionsButton.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
                dispose();
                // FIXME ¿Menú de opciones?

            }
        });
        TextButton exitButton = new TextButton("QUIT GAME", game.getSkin());
        exitButton.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
                dispose();
                System.exit(0);
            }
        });

        Label aboutLabel = new Label("jumper2dx v0.2\n(c) Santiago Faci\nhttp://bitbucket.org/sfaci/jumper2dx", game.getSkin());
        aboutLabel.setFontScale(1f);

        table.row().height(200);
        table.add(title).center().pad(35f);
        table.row().height(75);
        table.add(playButton).center().width(500).pad(5f);
View Full Code Here

     
      //Ui
      stringBuilder = new StringBuilder();
      Skin skin = assetManager.get(DEFAULT_SKIN, Skin.class);
      ui = new Stage();
      fpsLabel = new Label("", skin);
      pointCountLabel = new Label("", skin);
      billboardCountLabel = new Label("", skin);
      modelInstanceCountLabel = new Label("", skin);
     
      maxLabel = new Label("", skin);
      playPauseButton = new TextButton("Pause", skin);
      playPauseButton.addListener(new ClickListener(){
        @Override
        public void clicked (InputEvent event, float x, float y) {
          isUpdate = !isUpdate;
View Full Code Here

            actor = new ImageTextButton(marker.getText(), style);
        } else if (marker.getText() != null) {
            Label.LabelStyle style = new Label.LabelStyle();
            style.font = marker.getFont();

            actor = new Label(marker.getText(), style);
        } else if (marker.getImage() != null) {
            actor = new ImageButton(
                    new TextureRegionDrawable(
                    marker.getImage().getTextureRegion()));
        }
View Full Code Here

        Table table = new Table(game.getSkin());
        table.setFillParent(true);
        table.center();

        Label title = new Label("JBOMBERMANX\nSETTINGS", game.getSkin());
        title.setFontScale(2.5f);

        final CheckBox checkSound = new CheckBox("SOUND", game.getSkin());
        checkSound.setChecked(prefs.getBoolean("sound"));
        checkSound.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {

                prefs.putBoolean("sound", checkSound.isChecked());
            }
        });

        TextButton exitButton = new TextButton("MAIN MENU", game.getSkin());
        exitButton.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
                prefs.flush();
                dispose();
                game.setScreen(new MainMenuScreen(game));
            }
        });

        Label aboutLabel = new Label("jbombermanx v0.1\n(c) Santiago Faci\nhttp://bitbucket.org/sfaci/jbombermanx", game.getSkin());
        aboutLabel.setFontScale(1f);

        table.row().height(150);
        table.add(title).center().pad(35f);
        table.row().height(20);
        table.add(checkSound).center().pad(5f);
View Full Code Here

    Table table = new Table(game.getSkin());
        table.setFillParent(true);
        table.center();

        // Etiqueta de texto
        Label label = new Label("JBOMBERMANX", game.getSkin());
        label.setFontScale(2.5f);

        // Botones de menú
        TextButton playButton = new TextButton("NEW GAME", game.getSkin());
        playButton.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
                dispose();
                game.setScreen(new GameScreen(game));
            }
        });

        TextButton settingsButton = new TextButton("SETTINGS", game.getSkin());
        settingsButton.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
                dispose();
                game.setScreen(new ConfigurationScreen(game));
            }
        });

        TextButton quitButton = new TextButton("QUIT", game.getSkin());
        quitButton.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
                dispose();
                System.exit(0);
            }
        });

        Label aboutLabel = new Label("JBombermanx v0.1\n(c) Santiago Faci\nhttp://bitbucket.org/sfaci/bombermanx", game.getSkin());
        aboutLabel.setFontScale(1f);

        table.row().height(100);
        table.add(label).center().pad(35f);
        table.row().height(40);
        table.add(playButton).center().width(200).pad(5f);
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.