Merged in development.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user