Fixed: LeaderBoardScene
This commit is contained in:
@@ -19,6 +19,7 @@ import javafx.util.Duration;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import static it.polimi.ingsw.gc14.Model.GamePackage.GameStages.ENDED;
|
||||
import static it.polimi.ingsw.gc14.Model.GamePackage.GameStages.TOTEM_CHOICE;
|
||||
|
||||
public class GUI extends Application implements IView {
|
||||
@@ -140,7 +141,10 @@ public class GUI extends Application implements IView {
|
||||
if (controller.miniModel.currentState.getGameStage() == TOTEM_CHOICE) {
|
||||
primaryStage.setScene(totemScene);
|
||||
controllerTotem.render();
|
||||
} else {
|
||||
} else if (controller.miniModel.currentState.getGameStage() == ENDED){
|
||||
primaryStage.setScene(leaderboardScene);
|
||||
controllerLeaderboard.render();
|
||||
}else {
|
||||
primaryStage.setScene(mainScene);
|
||||
controllerMain.render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user