forked from External/mage
modifed revealed cards
This commit is contained in:
parent
55feb4a320
commit
360bbc86b5
20 changed files with 237 additions and 25 deletions
|
|
@ -58,6 +58,8 @@ import mage.view.CardsView;
|
|||
*/
|
||||
public class ShowCardsDialog extends MageDialog implements MouseListener {
|
||||
|
||||
private boolean reloaded = false;
|
||||
|
||||
/** Creates new form ShowCardsDialog */
|
||||
public ShowCardsDialog() {
|
||||
initComponents();
|
||||
|
|
@ -65,6 +67,7 @@ public class ShowCardsDialog extends MageDialog implements MouseListener {
|
|||
}
|
||||
|
||||
public void loadCards(String name, CardsView showCards, BigCard bigCard, CardDimensions dimension, UUID gameId, boolean modal) {
|
||||
this.reloaded = true;
|
||||
this.title = name;
|
||||
cardArea.removeAll();
|
||||
if (showCards != null && showCards.size() < 10)
|
||||
|
|
@ -129,6 +132,14 @@ public class ShowCardsDialog extends MageDialog implements MouseListener {
|
|||
cardArea.setPreferredSize(new Dimension(Config.dimensions.frameWidth * columns, Config.dimensions.frameHeight + 400));
|
||||
}
|
||||
|
||||
public boolean isReloaded() {
|
||||
return this.reloaded;
|
||||
}
|
||||
|
||||
public void clearReloaded() {
|
||||
this.reloaded = false;
|
||||
}
|
||||
|
||||
/** This method is called from within the constructor to
|
||||
* initialize the form.
|
||||
* WARNING: Do NOT modify this code. The content of this method is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue