User modified keybindings are persistently saved

- Works on windows computers
- KeyFactory processes its own XML saving/loading
- Does not work with Jar yet
- Changed keyFactory to static temporarily to work with existing FXML loading architecture

#story[1197]
This commit is contained in:
Jessica Syder
2017-09-03 20:44:27 +12:00
parent 3fdfbd83e0
commit cfa6fc37e0
5 changed files with 89 additions and 27 deletions
@@ -31,7 +31,6 @@ import visualiser.gameController.Keys.KeyFactory;
public class App extends Application {
private static Stage stage;
private Pane splashLayout;
private ProgressBar loadProgress;
@@ -39,7 +38,6 @@ public class App extends Application {
private static final int SPLASH_WIDTH = 676;
private static final int SPLASH_HEIGHT = 227;
public static KeyFactory keyFactory = new KeyFactory();
public static App app;
/**
@@ -53,6 +51,8 @@ public class App extends Application {
@Override
public void init() {
keyFactory.load();
ImageView splash = new ImageView(new Image(
getClass().getClassLoader().getResourceAsStream("images/splashScreen.png")
));