Merged in development.

This commit is contained in:
David Wu
2017-08-17 16:14:09 +12:00
parent 288979be3b
commit 9f813ab7aa
2 changed files with 11 additions and 6 deletions
@@ -144,7 +144,7 @@ public class RaceController extends Controller {
if (result.get() == ButtonType.OK) {
parent.endEvent();
race.setVisible(false);
App.app.loadStart(App.getStage());
App.app.showMainStage(App.getStage());
}
} else {
Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
@@ -153,11 +153,13 @@ public class RaceController extends Controller {
Optional<ButtonType> result = alert.showAndWait();
if (result.get() == ButtonType.OK) {
race.setVisible(false);
App.app.loadStart(App.getStage());
App.app.showMainStage(App.getStage());
}
}
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
}
});
@@ -469,9 +471,11 @@ public class RaceController extends Controller {
race.setVisible(false);
//parent.enterTitle();
try {
App.app.loadStart(App.getStage());
App.app.showMainStage(App.getStage());
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
//TODO currently this doesn't work correctly - the title screen remains visible after clicking join game
//TODO we should display an error to the user