From da0100d3fdd549ea105849ee33f6feaad7767ea6 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 20 Sep 2014 17:45:23 +0200 Subject: [PATCH] Increased window size of pick choice dialog. --- .../src/main/java/mage/client/dialog/PickChoiceDialog.form | 6 +++--- .../src/main/java/mage/client/dialog/PickChoiceDialog.java | 7 ++++--- .../src/mage/abilities/effects/common/NameACardEffect.java | 3 +++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/dialog/PickChoiceDialog.form b/Mage.Client/src/main/java/mage/client/dialog/PickChoiceDialog.form index 3462b894dd..daab703e12 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/PickChoiceDialog.form +++ b/Mage.Client/src/main/java/mage/client/dialog/PickChoiceDialog.form @@ -22,13 +22,13 @@ - + - + @@ -40,7 +40,7 @@ - + diff --git a/Mage.Client/src/main/java/mage/client/dialog/PickChoiceDialog.java b/Mage.Client/src/main/java/mage/client/dialog/PickChoiceDialog.java index b77755cd74..db759e2c32 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/PickChoiceDialog.java +++ b/Mage.Client/src/main/java/mage/client/dialog/PickChoiceDialog.java @@ -115,12 +115,12 @@ public class PickChoiceDialog extends MageDialog { .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE) + .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 335, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(btnOk) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnCancel)) - .addComponent(lblMessage, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)) + .addComponent(lblMessage, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 335, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( @@ -129,7 +129,7 @@ public class PickChoiceDialog extends MageDialog { .addContainerGap() .addComponent(lblMessage) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE) + .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnCancel) @@ -145,6 +145,7 @@ public class PickChoiceDialog extends MageDialog { }//GEN-LAST:event_btnOkActionPerformed private void btnCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelActionPerformed + this.lstChoices.clearSelection(); this.hideDialog(); }//GEN-LAST:event_btnCancelActionPerformed diff --git a/Mage/src/mage/abilities/effects/common/NameACardEffect.java b/Mage/src/mage/abilities/effects/common/NameACardEffect.java index 31e25d2202..77dc429d12 100644 --- a/Mage/src/mage/abilities/effects/common/NameACardEffect.java +++ b/Mage/src/mage/abilities/effects/common/NameACardEffect.java @@ -75,12 +75,15 @@ public class NameACardEffect extends OneShotEffect { switch(typeOfName) { case ALL: cardChoice.setChoices(CardRepository.instance.getNames()); + cardChoice.setMessage("Name a card"); break; case NON_LAND_AND_NON_CREATURE_NAME: cardChoice.setChoices(CardRepository.instance.getNonLandAndNonCreatureNames()); + cardChoice.setMessage("Name a non land and non creature card"); break; case NON_LAND_NAME: cardChoice.setChoices(CardRepository.instance.getNonLandNames()); + cardChoice.setMessage("Name a non land card"); break; } cardChoice.clearChoice();