This commit is contained in:
Anuken
2025-08-17 10:22:22 -04:00
parent 76da302458
commit 1fe5055a96
5 changed files with 14 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ public class GameOverDialog extends BaseDialog{
public void show(Team winner){
this.winner = winner;
state.afterGameOver = true;
show();
if(winner == player.team()){
Events.fire(new WinEvent());

View File

@@ -57,7 +57,7 @@ public class PausedDialog extends BaseDialog{
.visible(() -> state.rules.sector != null && state.rules.sector.preset != null && state.rules.sector.preset.description != null).padTop(-60f);
cont.button("@abandon", Icon.cancel, () -> ui.planet.abandonSectorConfirm(state.rules.sector, this::hide)).padTop(-60f)
.disabled(b -> net.client()).visible(() -> state.rules.sector != null).row();
.disabled(b -> net.client() || state.gameOver).visible(() -> state.rules.sector != null).row();
cont.button("@back", Icon.left, this::hide).name("back");
cont.button("@settings", Icon.settings, ui.settings::show).name("settings");

View File

@@ -918,6 +918,11 @@ public class HudFragment{
return builder;
}
//do not show status after game over
if(state.afterGameOver && state.isCampaign()){
return builder;
}
if(!state.rules.waves && state.isCampaign()){
builder.append("[lightgray]").append(Core.bundle.get("sector.curcapture"));
}