浏览代码

Revert "Enabled save for terrain"

This reverts commit 8cd0ea7e1d71093ae8755745cc578f3d40fadeb0.
Supermaniac101 10 年之前
父节点
当前提交
d26b81fe75
共有 2 个文件被更改,包括 2 次插入22 次删除
  1. 2 15
      src/gui/frames/MainFrame.java
  2. 0 7
      src/gui/menubar/MenuBar.java

+ 2 - 15
src/gui/frames/MainFrame.java

@@ -39,9 +39,8 @@ public class MainFrame extends JFrame{
 		this.setJMenuBar(new MenuBar(this));
 		this.setVisible(true);
 		
-		this.length = -999;
-		this.width = -999;
-		this.terrain = -999;
+		this.length = 1000;
+		this.width = 1000;
 		
 		this.getContentPane().setBackground( Color.WHITE );
 
@@ -91,18 +90,6 @@ public class MainFrame extends JFrame{
     	this.width = width;
     }
     
-    public int getTerrain(){
-    	return this.terrain;
-    }
-
-    public int getLength(){
-    	return this.length;
-    }
-    
-    public int getWidth(){
-    	return this.width;
-    }
-    
     private void updateView(JPanel panel){
         this.currentPanel = panel;
         this.setContentPane(this.currentPanel);

+ 0 - 7
src/gui/menubar/MenuBar.java

@@ -148,14 +148,7 @@ public class MenuBar extends JMenuBar{
 			@Override
 			public void actionPerformed(ActionEvent e) {
 				System.out.println("Simulator View");
-				
-				if(mainFrame.getTerrain() == -999 ||
-						mainFrame.getLength() == -999 ||
-						mainFrame.getWidth() == -999){
 				new SimulatorDialogPane(mainFrame);
-				} else {
-					mainFrame.changeView(MainFrame.Views.SIMULATOR);
-				}
 			}
 		});