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 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();
}