Skip to content

Commit

Permalink
esc key to open in game menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhael-Danilov committed Jan 5, 2025
1 parent 42c2c2e commit f0cec46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
import com.watabou.pixeldungeon.utils.Utils;
import com.watabou.pixeldungeon.windows.WndBag;
import com.watabou.pixeldungeon.windows.WndBag.Mode;
import com.watabou.pixeldungeon.windows.WndGame;
import com.watabou.pixeldungeon.windows.WndInGameMenu;
import com.watabou.pixeldungeon.windows.WndTitledMessage;
import com.watabou.utils.Random;

Expand Down Expand Up @@ -606,9 +606,7 @@ public void update() {

@Override
protected void onBackPressed() {
if (!cancel()) {
add(new WndGame());
}
add(new WndInGameMenu());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import com.watabou.pixeldungeon.sprites.CharSprite;
import com.watabou.pixeldungeon.utils.Utils;
import com.watabou.pixeldungeon.windows.WndChar;
import com.watabou.pixeldungeon.windows.WndGame;
import com.watabou.pixeldungeon.windows.WndHats;
import com.watabou.pixeldungeon.windows.WndInGameMenu;

public class StatusPane extends Component {

Expand Down Expand Up @@ -152,7 +152,7 @@ protected void onClick(Touch touch) {
buffs = new BuffIndicator(hero);
add(buffs);

btnMenu = new MenuButton(new Image(Assets.getStatus(), 114, 3, 12, 11), WndGame.class);
btnMenu = new MenuButton(new Image(Assets.getStatus(), 114, 3, 12, 11), WndInGameMenu.class);
add(btnMenu);

btnHats = new MenuButton(new Image(Assets.getStatus(), 114, 18, 12, 11), WndHats.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.watabou.pixeldungeon.ui.Icons;
import com.watabou.pixeldungeon.utils.Utils;

public class WndGame extends WndMenuCommon {
public class WndInGameMenu extends WndMenuCommon {

@Override
protected void createItems() {
Expand Down

0 comments on commit f0cec46

Please sign in to comment.