Control Window Update. Control Window may need a Recontruction.

This commit is contained in:
Noah
2021-10-04 21:00:10 +02:00
parent 3577889091
commit 054de595c3
4 changed files with 48 additions and 9 deletions
+10 -1
View File
@@ -39,7 +39,12 @@ public class GameWindow {
@Override
public void keyPressed(KeyEvent e) {
if (e.isControlDown() && e.isAltDown() && e.getKeyCode() == KeyEvent.VK_C) {
control.createControlWindow();
if (control.getControlWindow() == null){
control.buildControlWindow();
} else {
control.setVisibility(true);
}
}
}
@@ -129,6 +134,10 @@ public class GameWindow {
}
}
public Point getPos(){
return gameWindow.getLocation();
}
}