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(){
|
||||
FXMLLoader loader = new FXMLLoader();
|
||||
loader.setLocation(getClass().getResource("/visualiser/scenes/controls.fxml"));
|
||||
loader.setLocation(getClass().getResource("/visualiser/scenes/keyBindings.fxml"));
|
||||
Parent layout;
|
||||
try {
|
||||
layout = loader.load();
|
||||
|
||||
@@ -168,14 +168,6 @@ public class App extends Application {
|
||||
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