From 4ab598a7c906f32a1f6416b2d3f9af4935e9a802 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Tue, 5 Nov 2019 22:29:22 +0400 Subject: [PATCH] Fixed missing code in Pioneer format --- .../java/mage/client/table/TablesPanel.form | 14 ++++++++++++++ .../java/mage/client/table/TablesPanel.java | 17 ++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/Mage.Client/src/main/java/mage/client/table/TablesPanel.form b/Mage.Client/src/main/java/mage/client/table/TablesPanel.form index 41e7b06a4c..14518523fd 100644 --- a/Mage.Client/src/main/java/mage/client/table/TablesPanel.form +++ b/Mage.Client/src/main/java/mage/client/table/TablesPanel.form @@ -366,6 +366,20 @@ + + + + + + + + + + + + + + diff --git a/Mage.Client/src/main/java/mage/client/table/TablesPanel.java b/Mage.Client/src/main/java/mage/client/table/TablesPanel.java index 2d4ac36918..62326c77a8 100644 --- a/Mage.Client/src/main/java/mage/client/table/TablesPanel.java +++ b/Mage.Client/src/main/java/mage/client/table/TablesPanel.java @@ -333,7 +333,7 @@ public class TablesPanel extends javax.swing.JPanel { filterButtons = new JToggleButton[]{btnStateWaiting, btnStateActive, btnStateFinished, btnTypeMatch, btnTypeTourneyConstructed, btnTypeTourneyLimited, btnFormatBlock, btnFormatStandard, btnFormatModern, btnFormatLegacy, btnFormatVintage, btnFormatPremodern, btnFormatCommander, btnFormatTinyLeader, btnFormatLimited, btnFormatOther, - btnSkillBeginner, btnSkillCasual, btnSkillSerious, btnRated, btnUnrated, btnOpen, btnPassword, btnFormatOathbreaker}; + btnSkillBeginner, btnSkillCasual, btnSkillSerious, btnRated, btnUnrated, btnOpen, btnPassword, btnFormatOathbreaker, btnFormatPioneer}; JComponent[] components = new JComponent[]{chatPanelMain, jSplitPane1, jScrollPaneTablesActive, jScrollPaneTablesFinished, jPanelTop, jPanelTables}; for (JComponent component : components) { @@ -968,6 +968,7 @@ public class TablesPanel extends javax.swing.JPanel { btnFormatBlock = new javax.swing.JToggleButton(); btnFormatStandard = new javax.swing.JToggleButton(); btnFormatModern = new javax.swing.JToggleButton(); + btnFormatPioneer = new javax.swing.JToggleButton(); btnFormatLegacy = new javax.swing.JToggleButton(); btnFormatVintage = new javax.swing.JToggleButton(); btnFormatPremodern = new javax.swing.JToggleButton(); @@ -1259,6 +1260,20 @@ public class TablesPanel extends javax.swing.JPanel { }); filterBar2.add(btnFormatModern); + btnFormatPioneer.setSelected(true); + btnFormatPioneer.setText("Pioneer"); + btnFormatPioneer.setToolTipText("Pioneer format."); + btnFormatPioneer.setFocusPainted(false); + btnFormatPioneer.setFocusable(false); + btnFormatPioneer.setRequestFocusEnabled(false); + btnFormatPioneer.setVerifyInputWhenFocusTarget(false); + btnFormatPioneer.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnFilterActionPerformed(evt); + } + }); + filterBar2.add(btnFormatPioneer); + btnFormatLegacy.setSelected(true); btnFormatLegacy.setText("Legacy"); btnFormatLegacy.setToolTipText("Legacy format.");