|
|
@@ -21,9 +21,9 @@ public class SpellLine extends JPanel {
|
|
|
|
|
|
public SpellLine(final DDSpell spell) {
|
|
|
GridBagLayout gridBagLayout = new GridBagLayout();
|
|
|
- gridBagLayout.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0};
|
|
|
+ gridBagLayout.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
|
|
gridBagLayout.rowHeights = new int[]{0, 0};
|
|
|
- gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
|
|
|
+ gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
|
|
|
gridBagLayout.rowWeights = new double[]{0.0, Double.MIN_VALUE};
|
|
|
setLayout(gridBagLayout);
|
|
|
|
|
|
@@ -82,10 +82,24 @@ public class SpellLine extends JPanel {
|
|
|
|
|
|
JLabel lblAction = new JLabel(spell.getCastingTime().name());
|
|
|
GridBagConstraints gbc_lblAction = new GridBagConstraints();
|
|
|
+ gbc_lblAction.insets = new Insets(0, 0, 0, 5);
|
|
|
gbc_lblAction.gridx = 6;
|
|
|
gbc_lblAction.gridy = 0;
|
|
|
add(lblAction, gbc_lblAction);
|
|
|
|
|
|
+ Component horizontalStrut_3 = Box.createHorizontalStrut(20);
|
|
|
+ GridBagConstraints gbc_horizontalStrut_3 = new GridBagConstraints();
|
|
|
+ gbc_horizontalStrut_3.insets = new Insets(0, 0, 0, 5);
|
|
|
+ gbc_horizontalStrut_3.gridx = 7;
|
|
|
+ gbc_horizontalStrut_3.gridy = 0;
|
|
|
+ add(horizontalStrut_3, gbc_horizontalStrut_3);
|
|
|
+
|
|
|
+ JLabel lblRange = new JLabel(spell.getRange().getName());
|
|
|
+ GridBagConstraints gbc_lblAction_1 = new GridBagConstraints();
|
|
|
+ gbc_lblAction_1.gridx = 8;
|
|
|
+ gbc_lblAction_1.gridy = 0;
|
|
|
+ add(lblRange, gbc_lblAction_1);
|
|
|
+
|
|
|
addMouseListener(new PopClickListener(new SpellMenu(spell)));
|
|
|
}
|
|
|
|