Control Window Update. Control Window may need a Recontruction.
This commit is contained in:
+10
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user