Nice stuff is Done. Some GUI and Code Structure.
This commit is contained in:
@@ -347,6 +347,8 @@ public class MenuWindow {
|
||||
StartMode startMode = StartMode.values()[index + 1]; // + 1 BECAUSE MANUEL HAS THE FIRST INDEX IN ENUM
|
||||
|
||||
gui.buildGameWindow(xAxisSize, yAxisSize, cellCount, startMode);
|
||||
|
||||
menuWindow.setVisible(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -367,6 +369,7 @@ public class MenuWindow {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
gui.buildGameWindow(xAxisSize, yAxisSize, cellCount, StartMode.Manuel);
|
||||
menuWindow.setVisible(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -411,4 +414,8 @@ public class MenuWindow {
|
||||
comboBox.addItem(entry);
|
||||
}
|
||||
|
||||
public void setVisibility(boolean visibility){
|
||||
menuWindow.setVisible(visibility);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user