Package com.googlecode.jumpnevolve.graphics.gui.objects

Examples of com.googlecode.jumpnevolve.graphics.gui.objects.InterfaceTextButton.addInformable()


    // Button-Liste erstellen
    for (String file : this.levels) {
      InterfaceTextButton button = new InterfaceTextButton(
          InterfaceFunctions.LEVELSELECTION, file);
      button.addInformable(this);
      this.selectList.addTextButton(button);
    }
    GridContainer grid = new GridContainer(1, 1);
    grid.add(this.selectList, 0, 0);
    grid.maximizeSize();
View Full Code Here


        GridContainer.MODUS_Y_UP), mainCon);
    this.parent = parent;
    this.name = name;
    InterfaceTextButton b = new InterfaceTextButton(
        InterfaceFunctions.MENU_BACKTOMAINMENU, "Hauptmenü");
    b.addInformable(this);
    ((GridContainer) this.getHeadlineContainer()).add(b, 0, 0);
    mainCon.maximizeSize();
    this.getHeadlineContainer().maximizeXRange();
  }
View Full Code Here

  public Dialog() {
    this.enableBackground();
    this.setBackgroundColor(Color.darkGray);
    InterfaceTextButton closeButton = new InterfaceTextButton(
        InterfaceFunctions.DIALOG_CLOSE, "Dialog schließen");
    closeButton.addInformable(this);
    this.buttons.add(closeButton);
    this.updateCon();
    Dialog.Instances.add(this);
  }
View Full Code Here

    this.add(up, Vector.ZERO);
    this.list.put(DOWN_POS, down);
    this.invertList.put(down, DOWN_POS);
    this.add(down, Vector.ZERO);
    up.addInformable(this);
    down.addInformable(this);
    // TODO: Up- und Down-Button sollten für maxWidth betrachtet werden,
    // dies kann jedoch nicht hier geschehen, da sonst deren Größe aufgrund
    // der fehlenden Font noch nicht initialisiert ist
  }
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.