mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fixed a problem that manual mana payment was sometimes hard because the mana labels covered the mana buttons.
This commit is contained in:
parent
74edb0f0ef
commit
ebd21eab1d
1 changed files with 13 additions and 7 deletions
|
@ -94,6 +94,8 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
private static final int PANEL_WIDTH = 94;
|
private static final int PANEL_WIDTH = 94;
|
||||||
private static final int PANEL_HEIGHT = 242;
|
private static final int PANEL_HEIGHT = 242;
|
||||||
private static final int PANEL_HEIGHT_SMALL = 212;
|
private static final int PANEL_HEIGHT_SMALL = 212;
|
||||||
|
private static final int MANA_LABEL_SIZE_HORIZONTAL = 20;
|
||||||
|
|
||||||
|
|
||||||
private static final Border greenBorder = new LineBorder(Color.green, 3);
|
private static final Border greenBorder = new LineBorder(Color.green, 3);
|
||||||
private static final Border redBorder = new LineBorder(Color.red, 2);
|
private static final Border redBorder = new LineBorder(Color.red, 2);
|
||||||
|
@ -607,24 +609,24 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
.addComponent(btnRedMana, GroupLayout.PREFERRED_SIZE, 15, GroupLayout.PREFERRED_SIZE))
|
.addComponent(btnRedMana, GroupLayout.PREFERRED_SIZE, 15, GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGap(1)
|
.addGap(1)
|
||||||
.addComponent(manaCountLabelW, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE)))
|
.addComponent(manaCountLabelW, GroupLayout.PREFERRED_SIZE, MANA_LABEL_SIZE_HORIZONTAL, GroupLayout.PREFERRED_SIZE)))
|
||||||
.addGap(3)
|
.addGap(3)
|
||||||
.addComponent(manaCountLabelR, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE))
|
.addComponent(manaCountLabelR, GroupLayout.PREFERRED_SIZE, MANA_LABEL_SIZE_HORIZONTAL, GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGap(1)
|
.addGap(1)
|
||||||
.addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
.addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
||||||
.addComponent(manaCountLabelB, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE)
|
.addComponent(manaCountLabelB, GroupLayout.PREFERRED_SIZE, MANA_LABEL_SIZE_HORIZONTAL, GroupLayout.PREFERRED_SIZE)
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGap(19)
|
.addGap(19)
|
||||||
.addComponent(btnColorlessMana, GroupLayout.PREFERRED_SIZE, 15, GroupLayout.PREFERRED_SIZE)))
|
.addComponent(btnColorlessMana, GroupLayout.PREFERRED_SIZE, 15, GroupLayout.PREFERRED_SIZE)))
|
||||||
.addGap(5)
|
.addGap(5)
|
||||||
.addComponent(manaCountLabelX, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE))
|
.addComponent(manaCountLabelX, GroupLayout.PREFERRED_SIZE, MANA_LABEL_SIZE_HORIZONTAL, GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGap(20)
|
.addGap(20)
|
||||||
.addComponent(btnGreenMana, GroupLayout.PREFERRED_SIZE, 15, GroupLayout.PREFERRED_SIZE))
|
.addComponent(btnGreenMana, GroupLayout.PREFERRED_SIZE, 15, GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGap(40)
|
.addGap(40)
|
||||||
.addComponent(manaCountLabelG, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE))
|
.addComponent(manaCountLabelG, GroupLayout.PREFERRED_SIZE, MANA_LABEL_SIZE_HORIZONTAL, GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGap(40)
|
.addGap(40)
|
||||||
.addComponent(libraryLabel, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE))
|
.addComponent(libraryLabel, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE))
|
||||||
|
@ -643,7 +645,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
.addComponent(exileLabel, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE))
|
.addComponent(exileLabel, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGap(1)
|
.addGap(1)
|
||||||
.addComponent(manaCountLabelU, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE))))
|
.addComponent(manaCountLabelU, GroupLayout.PREFERRED_SIZE, MANA_LABEL_SIZE_HORIZONTAL, GroupLayout.PREFERRED_SIZE))))
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGap(6)
|
.addGap(6)
|
||||||
.addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
.addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
||||||
|
@ -660,12 +662,14 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
gl_panelBackground.setVerticalGroup(
|
gl_panelBackground.setVerticalGroup(
|
||||||
gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
|
|
||||||
.addGap(6)
|
.addGap(6)
|
||||||
.addComponent(avatar, GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE)
|
.addComponent(avatar, GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(ComponentPlacement.RELATED)
|
.addPreferredGap(ComponentPlacement.RELATED)
|
||||||
.addComponent(btnPlayer)
|
.addComponent(btnPlayer)
|
||||||
.addComponent(timerLabel)
|
.addComponent(timerLabel)
|
||||||
.addGap(1)
|
.addGap(1)
|
||||||
|
// Life & Hand
|
||||||
.addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
.addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGap(1)
|
.addGap(1)
|
||||||
|
@ -676,6 +680,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
.addComponent(lifeLabel, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)
|
.addComponent(lifeLabel, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(handLabel, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE))
|
.addComponent(handLabel, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE))
|
||||||
.addGap(1)
|
.addGap(1)
|
||||||
|
// Poison
|
||||||
.addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
.addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGap(4)
|
.addGap(4)
|
||||||
|
@ -689,6 +694,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
.addGap(5)
|
.addGap(5)
|
||||||
.addComponent(grave, GroupLayout.PREFERRED_SIZE, 21, GroupLayout.PREFERRED_SIZE)
|
.addComponent(grave, GroupLayout.PREFERRED_SIZE, 21, GroupLayout.PREFERRED_SIZE)
|
||||||
)
|
)
|
||||||
|
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
.addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
.addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING)
|
||||||
.addGroup(gl_panelBackground.createSequentialGroup()
|
.addGroup(gl_panelBackground.createSequentialGroup()
|
||||||
|
|
Loading…
Reference in a new issue