mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
Increased h.scroll speed for cards in hand. Made client maximized on startup.
This commit is contained in:
parent
e2955de950
commit
9306d94ad2
4 changed files with 12 additions and 4 deletions
|
@ -60,6 +60,7 @@ import javax.swing.ImageIcon;
|
|||
import javax.swing.JButton;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JDesktopPane;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JLayeredPane;
|
||||
import javax.swing.JOptionPane;
|
||||
|
@ -140,7 +141,7 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
|
||||
initComponents();
|
||||
setSize(1024,768);
|
||||
//this.setExtendedState(JFrame.MAXIMIZED_BOTH);
|
||||
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
|
||||
|
||||
session = new Session(this);
|
||||
connectDialog = new ConnectDialog();
|
||||
|
|
|
@ -178,4 +178,12 @@ public class Cards extends javax.swing.JPanel {
|
|||
public void setDontDisplayTapped(boolean dontDisplayTapped) {
|
||||
this.dontDisplayTapped = dontDisplayTapped;
|
||||
}
|
||||
|
||||
public void setHScrollSpeed(int unitIncrement) {
|
||||
jScrollPane1.getHorizontalScrollBar().setUnitIncrement(unitIncrement);
|
||||
}
|
||||
|
||||
public void setVScrollSpeed(int unitIncrement) {
|
||||
jScrollPane1.getVerticalScrollBar().setUnitIncrement(unitIncrement);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,9 +20,6 @@ public class CardsStorage {
|
|||
if (CardUtil.isLand(card)) {
|
||||
landCards.add(card);
|
||||
}
|
||||
if (card.getName().contains("Pledge")) {
|
||||
System.out.println(card.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,6 +85,8 @@ public class GamePanel extends javax.swing.JPanel {
|
|||
public GamePanel() {
|
||||
initComponents();
|
||||
|
||||
hand.setHScrollSpeed(8);
|
||||
|
||||
//FIXME: remove from here
|
||||
try {
|
||||
// Override layout (I can't edit generated code)
|
||||
|
|
Loading…
Add table
Reference in a new issue