spjspj - Add in 'View Current Deck' option.

This commit is contained in:
spjspj 2017-04-23 13:06:09 +10:00
parent 56ce1abb44
commit 6ab4a94bd7
10 changed files with 73 additions and 4 deletions

View file

@ -472,6 +472,17 @@ public class PlayAreaPanel extends javax.swing.JPanel {
}
});
popupMenu.addSeparator();
menuItem = new JMenuItem("<html>View current deck");
menuItem.setMnemonic(KeyEvent.VK_V);
popupMenu.add(menuItem);
// View limited deck
menuItem.addActionListener(e -> {
SessionHandler.sendPlayerAction(PlayerAction.VIEW_LIMITED_DECK, gameId, null);
});
}
private void addPopupMenuWatcher() {