@Override public boolean onClosing(FScreen screen) { final GameView gameView = MatchUtil.getGameView(); if (gameView != null && !gameView.isGameOver()) { MatchUtil.concede(); return false; // delay hiding tab even if concede successful } // switch back to menus music when closing screen SoundSystem.instance.setBackgroundMusic(MusicPlaylist.MENUS); wasClosed = true; return true; }
/** View deck list. */ public void viewDeckList() { final Deck deck = MatchUtil.getGameView().getDeck(GamePlayerUtil.getGuiPlayer()); if (deck != null) { FDeckViewer.show(deck); } }