Controls button in title screen now opens the key mapping menu. #story[1197]
This commit is contained in:
@@ -89,7 +89,7 @@ public class TitleController extends Controller {
|
|||||||
*/
|
*/
|
||||||
public void controlBtnPressed(){
|
public void controlBtnPressed(){
|
||||||
FXMLLoader loader = new FXMLLoader();
|
FXMLLoader loader = new FXMLLoader();
|
||||||
loader.setLocation(getClass().getResource("/visualiser/scenes/controls.fxml"));
|
loader.setLocation(getClass().getResource("/visualiser/scenes/keyBindings.fxml"));
|
||||||
Parent layout;
|
Parent layout;
|
||||||
try {
|
try {
|
||||||
layout = loader.load();
|
layout = loader.load();
|
||||||
|
|||||||
@@ -168,14 +168,6 @@ public class App extends Application {
|
|||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: remove later, just for testing
|
|
||||||
Parent root2 = FXMLLoader.load(getClass().getResource
|
|
||||||
("/visualiser/scenes/keyBindings.fxml"));
|
|
||||||
Stage stage2 = new Stage();
|
|
||||||
stage2.setScene(new Scene(root2));
|
|
||||||
stage2.centerOnScreen();
|
|
||||||
stage2.show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user