File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ public class StatusDialog extends TUBaseDialog{
2727 private float duration = 10f ;
2828 private boolean perma ;
2929
30-
3130 public StatusDialog (){
3231 super ("@tu-status-menu.name" );
3332
Original file line number Diff line number Diff line change 11package testing .dialogs ;
22
3+ import arc .*;
4+ import mindustry .game .EventType .*;
35import mindustry .ui .dialogs .*;
46import testing .util .*;
57
@@ -14,6 +16,8 @@ public TUBaseDialog(String title){
1416 shown (() -> {
1517 TUVars .activeDialog = this ;
1618 });
19+
20+ Events .on (GameOverEvent .class , e -> hide ());
1721 }
1822
1923 protected void rebuild (){
Original file line number Diff line number Diff line change @@ -233,13 +233,15 @@ public void build(Group parent){
233233 if (show ) ui .hudfrag .shown = false ;
234234 });
235235
236- //Should run after rebuild
236+ //Disable pause menu when open and display message
237237 ui .paused .shown (() -> {
238238 if (show ){
239239 ui .showInfoFade ("@tu-painter.paused" );
240240 Core .app .post (() -> ui .paused .hide ());
241241 }
242242 });
243+
244+ Events .on (GameOverEvent .class , e -> hide ());
243245 }
244246
245247 public void show (){
You can’t perform that action at this time.
0 commit comments