Package com.aem.sticky.button

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


   
    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

   * @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

     
      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

     
      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

      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

     
      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

      float y = - BUTTON_HEIGHT;
     
      String buttonText = STR_CANCEL;
     
      this._cancelButton =
          new TextButton(x, y, buttonText, buttonSound);
     
      this._cancelButton.setColor(Color.magenta);
     
      listener.add(this._cancelButton);
     
View Full Code Here

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

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

TOP

Related Classes of com.aem.sticky.button.TextButton

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.