Fixed: LeaderBoardScene

This commit is contained in:
rubenpirreram
2026-05-19 15:32:49 +02:00
parent 236338993e
commit 6337e3fdee
@@ -19,6 +19,7 @@ import javafx.util.Duration;
import java.io.IOException; 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; import static it.polimi.ingsw.gc14.Model.GamePackage.GameStages.TOTEM_CHOICE;
public class GUI extends Application implements IView { public class GUI extends Application implements IView {
@@ -140,6 +141,9 @@ public class GUI extends Application implements IView {
if (controller.miniModel.currentState.getGameStage() == TOTEM_CHOICE) { if (controller.miniModel.currentState.getGameStage() == TOTEM_CHOICE) {
primaryStage.setScene(totemScene); primaryStage.setScene(totemScene);
controllerTotem.render(); controllerTotem.render();
} else if (controller.miniModel.currentState.getGameStage() == ENDED){
primaryStage.setScene(leaderboardScene);
controllerLeaderboard.render();
}else { }else {
primaryStage.setScene(mainScene); primaryStage.setScene(mainScene);
controllerMain.render(); controllerMain.render();