Package com.drakulo.games.ais.ui.component.button

Examples of com.drakulo.games.ais.ui.component.button.ImageButton.disable()


          });
          btn.show();
          if (getSelectedBuildingAction() == null) {
            btn.enable();
          } else {
            btn.disable();
          }
          if (btn.isHovered()) {
            showUpgradeCost(sa.getCostMap(), g, btn);
          }
          col++;
View Full Code Here


    // Robots actions
    // Terrabot (terrain preparation)

    Button terrabotButton = new ImageButton("TERRABOT", x, y);
    terrabotButton.disable();
    // TODO why the terrabutton size is fucked?
    terrabotButton.setSize(ImageButton.IB_DEFAULT_SIZE,
        ImageButton.IB_DEFAULT_SIZE);
    terrabotButton.setActionHandler(new ActionHandler() {
View Full Code Here

      @Override
      public void run() {
        displayBuildingData(type);
      }
    });
    button.disable();
    return button;
  }

  @Override
  public void render(Graphics g) throws SlickException {
View Full Code Here

    }

    // Terrabot
    ImageButton terrabotButton = new ImageButton("terrabot", x, y);
    terrabotButton.setTitle(I18n.get("terrabot"));
    terrabotButton.disable();
    terrabotButton.setActionHandler(new ActionHandler() {

      @Override
      public void run() {
        PreparationAction pa = BuildingHelper.create(GameData
View Full Code Here

            .getLevelData(0);
        BuildWindow.this.costMap = data.getUpgradeCost();
        earnMap = data.getProduction();
      }
    });
    button.disable();
    button.hide();
    parent.add(button);
    return button;
  }
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.