Examples of TextButton


Examples of com.aem.sticky.button.TextButton

      final StickyListener listener,
      Sound buttonSound
  ) throws SlickException {
   
    this.textButton =
      new TextButton(centerX, centerY, this.buttonText, buttonSound);
     
    listener.add(this.textButton);
     
    this.textButton.addListener(new SimpleClickListener() {
      @Override
View Full Code Here

Examples of com.aem.sticky.button.TextButton

   
    List<String> levelNames = this.getLevelNames();
   
    for(int i = 0; i < levelNames.size(); i++){
     
      TextButton button = new TextButton(
          x,
          y + i * (BUTTON_HEIGHT + 4),
          levelNames.get(i),
          buttonSound
      );
     
      this._buttonListener.add(button);
      this._levelButtons.add(button);
      this._buttonsToFiles.put(button, levelNames.get(i));
     
      button.addListener(new ClickListener() {
       
        @Override
        public void onClick(
            com.aem.sticky.button.Button arg0,
            float arg1,
View Full Code Here

Examples of com.aem.sticky.button.TextButton

   * @throws SlickException
   */
  protected void createBackButton(GameContainer container, Sound buttonSound)
    throws SlickException {
   
    TextButton button = new TextButton(
        10,
        10 + (this._levelButtons.size()) * (BUTTON_HEIGHT + 2),
        STR_BACK,
        buttonSound
    );
   
    this._buttonListener.add(button);
    this._backButton = button;
   
    button.addListener(new ClickListener() {
     
      @Override
      public void onClick(Button arg0, float arg1, float arg2) {
        // enters the menu state:
        _stateBasedGame.enterState(VisualBurglar.STATE_MENU)
View Full Code Here

Examples of com.aem.sticky.button.TextButton

     
      String buttonText =
          STR_ACTIVATE + " (" + Player.PENALTY_OBJECT_ACTIVATED + ")";
     
      this._activateButton =
          new TextButton(x, y, buttonText, buttonSound);
     
      this._activateButton.setColor(Color.magenta);
     
      listener.add(this._activateButton);
     
View Full Code Here

Examples of com.aem.sticky.button.TextButton

     
      String buttonText =
          STR_CLOSE + " (" + Player.PENALTY_OBJECT_CLOSED + ")";
     
      this._closeButton =
          new TextButton(x, y, buttonText, buttonSound);
     
      this._closeButton.setColor(Color.magenta);
     
      listener.add(this._closeButton);
     
View Full Code Here

Examples of com.aem.sticky.button.TextButton

      float y = - BUTTON_HEIGHT;
     
      String buttonText =
          STR_LOCK + " (" + Player.PENALTY_OBJECT_LOCKED + ")";
     
      this._lockButton = new TextButton(x, y, buttonText, buttonSound);
     
      this._lockButton.setColor(Color.magenta);
     
      listener.add(this._lockButton);
     
View Full Code Here

Examples of com.aem.sticky.button.TextButton

     
      String buttonText =
          STR_CLOSE + " + " + STR_LOCK +
          " (" + (Player.PENALTY_OBJECT_CLOSED + Player.PENALTY_OBJECT_LOCKED) + ")";
     
      this._closeLockButton = new TextButton(x, y, buttonText, buttonSound);
     
      this._closeLockButton.setColor(Color.magenta);
     
      listener.add(this._closeLockButton);
     
View Full Code Here

Examples of com.arjuna.ats.tools.toolsframework.components.TextButton

    gbc.insets.bottom = 0;
    gbl.setConstraints(_description, gbc);
    this.add(_description);

    /** Add View attributes and methods text button **/
    TextButton viewButton = new TextButton(VIEW_BUTTON_TEXT, DetailPanel.NORMAL_COLOR, DetailPanel.OVER_COLOR, DetailPanel.DOWN_COLOR);
    _hideableComponents.add(viewButton);
    viewButton.setVisible(false);
    label.setFont(label.getFont().deriveFont(Font.PLAIN));
    gbc.gridx = 0;
    gbc.gridy = 7;
    gbc.fill = GridBagConstraints.NONE;
    gbc.gridwidth = 1;
    gbc.insets.top = 0;
    gbc.insets.left = 10;
    gbc.insets.right = 10;
    gbc.insets.bottom = 10;
    gbl.setConstraints(viewButton, gbc);
    this.add(viewButton);

    viewButton.addActionListener(this);
  }
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.TextButton

        table.row().height(20);
        table.add(labelScore).center().pad(5f);

        // El usuario ya ha rellenado su nombre
        if (done) {
            TextButton quitButton = new TextButton("MAIN MENU", game.getSkin());
            quitButton.addListener(new ClickListener() {
                public void touchUp(InputEvent event, float x, float y, int pointer, int button) {

                    game.setScreen(new MainMenuScreen(game));
                }
            });

            table.row().height(70);
            table.add(quitButton).center().width(300).pad(5f);
        }
        else {
            // El usuario aún no he escrito su nombre
            final TextField nameTextField = new TextField("TYPE YOUR NAME", game.getSkin());

            TextButton quitButton = new TextButton("OK", game.getSkin());
            quitButton.addListener(new ClickListener() {
                public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
                    ConfigurationManager.addScores(nameTextField.getText(), game.score);
                    stage.clear();
                    done = true;
                    loadScreen();
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.TextButton

    return t;
  }

  private Table buildPanelActionButtons( final Table topPanel, final float yWhenShown, final float yWhenHidden ) {
    TextButton btnShowHide = ResourceFactory.newButton( "Show/hide panel", new ClickListener() {
      @Override
      public void clicked( InputEvent event, float x, float y ) {
        if( !panelShown ) {
          topPanel.addAction( Actions.moveTo( topPanel.getX(), yWhenShown, 0.5f, Interpolation.exp10 ) );
          topPanel.addAction( Actions.alpha( 1f, 0.5f, Interpolation.exp10 ) );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.