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

Examples of com.googlecode.jumpnevolve.graphics.gui.objects.InterfaceButton


    this.gui = new MainGUI(this);
    this.gui.maximizeSize();

    // Liste mit Spielfiguren erstellen
    ButtonList selectList = new ButtonList(2, 10);
    selectList.addButton(new InterfaceButton(
        InterfaceFunctions.FIGURE_ROLLING_BALL, Input.KEY_1,
        "object-pictures/figure-rolling-ball.png"));
    selectList.addButton(new InterfaceButton(
        InterfaceFunctions.FIGURE_JUMPING_CROSS, Input.KEY_2,
        "object-pictures/figure-cross.png"));

    // Finish-Dialog erstellen
    this.finishDialog = new Dialog();
View Full Code Here


   */
  public ButtonList(int numberOfButtonDisplayed, int distanceBetweenButtons) {
    super();
    this.numberOfButtonsDisplayed = numberOfButtonDisplayed;
    this.distanceBetweenButtons = distanceBetweenButtons;
    InterfaceButton back = new InterfaceButton(
        InterfaceFunctions.INTERFACE_BUTTONLIST_BACK,
        "interface-icons/back-arrow.png"), forth = new InterfaceButton(
        InterfaceFunctions.INTERFACE_BUTTONLIST_FORTH,
        "interface-icons/forth-arrow.png");
    this.list.put(BACK_POS, back);
    this.invertList.put(back, BACK_POS);
    this.add(back, Vector.ZERO);
    this.list.put(FORTH_POS, forth);
    this.invertList.put(forth, FORTH_POS);
    this.add(forth, Vector.ZERO);
    back.addInformable(this);
    forth.addInformable(this);
  }
View Full Code Here

    topGrid.add(new InterfaceTextButton(InterfaceFunctions.EDITOR_DATA,
        "Data"), 0, 4);
    topGrid.enableBackground();

    // Löschen-Button erstellen
    InterfaceButton deleteButton = new InterfaceButton(
        InterfaceFunctions.EDITOR_DELETE, "interface-icons/delete.png");

    // Auswahlliste für die GameObjects erstellen
    ButtonList selectList = new ButtonList(6, 10);
    for (GameObjects obj : GameObjects.values()) {
      selectList.addButton(new InterfaceButton(obj,
          obj.editorSkinFileName));
    }

    // BorderContainer für die Oberfläche erstellen und befüllen
    BorderContainer border = new BorderContainer();
View Full Code Here

TOP

Related Classes of com.googlecode.jumpnevolve.graphics.gui.objects.InterfaceButton

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.