Commit f7537e79 authored by Stefan Michel's avatar Stefan Michel

- methoden koennen jetzt ueber das contextmenu ausgefuehrt werden.

parent cc0c08da
......@@ -49,6 +49,7 @@ public class MainViewCreationFX extends VBox {
public MainViewCreationFX(Terrain terrain, ITerrainController terrainController, IInputOutputController ioController,
IHamsterController hamsterController) {
this.terrainController = terrainController;
this.ioController = ioController;
this.hamsterController = hamsterController;
......@@ -57,16 +58,13 @@ public class MainViewCreationFX extends VBox {
//Territory Pane erstellen
territoriumPanel = new TerritoriumPanelFX(terrain, terrainController);
contextMenu = new ContextMenu();
buildContextMenu();
ScrollPane terrainPane = new ScrollPane(territoriumPanel);
terrainPane.setPrefSize(TerritoriumPanelFX.TILE_SIZE * terrain.getMaxCols(),
TerritoriumPanelFX.TILE_SIZE * terrain.getMaxRows());
//center erstellenRegion
SplitPane splitPane = new SplitPane();
......@@ -77,10 +75,8 @@ public class MainViewCreationFX extends VBox {
buildMenuBarFX();
//toolbar erstellen
buildToolBarFX();
splitPane.getItems().addAll(textArea, terrainPane);
//TODO anderen weg finden das center den gesamten bereich ausfuellt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment