Contol Windwo Update. Velocity Change implemented. FONT and some other Var and method needs to be implemented in the GUI class not in Menu Window

Database Update
This commit is contained in:
Noah
2021-12-01 12:40:11 +01:00
parent 1b05840e5b
commit 031e7ee47d
7 changed files with 196 additions and 37 deletions
+2 -8
View File
@@ -1,8 +1,6 @@
package gui;
import game.StartMode;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
@@ -333,11 +331,7 @@ public class MenuWindow {
@Override
public void actionPerformed(ActionEvent e) {
int index = modeBox.getSelectedIndex();
StartMode startMode = StartMode.values()[index + 1]; // + 1 BECAUSE MANUEL HAS THE FIRST INDEX IN ENUM
gui.buildGameWindow(xAxisSize, yAxisSize, cellCount, startMode);
gui.buildGameWindow(xAxisSize, yAxisSize, cellCount, modeBox.getSelectedItem().toString());
menuWindow.setVisible(false);
}
@@ -359,7 +353,7 @@ public class MenuWindow {
manuelStart.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
gui.buildGameWindow(xAxisSize, yAxisSize, cellCount, StartMode.Manuel);
gui.buildGameWindow(xAxisSize, yAxisSize, cellCount, "Manuel");
menuWindow.setVisible(false);
}
});