Package com.googlecode.jumpnevolve.graphics.gui.container

Examples of com.googlecode.jumpnevolve.graphics.gui.container.GridContainer


    this.finishDialog = new Dialog();
    this.finishDialog.addTextButton(InterfaceFunctions.LEVEL_EXIT,
        "Level beenden");

    // GridContainer für das Interface erstellen und setzen
    GridContainer grid = new GridContainer(3, 3);
    grid.add(selectList, 0, 2, GridContainer.MODUS_X_RIGHT,
        GridContainer.MODUS_Y_UP);
    grid.add(this.finishDialog, 2, 1);
    grid.maximizeSize();
    this.gui.setMainContainer(grid);

    this.figure = new PlayerFigure(parent, startPosition, this);
    this.setFigures(avaiableFigures, startFigure);
    this.setActivSavepoint(this.figure.getPosition());
View Full Code Here


   * @param levelPath
   *            Der Ordner, in dem sich die Level befinden, es werden auch die
   *            Unterordner durchsucht
   */
  public LevelSelection(Menu parent, String levelPath, String name) {
    super(parent, new GridContainer(1, 1), name);

    this.levels = new ArrayList<String>();

    if (levelPath.startsWith(Parameter.PROGRAMM_DIRECTORY_LEVELS)) {
      // Level auf normale Art lokalisieren, wenn im Userverzeichnis
      // gesucht werden soll
      this.levelPath = levelPath;
      this.levels = this.defaultFileSearch();
    } else {
      if (JarHandler.existJar()) {

        this.levelPath = "/" + levelPath;

        // Wenn das Jar-Archiv existiert, dann Level aus dem Archiv
        // laden
        this.levels = this.jarFileSearch();

      } else {
        // Levelpfad um "resources/" ergänzen, wenn das Programm nicht
        // aus einem Jar-Archiv geladen
        if (!levelPath.startsWith("resources/")) {
          levelPath = "resources/" + levelPath;
        }
        this.levelPath = levelPath;

        // Wenn Laden der Level aus Jar-Archiv nicht funktioniert, Level
        // nach normalem Schema laden
        this.levels = this.defaultFileSearch();
      }
    }

    // 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();
    this.setMainContainer(grid);
  }
View Full Code Here

  public final Menu parent;
  public final String name;

  public SubMenu(Menu parent, InterfaceContainer mainCon, String name) {
    super(new GridContainer(1, 1, GridContainer.MODUS_X_RIGHT,
        GridContainer.MODUS_Y_UP), mainCon);
    this.parent = parent;
    this.name = name;
    InterfaceTextButton b = new InterfaceTextButton(
        InterfaceFunctions.MENU_BACKTOMAINMENU, "Hauptmenü");
View Full Code Here

    this("default");
  }

  public Menu(String background) {
    this.gui = new MainGUI(this);
    this.mainCon = new GridContainer(1, 1, GridContainer.MODUS_X_LEFT,
        GridContainer.MODUS_Y_UP);
    this.gui.setMainContainer(mainCon);
    this.setBackground(background);
  }
View Full Code Here

public class SimpleSubMenu extends SubMenu {

  private TextButtonList buttonList = new TextButtonList(6, 10);

  public SimpleSubMenu(Menu parent, String name) {
    super(parent, new GridContainer(1, 1), name);
    ((GridContainer) this.getMainContainer()).add(this.buttonList, 0, 0);
  }
View Full Code Here

    this.exitDialog.addTextButton(
        InterfaceFunctions.EDITOR_EXIT_WITHOUT_SAVE,
        "Ohne Speichern beenden");

    // Kopfzeile mit Buttons erstellen
    GridContainer topGrid = new GridContainer(1, 5,
        GridContainer.MODUS_DEFAULT, GridContainer.MODUS_Y_UP);
    topGrid.maximizeXRange();
    topGrid.add(new InterfaceTextButton(InterfaceFunctions.EDITOR_EXIT,
        "Exit"), 0, 0);
    topGrid.add(new InterfaceTextButton(InterfaceFunctions.EDITOR_SETTINGS,
        "Settings"), 0, 1);
    topGrid.add(new InterfaceTextButton(InterfaceFunctions.EDITOR_PLAYER,
        "Player"), 0, 2);
    topGrid.add(new InterfaceTextButton(InterfaceFunctions.EDITOR_CURRENT,
        "Current"), 0, 3);
    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");
View Full Code Here

TOP

Related Classes of com.googlecode.jumpnevolve.graphics.gui.container.GridContainer

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.