mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Added skip-all-turns-and-actions feature. Bound to F9.
This commit is contained in:
parent
391b1893da
commit
ed0af0faee
6 changed files with 38 additions and 8 deletions
|
|
@ -739,6 +739,17 @@ public class GamePanel extends javax.swing.JPanel {
|
|||
}
|
||||
});
|
||||
|
||||
KeyStroke ks8 = KeyStroke.getKeyStroke(KeyEvent.VK_F9, 0);
|
||||
this.getInputMap(c).put(ks8, "F9_PRESS");
|
||||
this.getActionMap().put("F9_PRESS", new AbstractAction() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent actionEvent) {
|
||||
if (feedbackPanel != null && FeedbackMode.SELECT.equals(feedbackPanel.getMode())) {
|
||||
session.sendPlayerInteger(gameId, -9999);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
KeyStroke ksAltShift = KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_MASK);
|
||||
this.getInputMap(c).put(ksAltShift, "ENLARGE");
|
||||
this.getActionMap().put("ENLARGE", new AbstractAction() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue