diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndStartGame.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndStartGame.java index df8f190ae..67de794be 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndStartGame.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndStartGame.java @@ -122,7 +122,7 @@ public class WndStartGame extends Window { Icons.get( SPDSettings.challenges() > 0 ? Icons.CHALLENGE_ON :Icons.CHALLENGE_OFF)){ @Override protected void onClick() { - ShatteredPixelDungeon.scene().add(new WndChallenges(SPDSettings.challenges(), true) { + ShatteredPixelDungeon.scene().addToFront(new WndChallenges(SPDSettings.challenges(), true) { public void onBackPressed() { super.onBackPressed(); icon( Icons.get( SPDSettings.challenges() > 0 ? @@ -208,8 +208,7 @@ public class WndStartGame extends Window { super.onClick(); if( !cl.isUnlocked() ){ - ShatteredPixelDungeon.scene().add( - new WndMessage(cl.unlockMsg())); + ShatteredPixelDungeon.scene().addToFront( new WndMessage(cl.unlockMsg())); } else { GamesInProgress.selectedClass = cl; } @@ -243,7 +242,7 @@ public class WndStartGame extends Window { @Override protected void onClick() { if (cl == null) return; - ShatteredPixelDungeon.scene().add(new WndMessage(Messages.get(cl, cl.name() + "_desc_item"))); + ShatteredPixelDungeon.scene().addToFront(new WndMessage(Messages.get(cl, cl.name() + "_desc_item"))); } }; heroItem.setSize(BTN_SIZE, BTN_SIZE); @@ -253,7 +252,7 @@ public class WndStartGame extends Window { @Override protected void onClick() { if (cl == null) return; - ShatteredPixelDungeon.scene().add(new WndMessage(Messages.get(cl, cl.name() + "_desc_loadout"))); + ShatteredPixelDungeon.scene().addToFront(new WndMessage(Messages.get(cl, cl.name() + "_desc_loadout"))); } }; heroLoadout.setSize(BTN_SIZE, BTN_SIZE); @@ -263,7 +262,7 @@ public class WndStartGame extends Window { @Override protected void onClick() { if (cl == null) return; - ShatteredPixelDungeon.scene().add(new WndMessage(Messages.get(cl, cl.name() + "_desc_misc"))); + ShatteredPixelDungeon.scene().addToFront(new WndMessage(Messages.get(cl, cl.name() + "_desc_misc"))); } }; heroMisc.setSize(BTN_SIZE, BTN_SIZE); @@ -277,7 +276,7 @@ public class WndStartGame extends Window { for (HeroSubClass sub : cl.subClasses()){ msg += "\n\n" + sub.desc(); } - ShatteredPixelDungeon.scene().add(new WndMessage(msg)); + ShatteredPixelDungeon.scene().addToFront(new WndMessage(msg)); } }; heroSubclass.setSize(BTN_SIZE, BTN_SIZE);