forked from External/mage
Displaying text in helper component. Removed feedback component
This commit is contained in:
parent
f44ceee263
commit
75e641580c
5 changed files with 88 additions and 49 deletions
|
|
@ -1,16 +1,5 @@
|
|||
package mage.client.game;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.GridBagLayout;
|
||||
import java.util.UUID;
|
||||
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
|
||||
import mage.Constants;
|
||||
import mage.client.MageFrame;
|
||||
import mage.client.cards.BigCard;
|
||||
|
|
@ -18,6 +7,12 @@ import mage.client.dialog.PreferencesDialog;
|
|||
import mage.client.util.Config;
|
||||
import mage.view.SimpleCardsView;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import java.awt.*;
|
||||
import java.util.UUID;
|
||||
|
||||
public class HandPanel extends JPanel {
|
||||
|
||||
private static final int CARD_WIDTH = 75;
|
||||
|
|
@ -78,11 +73,11 @@ public class HandPanel extends JPanel {
|
|||
|
||||
public void sizeHand(double factor, boolean smallMode) {
|
||||
this.smallMode = smallMode;
|
||||
int width = (int)(factor * CARD_WIDTH);
|
||||
int bigWidth = (int)(Config.handScalingFactor * CARD_WIDTH);
|
||||
handCardDimension = new Dimension(width, (int)(width * ASPECT_RATIO));
|
||||
handCardDimensionBig = new Dimension(bigWidth, (int)(bigWidth * ASPECT_RATIO));
|
||||
hand.setCardDimension(getHandCardDimension());
|
||||
int width = (int) (factor * CARD_WIDTH);
|
||||
int bigWidth = (int) (Config.handScalingFactor * CARD_WIDTH);
|
||||
handCardDimension = new Dimension(width, (int) (width * ASPECT_RATIO));
|
||||
handCardDimensionBig = new Dimension(bigWidth, (int) (bigWidth * ASPECT_RATIO));
|
||||
hand.setCardDimension(getHandCardDimension());
|
||||
hand.sizeCards(getHandCardDimension());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue