mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
All final strings became static - it will give a little perfomance boost, due to not instantiating same string every time
This commit is contained in:
parent
26ce8e0bcc
commit
af3986df46
46 changed files with 56 additions and 56 deletions
|
|
@ -26,7 +26,7 @@ public class MageRoundPane extends JPanel {
|
|||
private int Y_OFFSET = 30;
|
||||
private final Color defaultBackgroundColor = new Color(141, 130, 112, 200);
|
||||
private Color backgroundColor = defaultBackgroundColor;
|
||||
private final int alpha = 0;
|
||||
private static final int alpha = 0;
|
||||
private static final Map<ShadowKey, BufferedImage> SHADOW_IMAGE_CACHE;
|
||||
private static final Map<Key, BufferedImage> IMAGE_CACHE;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ public class BackgroundPainter extends AbstractPainter {
|
|||
|
||||
private final Color bgColor = Color.black;
|
||||
|
||||
final float bgalpha = 0.6f;
|
||||
static final float bgalpha = 0.6f;
|
||||
|
||||
public BackgroundPainter() {
|
||||
super();
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public class DialogContainer extends JPanel {
|
|||
private Color backgroundColor = new Color(0, 255, 255, 60);
|
||||
private int alpha = 50;
|
||||
|
||||
private final boolean isGradient = false;
|
||||
private static final boolean isGradient = false;
|
||||
private final TexturePaint tp = null;
|
||||
private final Image gradient = null;
|
||||
private BufferedImage b;
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public class DeckArea extends javax.swing.JPanel {
|
|||
private BigCard lastBigCard = null;
|
||||
private int dividerLocationNormal = 0;
|
||||
private int dividerLocationLimited = 0;
|
||||
private final boolean isLimitedBuildingOrientation = false;
|
||||
private static final boolean isLimitedBuildingOrientation = false;
|
||||
|
||||
public DeckCardLayout getCardLayout() {
|
||||
return deckList.getCardLayout();
|
||||
|
|
|
|||
|
|
@ -86,8 +86,8 @@ public class NewTournamentDialog extends MageDialog {
|
|||
private JTextArea txtRandomPacks;
|
||||
private final List<TournamentPlayerPanel> players = new ArrayList<>();
|
||||
private final List<JComboBox> packs = new ArrayList<>();
|
||||
private final int CONSTRUCTION_TIME_MIN = 6;
|
||||
private final int CONSTRUCTION_TIME_MAX = 30;
|
||||
private static final int CONSTRUCTION_TIME_MIN = 6;
|
||||
private static final int CONSTRUCTION_TIME_MAX = 30;
|
||||
private boolean isRandom = false;
|
||||
private boolean isRichMan = false;
|
||||
private String cubeFromDeckFilename = "";
|
||||
|
|
|
|||
|
|
@ -68,12 +68,12 @@ public class CardPluginImpl implements CardPlugin {
|
|||
private static final float STACK_SPACING_Y = 0.10f;
|
||||
private static final float ATTACHMENT_SPACING_Y = 0.13f;
|
||||
|
||||
private final int landStackMax = 5;
|
||||
private static final int landStackMax = 5;
|
||||
// private int cardWidthMin = 50, cardWidthMax = Constants.CARD_SIZE_FULL.width;
|
||||
private int cardWidthMin = (int) GUISizeHelper.battlefieldCardMinDimension.getWidth();
|
||||
private int cardWidthMax = (int) GUISizeHelper.battlefieldCardMaxDimension.getWidth();
|
||||
|
||||
private final boolean stackVertical = false;
|
||||
private static final boolean stackVertical = false;
|
||||
|
||||
private int playAreaWidth, playAreaHeight;
|
||||
private int cardWidth, cardHeight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue