spjspj - Add a View Limited Deck option to allow you to see your deck during matches.

This commit is contained in:
spjspj 2017-04-22 19:16:12 +10:00
parent 3f8b193da6
commit 0cd4e06e22
10 changed files with 74 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() {