Package com.badlogic.gdx.scenes.scene2d.utils

Examples of com.badlogic.gdx.scenes.scene2d.utils.ClickListener


      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;
          playPauseButton.setText(isUpdate ? "Pause" : "Play");
        }
View Full Code Here


    setSize(getPrefWidth(), getPrefHeight());

    scroll = new ListScroll();
    selection = scroll.list.getSelection();

    addListener(clickListener = new ClickListener() {
      public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
        if (pointer == 0 && button != 0) return false;
        if (disabled) return false;
        showList();
        return true;
View Full Code Here

        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));
            }
View Full Code Here

        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);
            }
        });
View Full Code Here

        public void changed (ChangeEvent event, Actor actor) {
          if (skeleton != null) skeleton.setSlotsToSetupPose();
        }
      });

      minimizeButton.addListener(new ClickListener() {
        public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
          event.cancel();
          return super.touchDown(event, x, y, pointer, button);
        }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.scenes.scene2d.utils.ClickListener

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.