forked from External/mage
[Client]Load cards from db only once during a game.
Display library with effects like "fetchland" are faster
This commit is contained in:
parent
16eee07a74
commit
0d88b4055b
3 changed files with 36 additions and 10 deletions
|
|
@ -5,13 +5,13 @@ import mage.client.cards.BigCard;
|
|||
import mage.client.dialog.PreferencesDialog;
|
||||
import mage.client.util.Config;
|
||||
import mage.constants.Zone;
|
||||
import mage.view.SimpleCardsView;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import java.awt.*;
|
||||
import java.util.UUID;
|
||||
import mage.view.CardsView;
|
||||
|
||||
public class HandPanel extends JPanel {
|
||||
|
||||
|
|
@ -58,8 +58,8 @@ public class HandPanel extends JPanel {
|
|||
hand.setZone(Zone.HAND.toString());
|
||||
}
|
||||
|
||||
public void loadCards(SimpleCardsView cards, BigCard bigCard, UUID gameId) {
|
||||
hand.loadCards(cards, bigCard, gameId);
|
||||
public void loadCards(CardsView cards, BigCard bigCard, UUID gameId) {
|
||||
hand.loadCards(cards, bigCard, gameId, null);
|
||||
hand.sizeCards(getHandCardDimension());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue